1

I am trying to save style that I made in QGIS via layer properties in *.SLD format, but when opening my layer and import this saved *.SLD style - it differs from the initial one!

As you can see:

my style in QGIS:

QGIS style

my layer with saved *.SLD style:

SLD style

All labels are disappeared and all contour lines become very thick! (width 0.1 becomes 1.0)

Why is that styles are different?

  • 1
    Does it have to be SLD? You could save the style as a QGIS style file .QML format which will work when bringing back. – HeikkiVesanto Sep 6 '17 at 15:53
2

Qgis symbology is not fully representable by the sld format. Make sure you're running he latest patch release as there's been many sld related fixes recently. Otherwise saving the style as a QML file is guaranteed to maintain the full range of label/symbol settings.

  • Yes, QML file is guaranteed to save my style completely, but I need exactly SLD. I'll try the latest QGIS version as you recommended – Jane Sep 7 '17 at 8:02
  • I've tested in 2.18.12, unsuccesfully... – Jane Sep 7 '17 at 9:26
  • I've solved my problem in notepad++ : QGIS automatically assign 1.0 to width value, so by replacing "stroke-width">1.0< to "stroke-width">0.1< I get required width – Jane Sep 8 '17 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.