Ticket #1127 (closed patch: fixed)

Opened 5 years ago

Last modified 4 years ago

PostGIS default Styles should be saveable in system qgis.db

Reported by: hdus Owned by: jef
Priority: minor: annoyance Milestone:
Component: Map Legend Version: Trunk
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

To deliver unified style definitions from PostGIS repository to distributed users it would be great to have the chance to define a global style definition stored in share/qgis/qgis.db. The search path could be ~/.qgis/qgis.db prior share/qgis/qgis.db. In this way the single user has the ability to define personal style definitions.

Attachments

patch_for_1127.diff Download (4.3 KB) - added by jef 5 years ago.
pending patch

Change History

  Changed 5 years ago by jef

  • status changed from new to assigned

Changed 5 years ago by jef

pending patch

  Changed 5 years ago by jef

  • type changed from enhancement to patch

  Changed 5 years ago by jef

waiting for feature freeze to pass.

follow-up: ↓ 5   Changed 5 years ago by timlinux

  • milestone set to Version 1.0.0

Hi

I have some reservations as to whether its desirable for end users to edit the qgis.db. For one thing you may encounter issues e.g. when doing apt-get upgrade and apt tries to overwrite the db with a new version. I think the feature request is a valid one but we should think about other approaches to the solution too before applying the patch.

in reply to: ↑ 4   Changed 5 years ago by jef

Replying to timlinux:

Hi I have some reservations as to whether its desirable for end users to edit the qgis.db. For one thing you may encounter issues e.g. when doing apt-get upgrade and apt tries to overwrite the db with a new version. I think the feature request is a valid one but we should think about other approaches to the solution too before applying the patch.

Yup. The patch only searches the global qgis.db for styles. Transfering styles in to the database is not covered, this would need to be done manually.

It might be better to have seperate style databases and search them in the following order:

  • qgis.qmldb in the users qgis directory
  • project.qmldb in the directory where the project file (project.qgs) lives
  • qgis.qmldb in the global qgis directory

That way the user can update his own style database until it fits and then copy it to the projects directory and rename it accordingly or copy it to the global directory.

  Changed 5 years ago by jef

  • status changed from assigned to closed
  • resolution set to fixed

  Changed 4 years ago by anonymous

  • milestone Version 1.0.0 deleted

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.