[gdal-dev] OGR Spatialite to geopackage

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Mon Jun 11 23:59:34 PDT 2018


lucvanlinden wrote
> Hi
> We are using ogr 2.2.0 and were trying to turn a spatialite (non fdo) into
> a geopacke file.
> The spatialite file has all the metadata tables and view in it.
> Should we explicitly pass the layername list (tablenames) for a clean
> transform?
> We are getting errors on records no being able to get transformed
> referring to tablenames that are those from the source metadata?

Hi,

Normally all you need to do for converting all data table from SpatiaLite
into corresponding geopackage is

ogr2ogr -f gpkg output.gpkg input.sqlite 

What errors do you get? You may see more details by adding --debug on into
your command.


-Jukka Rahkonen-



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list