Package mil.nga.geopackage.tiles.overlay
Class FeatureRowData
- java.lang.Object
-
- mil.nga.geopackage.tiles.overlay.FeatureRowData
-
public class FeatureRowData extends Object
Represents the values of a single feature row- Since:
- 1.2.7
-
-
Constructor Summary
Constructors Constructor Description FeatureRowData(Map<String,Object> values)ConstructorFeatureRowData(Map<String,Object> values, String geometryColumn)ConstructorFeatureRowData(Map<String,Object> values, String idColumn, String geometryColumn)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometrygetGeometry()Get the geometryStringgetGeometryColumn()Get the geometry column nameGeoPackageGeometryDatagetGeometryData()Get the geometry dataGeometryEnvelopegetGeometryEnvelope()Get the geometry envelopeGeometryTypegetGeometryType()Get the geometry typeLonggetId()Get the idStringgetIdColumn()Get the id column nameMap<String,Object>getValues()Get the valuesObjectjsonCompatible()Build a JSON compatible objectObjectjsonCompatible(boolean includePoints, boolean includeGeometries)Build a JSON compatible objectObjectjsonCompatibleWithGeometries(boolean includeGeometries)Build a JSON compatible objectObjectjsonCompatibleWithPoints(boolean includePoints)Build a JSON compatible object
-
-
-
Constructor Detail
-
FeatureRowData
public FeatureRowData(Map<String,Object> values)
Constructor- Parameters:
values- column names and values- Since:
- 6.3.1
-
FeatureRowData
public FeatureRowData(Map<String,Object> values, String geometryColumn)
Constructor- Parameters:
values- column names and valuesgeometryColumn- geometry column name
-
-
Method Detail
-
getIdColumn
public String getIdColumn()
Get the id column name- Returns:
- id column
- Since:
- 6.3.1
-
getId
public Long getId()
Get the id- Returns:
- id
- Since:
- 6.3.1
-
getGeometryColumn
public String getGeometryColumn()
Get the geometry column name- Returns:
- geometry column
-
getGeometryData
public GeoPackageGeometryData getGeometryData()
Get the geometry data- Returns:
- geometry data
-
getGeometry
public Geometry getGeometry()
Get the geometry- Returns:
- geometry
-
getGeometryType
public GeometryType getGeometryType()
Get the geometry type- Returns:
- geometry type
- Since:
- 6.3.1
-
getGeometryEnvelope
public GeometryEnvelope getGeometryEnvelope()
Get the geometry envelope- Returns:
- geometry envelope
- Since:
- 6.3.1
-
jsonCompatible
public Object jsonCompatible()
Build a JSON compatible object- Returns:
- JSON compatible object
-
jsonCompatibleWithPoints
public Object jsonCompatibleWithPoints(boolean includePoints)
Build a JSON compatible object- Parameters:
includePoints- true to include point geometries, but no other geometry types- Returns:
- JSON compatible object
-
jsonCompatibleWithGeometries
public Object jsonCompatibleWithGeometries(boolean includeGeometries)
Build a JSON compatible object- Parameters:
includeGeometries- true to include all geometries, false for no geometries- Returns:
- JSON compatible object
-
jsonCompatible
public Object jsonCompatible(boolean includePoints, boolean includeGeometries)
Build a JSON compatible object- Parameters:
includePoints- true to include point geometries, ignored if includeGeometries is trueincludeGeometries- true to include all geometry types- Returns:
- JSON compatible object
-
-