Skip to content
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

TopoViewer layer styles not honoured #31471

Closed
strk opened this issue Aug 28, 2019 · 1 comment · Fixed by #31490
Closed

TopoViewer layer styles not honoured #31471

strk opened this issue Aug 28, 2019 · 1 comment · Fixed by #31490
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Milestone

Comments

@strk
Copy link
Contributor

strk commented Aug 28, 2019

The DBManager TopoViewer plugin uses templates to style layers added to the canvas.
I noticed that the color of symbols, found in the qml file, are not honoured, and rather QGIS assigns a different color to nodes everytime a new TopoViewer run is executed.

This is a snippet from python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/templates/node.qml:

  <transparencyLevelInt>255</transparencyLevelInt>
  <singlesymbol>
    <symbol>
      <lowervalue></lowervalue>
      <uppervalue></uppervalue>
      <label></label>
      <pointsymbol>hard:circle</pointsymbol>
      <pointsize>4</pointsize>
      <pointsizeunits>pixels</pointsizeunits>
      <rotationclassificationfieldname></rotationclassificationfieldname>
      <scaleclassificationfieldname></scaleclassificationfieldname>
      <symbolfieldname></symbolfieldname>
      <outlinecolor red="0" blue="0" green="0"/>
      <outlinestyle>SolidLine</outlinestyle>
      <outlinewidth>0.26</outlinewidth>
      <fillcolor red="196" blue="176" green="201"/>
      <fillpattern>SolidPattern</fillpattern>
      <texturepath>../../../../../../../../../src/qgis/plugins/db_manager/db_manager/db_plugins/postgis/plugins/qgis_topoview</texturepath>
    </symbol>
  </singlesymbol>

Shouldn't the point always be red="196" blue="176" and green="201" ? Why is it not ? Is this an incompatibility of the qml format ?

NOTE: the file outer node has parameter qgis version="1.9.0-Master"

@strk strk added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Aug 28, 2019
@strk
Copy link
Contributor Author

strk commented Aug 29, 2019

According to @nyalldawson from the mailing list the styles created with 1.9 are not supported anymore starting with qgis 3.0 but can be converted by opening them with 2.18 and saving them again.

Convoluted process, but will have to be done for branches 3.4, 3.8 and master, in order to get a correctly styled TopoViewer layer group ...

@strk strk self-assigned this Aug 29, 2019
@strk strk modified the milestones: 3.10.0, 3.4.11, 3.4.12 Aug 29, 2019
strk added a commit to strk/QGIS that referenced this issue Aug 29, 2019
From 1.9 version to 2.18 version

Closes qgis#31471
strk added a commit that referenced this issue Aug 29, 2019
From 1.9 version to 2.18 version

Closes #31471
backporting bot pushed a commit that referenced this issue Aug 29, 2019
From 1.9 version to 2.18 version

Closes #31471
backporting bot pushed a commit that referenced this issue Aug 29, 2019
From 1.9 version to 2.18 version

Closes #31471
strk added a commit that referenced this issue Aug 29, 2019
From 1.9 version to 2.18 version

Closes #31471
strk added a commit that referenced this issue Aug 29, 2019
From 1.9 version to 2.18 version

Closes #31471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant