Class FeatureRowData


  • public class FeatureRowData
    extends Object
    Represents the values of a single feature row
    Since:
    1.2.7
    • 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 values
        geometryColumn - geometry column name
      • FeatureRowData

        public FeatureRowData​(Map<String,​Object> values,
                              String idColumn,
                              String geometryColumn)
        Constructor
        Parameters:
        values - column names and values
        idColumn - id column name
        geometryColumn - geometry column name
        Since:
        6.3.1
    • Method Detail

      • getValues

        public Map<String,​Object> getValues()
        Get the values
        Returns:
        column names and values
      • 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 true
        includeGeometries - true to include all geometry types
        Returns:
        JSON compatible object