Class FeatureTableData

java.lang.Object
mil.nga.geopackage.tiles.overlay.FeatureTableData

public class FeatureTableData extends Object
Represents a collection of rows from a feature table
Since:
1.2.7
  • Constructor Details

    • FeatureTableData

      public FeatureTableData(String name, long count)
      Constructor
      Parameters:
      name - table name
      count - row count
    • FeatureTableData

      public FeatureTableData(String name, long count, List<FeatureRowData> rows)
      Constructor
      Parameters:
      name - table name
      count - row count
      rows - feature rows
  • Method Details

    • getName

      public String getName()
      Get the table name
      Returns:
      table name
    • getCount

      public long getCount()
      Get the row count
      Returns:
      row count
    • getRows

      public List<FeatureRowData> getRows()
      Get the feature rows
      Returns:
      feature rows
    • 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