Hi,

I have a SLD which specifies a line offset using the PerpendicularOffset on a 
LineSymbolizer. However, this is not working as I expected.

The SLD 1.1 specification says: "The distance is in uoms and is positive to the 
left-hand side of the line string. Negative numbers mean right." I have the 
impression that in GeoServer, this is the other way around.

For instance: take the 'Offset line' example:
https://docs.geoserver.org/maintain/en/user/styling/sld/cookbook/lines.html#offset-line

<LineSymbolizer>
  <Stroke>
    <CssParameter name="stroke">#FF0000</CssParameter>
    <CssParameter name="stroke-dasharray">5 2</CssParameter>
  </Stroke>
  <PerpendicularOffset>5</PerpendicularOffset>
</LineSymbolizer>

In that example: the offset is positive, so the dashed line should be on the 
left-hand side of the original line.
However, when I look at the screenshot that comes with the example and also 
look at the data inside the shp file, the dashed lines are drawn on the 
right-hand side of the lines.  Is that a bug, or am I missing something? Maybe 
my definition of 'left-hand side' is wrong? For me, 'left-hand side' means: if 
you start at the beginning of the line and go to the end of it, the 'left-hand 
side' is the side on your left, correct ?

kind regards,
Maarten


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to