[gdal-dev] GeoPackage vector driver fails if layer name contains chars not compatible with SQLite

Stefan Keller sfkeller at gmail.com
Wed May 20 02:13:53 PDT 2015


Hi Even

Just another small issue: GPKG can't handle pre-existing fid column name:

>ogr2ogr -f "GPKG" outfile2.gpkg infile.geojson -nln layer_a
ERROR 1: sqlite3_exec(ALTER TABLE layer_a ADD COLUMN fid INTEGER) failed: duplic
ate column name: fid

--S.


2015-05-18 18:50 GMT+02:00 Stefan Keller <sfkeller at gmail.com>:
> Salut Even
>
> 2015-05-18 17:40 GMT+02:00 Even Rouault <even.rouault at spatialys.com> a écrit :
>> Le lundi 18 mai 2015 17:25:18, Stefan Keller a écrit :
>>> Hi,
>>>
>>> GeoPackage vector driver seems to fail if layer name contains chars
>>> not compatible with SQLite (like dashes, '-').
>>
>> Stefan,
>>
>> This has been fixed in GDAL 2.0dev.
>
> Merveilleux! Merci!!
>
> -S.
>
> 2015-05-18 17:40 GMT+02:00 Even Rouault <even.rouault at spatialys.com>:
>> Le lundi 18 mai 2015 17:25:18, Stefan Keller a écrit :
>>> Hi,
>>>
>>> GeoPackage vector driver seems to fail if layer name contains chars
>>> not compatible with SQLite (like dashes, '-').
>>
>> Stefan,
>>
>> This has been fixed in GDAL 2.0dev.
>>
>> Even
>>
>> --
>> Spatialys - Geospatial professional services
>> http://www.spatialys.com


More information about the gdal-dev mailing list