Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1127 closed patch (fixed)

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:
Must Fix for Release: No Platform: All
Platform Version: 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 (1)

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

Download all attachments as: .zip

Change History (8)

comment:1 by jef, 16 years ago

Status: newassigned

by jef, 16 years ago

Attachment: patch_for_1127.diff added

pending patch

comment:2 by jef, 16 years ago

Type: enhancementpatch

comment:3 by jef, 16 years ago

waiting for feature freeze to pass.

comment:4 by timlinux, 16 years ago

Milestone: 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 comment:5 by jef, 16 years ago

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.

comment:6 by jef, 16 years ago

Resolution: fixed
Status: assignedclosed

comment:7 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.