#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)
Change History (8)
comment:1 by , 16 years ago
Status: | new → assigned |
---|
by , 16 years ago
Attachment: | patch_for_1127.diff added |
---|
comment:2 by , 16 years ago
Type: | enhancement → patch |
---|
follow-up: 5 comment:4 by , 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.
comment:5 by , 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 , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
pending patch