Hi Marteen, looks like you're right, currently it's offsetting on the right for positive numbers (style used to make this little map attached).
[image: image.png] Uh, fixing this one is going to be a lot of trouble... perpendicular offset has been around for years (since 2.9), lots of existing styles will be broken on upgrade. I guess it will need a kill switch to re-instante the existing behavior for those upgrading. Can of worms for sure.... Can you open a bug report at https://osgeo-org.atlassian.net/browse/GEOS/summary ? Cheers Andrea On Tue, Jul 5, 2022 at 6:08 PM Maarten Coene via Geoserver-users < geoserver-users@lists.sourceforge.net> wrote: > 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 > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail
oriented.sld
Description: Binary data
_______________________________________________ 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