Skip to content

Spatial queries #56

Answered by bosborn
sebastianfrey asked this question in Q&A
Jan 18, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Something like this...

FeatureIndexManager indexManager = new FeatureIndexManager(
	geoPackage, featureTable);
if(!indexManager.isIndexed()) {
    indexManager.setIndexLocation(FeatureIndexType.RTREE);
    indexManager.index();
}
FeatureIndexResults results = indexManager.query(/* args including bounding box or envelope */);
for (FeatureRow featureRow : results) {
    // ...
}
results.close();
indexManager.close();

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sebastianfrey
Comment options

@sebastianfrey
Comment options

@bosborn
Comment options

@sebastianfrey
Comment options

@bosborn
Comment options

Answer selected by sebastianfrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants