[Qgis-user] How to copy styles between different geometry types? [Marketing Mail]

b.j.kobben at utwente.nl b.j.kobben at utwente.nl
Mon Sep 11 07:45:55 PDT 2017


A trick, or more a hack, would be to export the style to SLD, and then use a text editor to change the appropriate SLD polygon parts to line parts, eg:
 

<se:PolygonSymbolizer>
       <se:Stroke>
              <se:SvgParameter name="stroke">#816a45</se:SvgParameter>
              <se:SvgParameter name="stroke-width">0.07</se:SvgParameter>
            </se:Stroke>
            <se:Fill>
              <se:SvgParameter name="fill">#cddbe7</se:SvgParameter>
            </se:Fill>
</se:PolygonSymbolizer>

would become

to <se:LineSymbolizer>
       <se:Stroke>
              <se:SvgParameter name="stroke">#816a45</se:SvgParameter>
              <se:SvgParameter name="stroke-width">0.07</se:SvgParameter>
            </se:Stroke>
</se:PolygonSymbolizer>

of course the se:Fill part (if present) needs to be removed, otherwise most applications would consider it an error.

Not very elegant and needs a basic understanding of the SLD standard...

 
--
Barend Köbben
 

On 11/09/2017, 16:09, "Qgis-user on behalf of Elstermann, Mike" <qgis-user-bounces at lists.osgeo.org on behalf of Mike.Elstermann at itc-halle.de> wrote:

    Any ideas?
     
    mikeE.
     
    
    Von: Qgis-user [mailto:qgis-user-bounces at lists.osgeo.org]
    Im Auftrag von Elstermann, Mike
    Gesendet: Donnerstag, 31. August 2017 09:13
    An: 'qgis-user at lists.osgeo.org'
    Betreff: [Qgis-user] How to copy styles between different geometry types? [Marketing Mail]
    
    
     
    How to copy styles of a polygon theme (line of the outline polygon) to the style of a line theme in QGIS styles, i. e. when changing the geometry type. Is there a trick?
     
    THX, mikeE.
     
     
    
    



More information about the Qgis-user mailing list