public class FeatureIndexer extends Object
| Constructor and Description |
|---|
FeatureIndexer(Context context,
FeatureDao featureDao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the database connection in the feature indexer
|
int |
count()
Query for all Geometry Metadata count
|
int |
count(BoundingBox boundingBox)
Query for Geometry Metadata count within the bounding box, projected
correctly
|
long |
count(BoundingBox boundingBox,
mil.nga.sf.proj.Projection projection)
Query for Geometry Metadata count within the bounding box in
the provided projection
|
int |
count(mil.nga.sf.GeometryEnvelope envelope)
Query for Geometry Metadata count within the Geometry Envelope
|
boolean |
deleteIndex()
Delete the feature table index
|
boolean |
deleteIndex(FeatureRow row)
Delete the index for the feature row
|
boolean |
deleteIndex(long geomId)
Delete the index for the geometry id
|
FeatureRow |
getFeatureRow(Cursor cursor)
Get the feature row for the current place in the cursor
|
FeatureRow |
getFeatureRow(GeometryMetadata geometryMetadata)
Get the feature row for the Geometry Metadata
|
GeometryMetadata |
getGeometryMetadata(Cursor cursor)
Get the Geometry Metadata for the current place in the cursor
|
Date |
getLastIndexed()
Get the date last indexed
|
int |
index()
Index the feature table if needed
|
int |
index(boolean force)
Index the feature table
|
boolean |
index(FeatureRow row)
Index the feature row.
|
boolean |
isIndexed()
Determine if the database table is indexed after database modifications
|
Cursor |
query()
Query for all Geometry Metadata
|
Cursor |
query(BoundingBox boundingBox)
Query for Geometry Metadata within the bounding box, projected
correctly
|
Cursor |
query(BoundingBox boundingBox,
mil.nga.sf.proj.Projection projection)
Query for Geometry Metadata within the bounding box in
the provided projection
|
Cursor |
query(mil.nga.sf.GeometryEnvelope envelope)
Query for Geometry Metadata within the Geometry Envelope
|
void |
setProgress(GeoPackageProgress progress)
Set the progress tracker
|
public FeatureIndexer(Context context, FeatureDao featureDao)
context - featureDao - public void close()
public void setProgress(GeoPackageProgress progress)
progress - public int index()
public int index(boolean force)
force - true to force re-indexingpublic boolean index(FeatureRow row)
row - public boolean deleteIndex()
public boolean deleteIndex(FeatureRow row)
row - public boolean deleteIndex(long geomId)
geomId - public boolean isIndexed()
public Date getLastIndexed()
public Cursor query()
public int count()
public Cursor query(BoundingBox boundingBox)
boundingBox - public int count(BoundingBox boundingBox)
boundingBox - public Cursor query(mil.nga.sf.GeometryEnvelope envelope)
envelope - public int count(mil.nga.sf.GeometryEnvelope envelope)
envelope - public Cursor query(BoundingBox boundingBox, mil.nga.sf.proj.Projection projection)
boundingBox - projection - projection of the provided bounding boxpublic long count(BoundingBox boundingBox, mil.nga.sf.proj.Projection projection)
boundingBox - projection - projection of the provided bounding boxpublic GeometryMetadata getGeometryMetadata(Cursor cursor)
cursor - public FeatureRow getFeatureRow(Cursor cursor)
cursor - public FeatureRow getFeatureRow(GeometryMetadata geometryMetadata)
geometryMetadata -