Package mil.nga.geopackage.features.user
Class FeatureRow
- java.lang.Object
-
- mil.nga.geopackage.user.UserCoreRow<TColumn,TTable>
-
- mil.nga.geopackage.user.UserRow<FeatureColumn,FeatureTable>
-
- mil.nga.geopackage.features.user.FeatureRow
-
public class FeatureRow extends UserRow<FeatureColumn,FeatureTable>
Feature Row containing the values from a single result set row- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserCoreRow
columns, columnTypes, table, values
-
-
Constructor Summary
Constructors Constructor Description FeatureRow(FeatureRow featureRow)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
columnToContentValue(ContentValues contentValues, FeatureColumn column, Object value)
Map the column to the content valuesFeatureRow
copy()
Copy the rowprotected Object
copyValue(FeatureColumn column, Object value)
FeatureColumns
getColumns()
GeoPackageGeometryData
getGeometry()
Get the geometryFeatureColumn
getGeometryColumn()
Get the geometry feature columnint
getGeometryColumnIndex()
Get the geometry column indexString
getGeometryColumnName()
Get the geometry column nameGeometryEnvelope
getGeometryEnvelope()
Get the geometry envelopeGeometryType
getGeometryType()
Get the simple features geometry typeGeometry
getGeometryValue()
Get the simple features geometry valuevoid
setGeometry(GeoPackageGeometryData geometryData)
Set the geometry datavoid
setValue(int index, Object value)
-
Methods inherited from class mil.nga.geopackage.user.UserRow
toContentValues, toContentValues
-
Methods inherited from class mil.nga.geopackage.user.UserCoreRow
columnCount, getAsMap, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getId, getPkColumn, getPkColumnIndex, getRowColumnType, getRowColumnType, getRowColumnTypes, getTable, getValue, getValue, getValues, getValueString, getValueString, hasColumn, hasId, hasIdColumn, resetId, setId, setValue, validateValue
-
-
-
-
Constructor Detail
-
FeatureRow
public FeatureRow(FeatureRow featureRow)
Copy Constructor- Parameters:
featureRow
- feature row to copy- Since:
- 1.3.0
-
-
Method Detail
-
getColumns
public FeatureColumns getColumns()
- Overrides:
getColumns
in classUserCoreRow<FeatureColumn,FeatureTable>
-
setValue
public void setValue(int index, Object value)
Handles geometry columns
- Overrides:
setValue
in classUserCoreRow<FeatureColumn,FeatureTable>
-
copyValue
protected Object copyValue(FeatureColumn column, Object value)
Handles geometry columns
- Overrides:
copyValue
in classUserCoreRow<FeatureColumn,FeatureTable>
-
columnToContentValue
protected void columnToContentValue(ContentValues contentValues, FeatureColumn column, Object value)
Map the column to the content valuesHandles geometry columns
- Overrides:
columnToContentValue
in classUserRow<FeatureColumn,FeatureTable>
- Parameters:
contentValues
- content valuescolumn
- columnvalue
- value
-
getGeometryColumnIndex
public int getGeometryColumnIndex()
Get the geometry column index- Returns:
- geometry column index
-
getGeometryColumn
public FeatureColumn getGeometryColumn()
Get the geometry feature column- Returns:
- geometry feature column
-
getGeometryColumnName
public String getGeometryColumnName()
Get the geometry column name- Returns:
- geometry column name
- Since:
- 3.5.0
-
getGeometry
public GeoPackageGeometryData getGeometry()
Get the geometry- Returns:
- geometry data
-
setGeometry
public void setGeometry(GeoPackageGeometryData geometryData)
Set the geometry data- Parameters:
geometryData
- geometry data
-
getGeometryValue
public Geometry getGeometryValue()
Get the simple features geometry value- Returns:
- geometry
- Since:
- 3.1.0
-
getGeometryType
public GeometryType getGeometryType()
Get the simple features geometry type- Returns:
- geometry type
- Since:
- 3.2.0
-
getGeometryEnvelope
public GeometryEnvelope getGeometryEnvelope()
Get the geometry envelope- Returns:
- geometry envelope
- Since:
- 3.1.0
-
copy
public FeatureRow copy()
Copy the row- Returns:
- row copy
- Since:
- 3.0.1
-
-