ngageoint / geopackage-android

GeoPackage Android Library
http://ngageoint.github.io/geopackage-android
MIT License
94 stars 33 forks source link

Support for Blobs (Feature Geometries, etc) larger than 2mb #41

Closed bosborn closed 7 years ago

bosborn commented 7 years ago

Investigate using a library such as sqlite4java or a technique to support larger than 2 mb blobs for feature geometries, tile images, etc.

See ngageoint/geopackage-android-map#5.

spyhunter99 commented 7 years ago

I was able to get org.xerial's implementation of sqlite running on android arm devices but not on x86. for what it's worth

bosborn commented 7 years ago

The substr approach linked in the issue is not very useful due to the fact that all values (pk, etc) come back as null, not just the blob. I also read there is 5mb limit on this.

bosborn commented 7 years ago

Was able to stream blobs for rows larger than the Android supported limit. Works with the linked GeoPackage in ngageoint/geopackage-android-map#5. Large geometries take a slight performance hit for database reading, tile drawing, etc.

Will be released under version 1.4.2 2.0.0. Changes include:

bosborn commented 7 years ago

Released as part of version 2.0.0.