[Geoserver-users] Line offset issue

I'm using Geoserver 2.6.2 and QGIS 2.10 to check my WMTS display. According
to the documentation, I have tried 2 different ways to draw a line offset
for a line-type layer, but none is working correctly. If I test my SLD
within Geoserver GUI, I get an error message on the `PerpendicularOffset`
line. In QGIS, my layer is displaying but the offset is not taken into
account.

*Test 1:*

       <LineSymbolizer>
         <Stroke>
           <CssParameter name="stroke">#0000FF</CssParameter>
           <CssParameter name="stroke-width">3</CssParameter>
           <CssParameter name="stroke-dasharray">5 2</CssParameter>
         </Stroke>
           <PerpendicularOffset>3</PerpendicularOffset>
       </LineSymbolizer>

*Test 2:*

       <LineSymbolizer>
         <Stroke>
           <CssParameter name="stroke">#0000FF</CssParameter>
           <CssParameter name="stroke-width">3</CssParameter>
           <CssParameter name="stroke-dasharray">5 2</CssParameter>
         </Stroke>
           <VendorOption name="PerpendicularOffset">3</VendorOption>
       </LineSymbolizer>

Any idea on what would be the problem?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Line-offset-issue-tp5245805.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
The following worked for me.

             <se:LabelPlacement>
               <se:LinePlacement>
<se:PerpendicularOffset>3</se:PerpendicularOffset>
               </se:LinePlacement>
             </se:LabelPlacement>

It's SLD 1.1, but I imagine that if you convert it back to SLD 1.0 (i.e. remove the "se:" it should probably work in that too.
Although I'm using it for labels rather than lines, I'm not sure if that'll make any difference.

Cheers,
Jonathan

On 18/01/2016 09:40, wiltomap wrote:

I'm using Geoserver 2.6.2 and QGIS 2.10 to check my WMTS display. According
to the documentation, I have tried 2 different ways to draw a line offset
for a line-type layer, but none is working correctly. If I test my SLD
within Geoserver GUI, I get an error message on the `PerpendicularOffset`
line. In QGIS, my layer is displaying but the offset is not taken into
account.

*Test 1:*

        <LineSymbolizer>
          <Stroke>
            <CssParameter name="stroke">#0000FF</CssParameter>
            <CssParameter name="stroke-width">3</CssParameter>
            <CssParameter name="stroke-dasharray">5 2</CssParameter>
          </Stroke>
            <PerpendicularOffset>3</PerpendicularOffset>
        </LineSymbolizer>

*Test 2:*

        <LineSymbolizer>
          <Stroke>
            <CssParameter name="stroke">#0000FF</CssParameter>
            <CssParameter name="stroke-width">3</CssParameter>
            <CssParameter name="stroke-dasharray">5 2</CssParameter>
          </Stroke>
            <VendorOption name="PerpendicularOffset">3</VendorOption>
        </LineSymbolizer>

Any idea on what would be the problem?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Line-offset-issue-tp5245805.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users