Hello,

I'm trying to apply a PerpendicularOffset to a stroke, but it is not being
applied.

Here is my code:

                                <se:Rule>
                                        <se:Name>test</se:Name>
                                        <ogc:Filter>
                                                <ogc:PropertyIsEqualTo>
                                                        <ogc:Function 
name="dimension">
                                                                
<ogc:PropertyName>geom</ogc:PropertyName>
                                                        </ogc:Function>
                                                        
<ogc:Literal>1</ogc:Literal>
                                                </ogc:PropertyIsEqualTo>
                                        </ogc:Filter>
                                        <se:LineSymbolizer>
                                                <se:Stroke>
                                                        <se:SvgParameter 
name="stroke">#000000</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-width">1</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dasharray">38 0</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dashoffset">0</se:SvgParameter>
                                                </se:Stroke>
                                        </se:LineSymbolizer>
                                        <se:LineSymbolizer>
                                                <se:Stroke>
                                                        <se:SvgParameter 
name="stroke">#000000</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-width">1</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dasharray">2 36</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dashoffset">0</se:SvgParameter>
                                                </se:Stroke>
                        <se:PerpendicularOffset>10</se:PerpendicularOffset>
                                        </se:LineSymbolizer>
                                        <se:LineSymbolizer>
                                                <se:Stroke>
                                                        <se:GraphicStroke>
                                                                <se:Graphic>
                                                                        
<se:ExternalGraphic>
                                                                                
<se:OnlineResource xlink:type="simple" xlink:href="emrail01.svg"/>
                                                                                
<se:Format>image/svg+xml</se:Format>
                                                                        
</se:ExternalGraphic>
                                                                        
<se:Size>12</se:Size>
                                                                        
<se:Displacement>
                                                                                
<se:DisplacementX>0</se:DisplacementX>
                                                                                
<se:DisplacementY>-1</se:DisplacementY>
                                                                        
</se:Displacement>
                                                                </se:Graphic>
                                                        </se:GraphicStroke>
                                                        <se:SvgParameter 
name="stroke-dasharray">2 36</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dashoffset">10</se:SvgParameter>
                                                </se:Stroke>
                                        </se:LineSymbolizer>
                                        <se:LineSymbolizer>
                                                <se:Stroke>
                                                        <se:GraphicStroke>
                                                                <se:Graphic>
                                                                        
<se:ExternalGraphic>
                                                                                
<se:OnlineResource xlink:type="simple" xlink:href="emrail01.svg"/>
                                                                                
<se:Format>image/svg+xml</se:Format>
                                                                        
</se:ExternalGraphic>
                                                                        
<se:Size>12</se:Size>
                                    <se:Rotation>180</se:Rotation>
                                                                        
<se:Displacement>
                                                                                
<se:DisplacementX>0</se:DisplacementX>
                                                                                
<se:DisplacementY>-1</se:DisplacementY>
                                                                        
</se:Displacement>
                                                                </se:Graphic>
                                                        </se:GraphicStroke>
                                                        <se:SvgParameter 
name="stroke-dasharray">2 36</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dashoffset">10</se:SvgParameter>
                                                </se:Stroke>
                                        </se:LineSymbolizer>
                                        <se:LineSymbolizer>
                                                <se:Stroke>
                                                        <se:GraphicStroke>
                                                                <se:Graphic>
                                                                        
<se:ExternalGraphic>
                                                                                
<se:OnlineResource xlink:type="simple" xlink:href="emrail01.svg"/>
                                                                                
<se:Format>image/svg+xml</se:Format>
                                                                        
</se:ExternalGraphic>
                                                                        
<se:Size>12</se:Size>
                                                                        
<se:Displacement>
                                                                                
<se:DisplacementX>0</se:DisplacementX>
                                                                                
<se:DisplacementY>-1</se:DisplacementY>
                                                                        
</se:Displacement>                                                              
        
                                                                </se:Graphic>
                                                        </se:GraphicStroke>
                                                        <se:SvgParameter 
name="stroke-dasharray">2 36</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dashoffset">29</se:SvgParameter>
                                                </se:Stroke>
                                        </se:LineSymbolizer>
                                        <se:LineSymbolizer>
                                                <se:Stroke>
                                                        <se:GraphicStroke>
                                                                <se:Graphic>
                                                                        
<se:ExternalGraphic>
                                                                                
<se:OnlineResource xlink:type="simple" xlink:href="emrail01.svg"/>
                                                                                
<se:Format>image/svg+xml</se:Format>
                                                                        
</se:ExternalGraphic>
                                                                        
<se:Size>12</se:Size>
                                    <se:Rotation>180</se:Rotation>
                                                                        
<se:Displacement>
                                                                                
<se:DisplacementX>0</se:DisplacementX>
                                                                                
<se:DisplacementY>-1</se:DisplacementY>
                                                                        
</se:Displacement>
                                                                </se:Graphic>
                                                        </se:GraphicStroke>
                                                        <se:SvgParameter 
name="stroke-dasharray">2 36</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dashoffset">29</se:SvgParameter>
                                                </se:Stroke>
                                        </se:LineSymbolizer>
                                </se:Rule>

This is the result I have:

<http://osgeo-org.1560.x6.nabble.com/file/n5265216/xfELJ2K.png> 

This is what I want:

<http://osgeo-org.1560.x6.nabble.com/file/n5265216/xXZ3Qqg.png> 


So as you can see, I would like to have this little dash on the top and I
try to add it with this line of code and perpendicularoffset:

                                        <se:LineSymbolizer>
                                                <se:Stroke>
                                                        <se:SvgParameter 
name="stroke">#000000</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-width">1</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dasharray">2 36</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-dashoffset">0</se:SvgParameter>
                                                </se:Stroke>
                                               
<se:PerpendicularOffset>10</se:PerpendicularOffset>
                                        </se:LineSymbolizer>


But it's just not working.
This piece of code has no effect.

thank you



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/PerpendicularOffset-not-working-tp5265216.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to