Make CheckSpatialMetaData() to check also GPKG

25 views
Skip to first unread message

Jukka Rahkonen

unread,
Apr 13, 2015, 5:21:15 AM4/13/15
to spatiali...@googlegroups.com
Hi,

I wonder if the CheckSpatialMetaData() function could be made to return something else than "0" if the database is actually a GeoPackage. At the moment this function can only tell that the database is not a Spatialite nor a FDO database but a second request with CheckGeoPackageMetaData() must be performed for checking if it happens to be a GeoPackage. If would be more convenient to get this info also directly from CheckSpatialMetaData().

-Jukka Rahkonen-

a.fu...@lqt.it

unread,
Apr 14, 2015, 5:25:16 AM4/14/15
to spatiali...@googlegroups.com
Hi Jukka,

now CheckSpatialMetaData() will return the following values:

0 - unrecognized db layout
1 - legacy SpatiaLite (<= 3.x)
2 - FDO/OGR
3 - current SpatiaLite (>= 4.x)
4 - GPKG

(already committed into the Fossil repository)

bye Sandro
Reply all
Reply to author
Forward
0 new messages