Skip to content

spatial queries on geopackage feature class #69

Answered by bosborn
Eeshdaya asked this question in Q&A
Discussion options

You must be logged in to vote

GeoPackages uses basic SQLite (not SpatialLite), so the st_area method is not available.

GeoPackage supports a RTree Spatial Index extension (see SQLite RTree) to help with geometry range queries.

You'll find some geometry utility methods for already in memory geometries in this included source.

If you really need to query from the area sizes, you could add an area column and save that info with each geometry.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bosborn
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