Opened 8 years ago

Closed 8 years ago

Last modified 8 years 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 by alexbruy, 8 years ago

comment:2 by Jukka Rahkonen, 8 years ago

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 by Even Rouault, 8 years ago

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 by Jukka Rahkonen, 8 years ago

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 by Even Rouault, 8 years ago

Alex, can you try renaming to .gpkg ?

comment:6 by alexbruy, 8 years ago

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 by Even Rouault, 8 years ago

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 by Even Rouault, 8 years ago

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.