Content-Length: 347417 | pFad | http://github.com/ngageoint/geopackage-java/discussions/56

4C Spatial queries · ngageoint geopackage-java · Discussion #56 · GitHub
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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ngageoint/geopackage-java/discussions/56

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy