14

I am creating a polygon feature layer with soil classes in QGIS.

I need to share this layer with some colleagues and I need the layer to maintain the color ramp I have created.

Is there any specific format where the color ramp is saved together with the layer?

Since I don´t know how to do that, I was thinking on saving the color ramp that I created as a style.

How can I export this style?

  • If you're happy to save it to a KML file then the layer will keep its symbology – Rob Lodge Nov 11 '13 at 11:31
29

After setting the symbology (colours / appearance) of your vector layer, you can save the symbology together with the shapefile. If the layer style file stays together with the other necessary parts of the shapefile (shp, shx and dbf) then it will automatically be rendered in the same way when it is next loaded into QGIS, even on another computer.

  1. Save your layer as a shapefile, if you haven't already, for example shpexample.shp.
  2. Open the Layer Properties | Style tab
  3. Click the Save style button and select "QGIS Layer Style File", then save it with the same name (shpexample)

enter image description here

  • This is just the right answer to my problem, thank you very much! – Graellsia Nov 11 '13 at 13:09
  • 2
    @Graellsia - Glad it helps ... if it's the answer you need, click the check mark next to this answer! – Simbamangu Nov 11 '13 at 13:24
  • Thanks a lot for this information. It is also possible to load the saved style again for the same shape/layer if it has been saved with a different file name, e.g when you have changed the CRS. The feature is very similar to *.lyr in ArcGIS. – HaraldVTN Jun 30 '15 at 6:00
  • 1
    spot on, saved me! UPVOTED AND BONUSED! :) – tony gil Sep 22 '18 at 10:12
1

You could save your data as a Geopackage. Geopackage has the ability to store the layer styling information in the database itself so that when the user drags your data into the map the styling is automatically applied. See: Is there any way to include "universal" style/symbology in GeoPackage?

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.