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. Commented Sep 6, 2017 at 15:53

1 Answer 1


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
    Commented Sep 7, 2017 at 8:02
  • I've tested in 2.18.12, unsuccesfully...
    – Jane
    Commented Sep 7, 2017 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
    Commented Sep 8, 2017 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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