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 voidcolumnToContentValue(ContentValues contentValues, FeatureColumn column, Object value)Map the column to the content valuesFeatureRowcopy()Copy the rowprotected ObjectcopyValue(FeatureColumn column, Object value)FeatureColumnsgetColumns()GeoPackageGeometryDatagetGeometry()Get the geometryFeatureColumngetGeometryColumn()Get the geometry feature columnintgetGeometryColumnIndex()Get the geometry column indexStringgetGeometryColumnName()Get the geometry column nameGeometryEnvelopegetGeometryEnvelope()Get the geometry envelopeGeometryTypegetGeometryType()Get the simple features geometry typeGeometrygetGeometryValue()Get the simple features geometry valuevoidsetGeometry(GeoPackageGeometryData geometryData)Set the geometry datavoidsetValue(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:
getColumnsin classUserCoreRow<FeatureColumn,FeatureTable>
-
setValue
public void setValue(int index, Object value)Handles geometry columns
- Overrides:
setValuein classUserCoreRow<FeatureColumn,FeatureTable>
-
copyValue
protected Object copyValue(FeatureColumn column, Object value)
Handles geometry columns
- Overrides:
copyValuein classUserCoreRow<FeatureColumn,FeatureTable>
-
columnToContentValue
protected void columnToContentValue(ContentValues contentValues, FeatureColumn column, Object value)
Map the column to the content valuesHandles geometry columns
- Overrides:
columnToContentValuein 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
-
-