pka / qgpkg

GeoPackage extension to store QGIS mapping information in a GeoPackage database file
MIT License
23 stars 6 forks source link

gpkg_extensions table may not exist #2

Closed rouault closed 8 years ago

rouault commented 8 years ago

https://github.com/pka/qgpkg/blob/master/qgisgpkg/qgpkg.py#L207 assumes that the gpkg_extensions table always exists, but this is an optional table per http://www.geopackage.org/spec/#_extensions Requirement 58 "A GeoPackage MAY contain a table or updateable view named gpkg_extensions"

Note that GDAL/OGR created databases will generally contain it since spatial indexes are created by default and thus require creating it (and for non spatial tables, we use the gdal_aspatial extension).

pka commented 8 years ago

Fixed in 9c00ad6b785