-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value Map not working when loading a qml #19136
Comments
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Matthias Kuhn (@m-kuhn) Does the following workaround to update the qml work for you?
|
Author Name: Philipe Borba (@phborba) Unfortunately it didn't work. In the qml structure saved by 2.4, the parts of the xml code where the value lists were stored weren't generated. The only parts of the qml that were generated are those linked to simbology. For instance, in the qml saved in 2.2, I have this structure: On the other hand, when I proceeded the way you instructed me, qgis 2.4 generates only this: The type of the field is ommited and also the value pairs are gone. If I manually set the value map, as it is show in the attached picture, then save the .qml, close qgis, reopen qgis and finally load the layer and the saved qml, the value map is not loaded and the problem with the code described above remains the same.
|
Author Name: Philipe Borba (@phborba) There is a similar explanation to this bug on this link: |
Author Name: Giovanni Manghi (@gioman) isn't this a regression since 2.2? |
Author Name: Matthias Kuhn (@m-kuhn) Fixed in changeset "e6a259d1806b756cb2a9d91d6c5546ce6d04e710".
|
Author Name: James Rogers (James Rogers) Sorry, I have zero understanding when it comes to coding, etc. |
Author Name: Philipe Borba (@phborba)
Original Redmine Issue: 10752
Affected QGIS version: 2.4.0
Redmine category:project_loading/saving
I'm trying to load a style saved as a .qml but when I load it, the value map defined in the .qml is not loaded. I have already tried to save the style into the database, but when I tried to load it, the value maps also weren't loaded.
A sample database is attached, with a sample of .qml
The text was updated successfully, but these errors were encountered: