ngageoint / geopackage-mapcache-android

GeoPackage MapCache Android App
https://ngageoint.github.io/geopackage-mapcache-android
MIT License
40 stars 16 forks source link

rtree_ triggers dropped #32

Closed rossia closed 6 years ago

rossia commented 6 years ago

Please fill out as much known and relevant information as possible.

Version Information:

Expected Results:

Observed Results:

Test Files:

Additional Information:

bosborn commented 6 years ago

The RTree index extension requires custom database functions which are not supported by Android (w/o using natively compiled code). The current implementation will drop the triggers when the GeoPackage is able to be opened with write permissions. I added an option in the geopackage-android library to open the GeoPackage in a readable mode which will not drop the triggers. When opening this way, any attempts to insert, update, or delete features will throw an exception. This will go out in the next release this week.

bosborn commented 6 years ago

Changed the app to open the GeoPackage in read only mode whenever possible. Upon next release, the triggers will remain as long as no feature edits are made to the GeoPackage.

rossia commented 6 years ago

Thanks.

bosborn commented 6 years ago

@rossia You can give the new release a shot, should provide you read access w/o dropping the triggers.