Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#840 closed patch (fixed)

Serialisation of layer properties similar to .avl - QGIS style support using qml

Reported by: timlinux Owned by: timlinux
Priority: major: does not work as expected Milestone:
Component: Symbology Version: Trunk
Keywords: qml avl style Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no


Currently there is no way to associate layer properties (colour, labelling options etc) as a file with a layer. This patch provides .qml support to do that. This patch also carries out some refactoring of the vector properties dialogs. The refactoring has been done in qt4.3.2 so I need to backport it for general use. This patch should not be applied prior to 0.9.1 being release as it is still untested. I will probably post some updated versions of the patch over the coming few weeks.

Attachments (1)

qgis_qml_version.diff (136.8 KB ) - added by timlinux 16 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by timlinux, 16 years ago

Status: newassigned
Type: defectpatch

comment:2 by timlinux, 16 years ago

I wanted to just log here that patch version 3 attached here currently has 3 known issues:

  1. layer uri in qml file needs to be synced to the actual layer uri before applying the style otherwise the qml is not portable and can lead to some strange behaviour.
  2. non file based uris are not supported yet - though it will be easy to add - my plan is to create a table in qgis.db personal qgis database file of the user to store qml data for non file based uris
  3. texture support is currently disabled in fill styles - I will readd support for this soon.

by timlinux, 16 years ago

Attachment: qgis_qml_version.diff added

comment:3 by jef, 16 years ago

duplicate of #2

comment:4 by pcav, 16 years ago

Component: Build/InstallSymbology

comment:5 by timlinux, 16 years ago

Resolution: fixed
Status: assignedclosed

Merged as part of 0.9.2 release

comment:6 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.