[gdal-dev] OGR Spatialite to geopackage

Even Rouault even.rouault at spatialys.com
Tue Jun 12 03:25:00 PDT 2018


On mardi 12 juin 2018 02:57:56 CEST lucvanlinden wrote:
> Hi Jukka
> 
> Error 1: failed to execute insert : unique constraint failed :
> geom_cols_ref_sys._rowid_
> 
> Error 1 : Unable to write feature 0 from layer geom_cols_ref_sys.
> 
> Terminating....
> 
> Seems to me that the metadata tables, in this case it is even a view is
> treated as a normal layer.

There isn't a concept of view in the OGR model, so they are presented as 
tables and converted as such. In that case this is a technical Spatialite 
table that makes no sense in GPKG, so you should exclude it from the 
conversion by explicitly listing the tables/views you want to convert.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list