Class FeatureIndexer


  • public class FeatureIndexer
    extends Object
    Feature Indexer, indexes feature geometries into a table for searching
    • Field Detail

      • chunkLimit

        protected int chunkLimit
        Query single chunk limit
    • Constructor Detail

      • FeatureIndexer

        public FeatureIndexer​(Context context,
                              FeatureDao featureDao)
        Constructor
        Parameters:
        context - context
        featureDao - feature dao
    • Method Detail

      • close

        public void close()
        Close the database connection in the feature indexer
        Since:
        1.1.0
      • setProgress

        public void setProgress​(GeoPackageProgress progress)
        Set the progress tracker
        Parameters:
        progress - progress tracker
      • getChunkLimit

        public int getChunkLimit()
        Get the SQL query chunk limit
        Returns:
        chunk limit
        Since:
        3.1.0
      • setChunkLimit

        public void setChunkLimit​(int chunkLimit)
        Set the SQL query chunk limit
        Parameters:
        chunkLimit - chunk limit
        Since:
        3.1.0
      • index

        public int index()
        Index the feature table if needed
        Returns:
        count
      • index

        public int index​(boolean force)
        Index the feature table
        Parameters:
        force - true to force re-indexing
        Returns:
        count
      • index

        public boolean index​(FeatureRow row)
        Index the feature row. This method assumes that indexing has been completed and maintained as the last indexed time is updated.
        Parameters:
        row - feature row
        Returns:
        true if indexed
      • deleteIndex

        public boolean deleteIndex()
        Delete the feature table index
        Returns:
        true if index deleted
        Since:
        1.1.0
      • deleteIndex

        public boolean deleteIndex​(FeatureRow row)
        Delete the index for the feature row
        Parameters:
        row - feature row
        Returns:
        true if deleted
        Since:
        1.1.0
      • deleteIndex

        public boolean deleteIndex​(long geomId)
        Delete the index for the geometry id
        Parameters:
        geomId - geometry id
        Returns:
        true if deleted
      • isIndexed

        public boolean isIndexed()
        Determine if the database table is indexed after database modifications
        Returns:
        true if indexed
      • getLastIndexed

        public Date getLastIndexed()
        Get the date last indexed
        Returns:
        last indexed date or null
        Since:
        1.1.0
      • query

        public Cursor query()
        Query for all Geometry Metadata
        Returns:
        geometry metadata cursor
        Since:
        1.1.0
      • query

        public Cursor query​(String[] columns)
        Query for all Geometry Metadata
        Parameters:
        columns - columns
        Returns:
        geometry metadata cursor
        Since:
        3.5.0
      • queryIds

        public Cursor queryIds()
        Query for all Geometry Metadata ids
        Returns:
        geometry metadata cursor
        Since:
        3.4.0
      • count

        public long count()
        Query for all Geometry Metadata count
        Returns:
        count
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures()
        Query for all features
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct)
        Query for all features
        Parameters:
        distinct - distinct rows
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns)
        Query for all features
        Parameters:
        columns - columns
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns)
        Query for all features
        Parameters:
        distinct - distinct rows
        columns - columns
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures()
        Count features
        Returns:
        count
        Since:
        4.0.0
      • countColumnFeatures

        public int countColumnFeatures​(String column)
        Count features
        Parameters:
        column - count column name
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column)
        Count features
        Parameters:
        distinct - distinct column values
        column - count column name
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(Map<String,​Object> fieldValues)
        Query for features
        Parameters:
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           Map<String,​Object> fieldValues)
        Query for features
        Parameters:
        distinct - distinct rows
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           Map<String,​Object> fieldValues)
        Query for features
        Parameters:
        columns - columns
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           Map<String,​Object> fieldValues)
        Query for features
        Parameters:
        distinct - distinct rows
        columns - columns
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(Map<String,​Object> fieldValues)
        Count features
        Parameters:
        fieldValues - field values
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 Map<String,​Object> fieldValues)
        Count features
        Parameters:
        column - count column name
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 Map<String,​Object> fieldValues)
        Count features
        Parameters:
        distinct - distinct column values
        column - count column name
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String where)
        Query for features
        Parameters:
        where - where clause
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String where)
        Query for features
        Parameters:
        distinct - distinct rows
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           String where)
        Query for features
        Parameters:
        columns - columns
        where - where clause
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           String where)
        Query for features
        Parameters:
        distinct - distinct rows
        columns - columns
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(String where)
        Count features
        Parameters:
        where - where clause
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 String where)
        Count features
        Parameters:
        column - count column name
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 String where)
        Count features
        Parameters:
        distinct - distinct column values
        column - count column name
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String where,
                                           String[] whereArgs)
        Query for features
        Parameters:
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String where,
                                           String[] whereArgs)
        Query for features
        Parameters:
        distinct - distinct rows
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           String where,
                                           String[] whereArgs)
        Query for features
        Parameters:
        columns - columns
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           String where,
                                           String[] whereArgs)
        Query for features
        Parameters:
        distinct - distinct rows
        columns - columns
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(String where,
                                 String[] whereArgs)
        Count features
        Parameters:
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 String where,
                                 String[] whereArgs)
        Count features
        Parameters:
        column - count column name
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 String where,
                                 String[] whereArgs)
        Count features
        Parameters:
        distinct - distinct column values
        column - count column name
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • getBoundingBox

        public BoundingBox getBoundingBox()
        Query for the bounds of the feature table index
        Returns:
        bounding box
        Since:
        3.1.0
      • getBoundingBox

        public BoundingBox getBoundingBox​(Projection projection)
        Query for the feature index bounds and return in the provided projection
        Parameters:
        projection - desired projection
        Returns:
        bounding box
        Since:
        3.1.0
      • query

        public Cursor query​(BoundingBox boundingBox)
        Query for Geometry Metadata within the bounding box, projected correctly
        Parameters:
        boundingBox - bounding box
        Returns:
        geometry metadata cursor
        Since:
        1.1.0
      • query

        public Cursor query​(String[] columns,
                            BoundingBox boundingBox)
        Query for Geometry Metadata within the bounding box, projected correctly
        Parameters:
        columns - columns
        boundingBox - bounding box
        Returns:
        geometry metadata cursor
        Since:
        3.5.0
      • queryIds

        public Cursor queryIds​(BoundingBox boundingBox)
        Query for Geometry Metadata ids within the bounding box, projected correctly
        Parameters:
        boundingBox - bounding box
        Returns:
        geometry metadata cursor
        Since:
        3.4.0
      • count

        public long count​(BoundingBox boundingBox)
        Query for Geometry Metadata count within the bounding box, projected correctly
        Parameters:
        boundingBox - bounding box
        Returns:
        count
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox)
        Query for features within the bounding box
        Parameters:
        boundingBox - bounding box
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox)
        Query for features within the bounding box
        Parameters:
        columns - columns
        boundingBox - bounding box
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox)
        Count the features within the bounding box
        Parameters:
        boundingBox - bounding box
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox)
        Count the features within the bounding box
        Parameters:
        column - count column name
        boundingBox - bounding box
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox)
        Count the features within the bounding box
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box
        Parameters:
        boundingBox - bounding box
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box
        Parameters:
        columns - columns
        boundingBox - bounding box
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox,
                                 Map<String,​Object> fieldValues)
        Count the features within the bounding box
        Parameters:
        boundingBox - bounding box
        fieldValues - field values
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox,
                                 Map<String,​Object> fieldValues)
        Count the features within the bounding box
        Parameters:
        column - count column name
        boundingBox - bounding box
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox,
                                 Map<String,​Object> fieldValues)
        Count the features within the bounding box
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox,
                                           String where)
        Query for features within the bounding box
        Parameters:
        boundingBox - bounding box
        where - where clause
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox,
                                           String where)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox,
                                           String where)
        Query for features within the bounding box
        Parameters:
        columns - columns
        boundingBox - bounding box
        where - where clause
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox,
                                           String where)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox,
                                 String where)
        Count the features within the bounding box
        Parameters:
        boundingBox - bounding box
        where - where clause
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox,
                                 String where)
        Count the features within the bounding box
        Parameters:
        column - count column name
        boundingBox - bounding box
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox,
                                 String where)
        Count the features within the bounding box
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box
        Parameters:
        boundingBox - bounding box
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box
        Parameters:
        columns - columns
        boundingBox - bounding box
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox,
                                 String where,
                                 String[] whereArgs)
        Count the features within the bounding box
        Parameters:
        boundingBox - bounding box
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox,
                                 String where,
                                 String[] whereArgs)
        Count the features within the bounding box
        Parameters:
        column - count column name
        boundingBox - bounding box
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox,
                                 String where,
                                 String[] whereArgs)
        Count the features within the bounding box
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • query

        public Cursor query​(BoundingBox boundingBox,
                            Projection projection)
        Query for Geometry Metadata within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection of the provided bounding box
        Returns:
        geometry metadata cursor
        Since:
        1.1.0
      • query

        public Cursor query​(String[] columns,
                            BoundingBox boundingBox,
                            Projection projection)
        Query for Geometry Metadata within the bounding box in the provided projection
        Parameters:
        columns - columns
        boundingBox - bounding box
        projection - projection of the provided bounding box
        Returns:
        geometry metadata cursor
        Since:
        3.5.0
      • queryIds

        public Cursor queryIds​(BoundingBox boundingBox,
                               Projection projection)
        Query for Geometry Metadata ids within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection of the provided bounding box
        Returns:
        geometry metadata cursor
        Since:
        3.4.0
      • count

        public long count​(BoundingBox boundingBox,
                          Projection projection)
        Query for Geometry Metadata count within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection of the provided bounding box
        Returns:
        count
        Since:
        1.1.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox,
                                           Projection projection)
        Query for features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox,
                                           Projection projection)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        projection - projection
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection)
        Query for features within the bounding box in the provided projection
        Parameters:
        columns - columns
        boundingBox - bounding box
        projection - projection
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        projection - projection
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox,
                                 Projection projection)
        Count the features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox,
                                 Projection projection)
        Count the features within the bounding box in the provided projection
        Parameters:
        column - count column name
        boundingBox - bounding box
        projection - projection
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox,
                                 Projection projection)
        Count the features within the bounding box in the provided projection
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        projection - projection
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox,
                                           Projection projection,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        projection - projection
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box in the provided projection
        Parameters:
        columns - columns
        boundingBox - bounding box
        projection - projection
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           Map<String,​Object> fieldValues)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        projection - projection
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox,
                                 Projection projection,
                                 Map<String,​Object> fieldValues)
        Count the features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        fieldValues - field values
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox,
                                 Projection projection,
                                 Map<String,​Object> fieldValues)
        Count the features within the bounding box in the provided projection
        Parameters:
        column - count column name
        boundingBox - bounding box
        projection - projection
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox,
                                 Projection projection,
                                 Map<String,​Object> fieldValues)
        Count the features within the bounding box in the provided projection
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        projection - projection
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox,
                                           Projection projection,
                                           String where)
        Query for features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        where - where clause
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           String where)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        projection - projection
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           String where)
        Query for features within the bounding box in the provided projection
        Parameters:
        columns - columns
        boundingBox - bounding box
        projection - projection
        where - where clause
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           String where)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        projection - projection
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox,
                                 Projection projection,
                                 String where)
        Count the features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        where - where clause
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox,
                                 Projection projection,
                                 String where)
        Count the features within the bounding box in the provided projection
        Parameters:
        column - count column name
        boundingBox - bounding box
        projection - projection
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox,
                                 Projection projection,
                                 String where)
        Count the features within the bounding box in the provided projection
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        projection - projection
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(BoundingBox boundingBox,
                                           Projection projection,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        boundingBox - bounding box
        projection - projection
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box in the provided projection
        Parameters:
        columns - columns
        boundingBox - bounding box
        projection - projection
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           BoundingBox boundingBox,
                                           Projection projection,
                                           String where,
                                           String[] whereArgs)
        Query for features within the bounding box in the provided projection
        Parameters:
        distinct - distinct rows
        columns - columns
        boundingBox - bounding box
        projection - projection
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(BoundingBox boundingBox,
                                 Projection projection,
                                 String where,
                                 String[] whereArgs)
        Count the features within the bounding box in the provided projection
        Parameters:
        boundingBox - bounding box
        projection - projection
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 BoundingBox boundingBox,
                                 Projection projection,
                                 String where,
                                 String[] whereArgs)
        Count the features within the bounding box in the provided projection
        Parameters:
        column - count column name
        boundingBox - bounding box
        projection - projection
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 BoundingBox boundingBox,
                                 Projection projection,
                                 String where,
                                 String[] whereArgs)
        Count the features within the bounding box in the provided projection
        Parameters:
        distinct - distinct column values
        column - count column name
        boundingBox - bounding box
        projection - projection
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • query

        public Cursor query​(GeometryEnvelope envelope)
        Query for Geometry Metadata within the Geometry Envelope
        Parameters:
        envelope - geometry envelope
        Returns:
        geometry metadata cursor
        Since:
        1.1.0
      • query

        public Cursor query​(String[] columns,
                            GeometryEnvelope envelope)
        Query for Geometry Metadata within the Geometry Envelope
        Parameters:
        columns - columns
        envelope - geometry envelope
        Returns:
        geometry metadata cursor
        Since:
        3.5.0
      • queryIds

        public Cursor queryIds​(GeometryEnvelope envelope)
        Query for Geometry Metadata idswithin the Geometry Envelope
        Parameters:
        envelope - geometry envelope
        Returns:
        geometry metadata cursor
        Since:
        1.1.0
      • count

        public long count​(GeometryEnvelope envelope)
        Query for Geometry Metadata count within the Geometry Envelope
        Parameters:
        envelope - geometry envelope
        Returns:
        count
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(GeometryEnvelope envelope)
        Query for features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           GeometryEnvelope envelope)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct column values
        envelope - geometry envelope
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           GeometryEnvelope envelope)
        Query for features within the geometry envelope
        Parameters:
        columns - columns
        envelope - geometry envelope
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           GeometryEnvelope envelope)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct column values
        columns - columns
        envelope - geometry envelope
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(GeometryEnvelope envelope)
        Count the features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 GeometryEnvelope envelope)
        Count the features within the geometry envelope
        Parameters:
        column - count column name
        envelope - geometry envelope
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 GeometryEnvelope envelope)
        Count the features within the geometry envelope
        Parameters:
        distinct - distinct column values
        column - count column name
        envelope - geometry envelope
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(GeometryEnvelope envelope,
                                           Map<String,​Object> fieldValues)
        Query for features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           GeometryEnvelope envelope,
                                           Map<String,​Object> fieldValues)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct rows
        envelope - geometry envelope
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           GeometryEnvelope envelope,
                                           Map<String,​Object> fieldValues)
        Query for features within the geometry envelope
        Parameters:
        columns - columns
        envelope - geometry envelope
        fieldValues - field values
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           GeometryEnvelope envelope,
                                           Map<String,​Object> fieldValues)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct rows
        columns - columns
        envelope - geometry envelope
        fieldValues - field values
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(GeometryEnvelope envelope,
                                 Map<String,​Object> fieldValues)
        Count the features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        fieldValues - field values
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 GeometryEnvelope envelope,
                                 Map<String,​Object> fieldValues)
        Count the features within the geometry envelope
        Parameters:
        column - count column name
        envelope - geometry envelope
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 GeometryEnvelope envelope,
                                 Map<String,​Object> fieldValues)
        Count the features within the geometry envelope
        Parameters:
        distinct - distinct column values
        column - count column name
        envelope - geometry envelope
        fieldValues - field values
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(GeometryEnvelope envelope,
                                           String where)
        Query for features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        where - where clause
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           GeometryEnvelope envelope,
                                           String where)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct rows
        envelope - geometry envelope
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           GeometryEnvelope envelope,
                                           String where)
        Query for features within the geometry envelope
        Parameters:
        columns - columns
        envelope - geometry envelope
        where - where clause
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           GeometryEnvelope envelope,
                                           String where)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct rows
        columns - columns
        envelope - geometry envelope
        where - where clause
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(GeometryEnvelope envelope,
                                 String where)
        Count the features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        where - where clause
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 GeometryEnvelope envelope,
                                 String where)
        Count the features within the geometry envelope
        Parameters:
        column - count column name
        envelope - geometry envelope
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 GeometryEnvelope envelope,
                                 String where)
        Count the features within the geometry envelope
        Parameters:
        distinct - distinct column values
        column - count column name
        envelope - geometry envelope
        where - where clause
        Returns:
        count
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(GeometryEnvelope envelope,
                                           String where,
                                           String[] whereArgs)
        Query for features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.4.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           GeometryEnvelope envelope,
                                           String where,
                                           String[] whereArgs)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct rows
        envelope - geometry envelope
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • queryFeatures

        public FeatureCursor queryFeatures​(String[] columns,
                                           GeometryEnvelope envelope,
                                           String where,
                                           String[] whereArgs)
        Query for features within the geometry envelope
        Parameters:
        columns - columns
        envelope - geometry envelope
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        3.5.0
      • queryFeatures

        public FeatureCursor queryFeatures​(boolean distinct,
                                           String[] columns,
                                           GeometryEnvelope envelope,
                                           String where,
                                           String[] whereArgs)
        Query for features within the geometry envelope
        Parameters:
        distinct - distinct rows
        columns - columns
        envelope - geometry envelope
        where - where clause
        whereArgs - where arguments
        Returns:
        feature results
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(GeometryEnvelope envelope,
                                 String where,
                                 String[] whereArgs)
        Count the features within the geometry envelope
        Parameters:
        envelope - geometry envelope
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        3.4.0
      • countFeatures

        public int countFeatures​(String column,
                                 GeometryEnvelope envelope,
                                 String where,
                                 String[] whereArgs)
        Count the features within the geometry envelope
        Parameters:
        column - count column name
        envelope - geometry envelope
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • countFeatures

        public int countFeatures​(boolean distinct,
                                 String column,
                                 GeometryEnvelope envelope,
                                 String where,
                                 String[] whereArgs)
        Count the features within the geometry envelope
        Parameters:
        distinct - distinct column values
        column - count column name
        envelope - geometry envelope
        where - where clause
        whereArgs - where arguments
        Returns:
        count
        Since:
        4.0.0
      • getGeometryMetadata

        public GeometryMetadata getGeometryMetadata​(Cursor cursor)
        Get the Geometry Metadata for the current place in the cursor
        Parameters:
        cursor - cursor
        Returns:
        geometry metadata
        Since:
        1.1.0
      • getGeometryId

        public long getGeometryId​(Cursor cursor)
        Get the Geometry Metadata id for the current place in the cursor
        Parameters:
        cursor - cursor
        Returns:
        geometry id
        Since:
        3.4.0
      • getFeatureRow

        public FeatureRow getFeatureRow​(Cursor cursor)
        Get the feature row for the current place in the cursor
        Parameters:
        cursor - cursor
        Returns:
        feature row
        Since:
        1.1.0
      • getFeatureRow

        public FeatureRow getFeatureRow​(GeometryMetadata geometryMetadata)
        Get the feature row for the Geometry Metadata
        Parameters:
        geometryMetadata - geometry metadata
        Returns:
        feature row
        Since:
        1.1.0
      • getTolerance

        public double getTolerance()
        Get the query range tolerance
        Returns:
        query range tolerance
        Since:
        3.1.0
      • setTolerance

        public void setTolerance​(double tolerance)
        Set the query range tolerance
        Parameters:
        tolerance - query range tolerance
        Since:
        3.1.0