gpkgAddSpatialIndex - geopaparazzi/Spatialite-Tasks-with-Sql-Scripts GitHub Wiki
Create a GeoPackage SpatialIndex
<-- 'Index Page for GeoPackage - Commands'
Original Documentation 'SQL functions implementing OGC GeoPackage compatibility'
- gpkgAddSpatialIndex( table_name String , geometry_column_name String ) : void
- This function will add Geopackage Spatial Index support for the named table
- sample
20140101.world_Haiti.gpkg- a valid R10 GeoPackage
- 'CheckGeoPackageMetaData' returns
1- 1
features[Geometry] table calledgeonames
- 1
- 'AutoGPKGStart' returns
11new table calledvgpkg_geonamesnow exists
- 'CheckGeoPackageMetaData' returns
- a valid R10 GeoPackage
SELECT gpkgAddSpatialIndex('geonames','geometry');
-
returns
NULL
-
gpkg_extensions- now has 1 entry
'geonames' 'geometry' 'gpkg_rtree_index' 'GeoPackage 1.0 Specification Annex L' 'write-only'`
-
4
rtree_geonames_*VIRTUAL TABLE's have been createdrtree_geonames_geometry- is empty
-
INSERT,DELETE,UPDATEtriggers's have been added togeonames- for
rtree_geonames_geometry
- for
2014-05-23: Mark Johnson, Berlin Germany