Bug report #17898

Not Able to save style in GeoPackage

Added by Klas Karlsson almost 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Data Provider
Affected QGIS version:2.18.15 Regression?:Yes
Operating System:Ubuntu 16.04 Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:wontfix
Crashes QGIS or corrupts data:No Copied to github as #:25794

Description

Relating to #17657

Saving vector style as default can not save in source database for GeoPackage data.
No error message is given and the result is a *.qml file with the GeoPackage. This works for single layer GeoPackage, but not otherwise.

Saving the style explicitly to the source database gives an error (attached img).

Tested also on 2.18.16

NOTE: Same method for spatialite works just fine.

ALSO:

GeoPackage is not browsable in the DB Manager (may be unrelated to above) and slooow in Browser.
(Attached image)

Since styling and browsing with spatialite works fine, it may be a database manager issue and not a styling problem?

Running:
GDAL/OGR 1.11.3
Spatialite 4.3.0a

Error Message.png - Error message when trying to save style to GeoPackage (12.6 KB) Klas Karlsson, 2018-01-20 12:48 PM

dbmanager.png - Error in db manager when opening GeoPackage (115 KB) Klas Karlsson, 2018-01-20 12:56 PM

History

#1 Updated by Klas Karlsson almost 7 years ago

  • Status changed from Open to Closed

The problem persists using qgis.org/debian source, but qgis.org/ubuntugis works, since this use GDAL 2.2...

In a perfect world there should be a message about "wrong" GDAL version for this feature.

#2 Updated by Jürgen Fischer almost 7 years ago

  • Description updated (diff)

#3 Updated by Giovanni Manghi almost 7 years ago

  • Resolution set to wontfix
  • Easy fix? changed from No to Yes

Also available in: Atom PDF