Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#6396 closed defect (invalid)

GDAL 2.0.2 can not open some Geopackage files

Reported by: alexbruy Owned by: warmerdam
Priority: normal Milestone: 2.1.0
Component: default Version: 2.0.2
Severity: normal Keywords: geopackage


GDAL 2.0.2 from OSGeo4W does not recognize attached GeoPackage, geometry column is None. Same file correctly recognized by GDAL 1.11.2 under Ubuntu. In same time official GeoPackage samples correctly recognized by both GDAL versions.

Attached file created with GeoTools?

Change History (8)

comment:1 Changed 13 months ago by alexbruy

comment:2 Changed 13 months ago by Jukka Rahkonen

Trunk version of GDAL on Windows does not have problems:

C:\Users\jrahkonen\Downloads>ogrinfo export.geopkg
INFO: Open of `export.geopkg'
      using driver `GPKG' successful.
1: country (Multi Polygon)

comment:3 Changed 13 months ago by Even Rouault

I'm not sure how Jukka manages to read the file with the GPKG driver, as it only supportes the ".gpkg" extension, not ".geopkg". Once renamed as .gpkg, I can read it with branches 1.11, 2.0 and trunk.

comment:4 Changed 13 months ago by Jukka Rahkonen

Actually I renamed the file without further thinking to .gpkg because I have registered my Spatialite-gui to open .gpkg files with double click but edited the answer to use the name of the downloaded file. It did not come into my mind that .gpkg and .geopkg could make difference.

I will take this as a lesson for being more careful in testing and reporting.

comment:5 Changed 13 months ago by Even Rouault

Alex, can you try renaming to .gpkg ?

comment:6 Changed 13 months ago by alexbruy

Resolution: invalid
Status: newclosed

Renaming helps, thanks! Seems this is bug in software which was used to produce this file. Will report them.

comment:7 Changed 13 months ago by Even Rouault

Milestone: 2.1.0

Some improvement in trunk:

trunk r33633 "GPKG: make it accept, with warning, files with non standard extension if they still have the correct application_id (#6396); also accept the .gpkx extension that may be used for extended geopackages"

comment:8 Changed 13 months ago by Even Rouault

And on the creation side:

trunk r33634 "GPKG: emit warning when generating a database without .gpkg/.gpkx extension (#6396)"

Note: See TracTickets for help on using tickets.