ngageoint / geopackage-android

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

FeatureIndexManager FeatureIndexType.RTREE index error #62

Closed enisozgur closed 4 years ago

enisozgur commented 4 years ago

Hi trying to create a table. I want to use rtree. I get an error in ST_Min function

My Code Is;

FeatureIndexManager indexer = new FeatureIndexManager(_context, _geoPackage, name); indexer.setIndexLocation(FeatureIndexType.RTREE); indexer.index();

java.lang.UnsupportedOperationException: User defined SQL functions are not supported. name: ST_MinX mil.nga.geopackage.extension.RTreeIndexExtension.createFunction(RTreeIndexExtension.java:120)

thanks

bosborn commented 4 years ago

RTree is currently supported as read only in Android due to the SQLite Android Bindings lack of User defined function support. See also #60 and #49.

An RTree created by Java, JS, iOS, GDAL, QGIS, etc is supported in the Android library as read only. For an index created/used within the Android library & stored in the GeoPackage, try FeatureIndexType.GEOPACKAGE.

enisozgur commented 4 years ago

Thanks Bosborn...