[Geoserver-users] Smoother lines with LineSymbolizer

Hi all!

I have two questions:

1) When using LineSymbolizer to style a line, it draws a straight line
between two (and more) points. Is there a way to make the line between
points to be smoother? When drawing e.g. contours, road lines or boarders
this would be a nice option. Please look at the contours in the attached
image, on left side is what I mean by "smoother" and on right hand side what
I get out of GeoServer.

<http://osgeo-org.1560.x6.nabble.com/file/n5071055/contours.png&gt;

2) Could someone confirm, that <PerpendicularOffset> is not suitable for
labeling roads in a manner to get the label to follow the road on top of it?

Best regards,
Jakob

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Smoother-lines-with-LineSymbolizer-tp5071055.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Jakob,
You might want to try followLine:

http://docs.geoserver.org/stable/en/user/styling/sld-reference/labeling.html?highlight=followline#followline

It’s designed for non-straight lines.

Jonathan

On 6 August 2013 13:56, Jakob Ventin <jventin@anonymised.com> wrote:

Hi all!

I have two questions:

  1. When using LineSymbolizer to style a line, it draws a straight line
    between two (and more) points. Is there a way to make the line between
    points to be smoother? When drawing e.g. contours, road lines or boarders
    this would be a nice option. Please look at the contours in the attached
    image, on left side is what I mean by “smoother” and on right hand side what
    I get out of GeoServer.

<http://osgeo-org.1560.x6.nabble.com/file/n5071055/contours.png>

  1. Could someone confirm, that is not suitable for
    labeling roads in a manner to get the label to follow the road on top of it?

Best regards,
Jakob


View this message in context: http://osgeo-org.1560.x6.nabble.com/Smoother-lines-with-LineSymbolizer-tp5071055.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

On Tue, Aug 6, 2013 at 2:56 PM, Jakob Ventin <jventin@anonymised.com> wrote:

Hi all!

I have two questions:

1) When using LineSymbolizer to style a line, it draws a straight line
between two (and more) points. Is there a way to make the line between
points to be smoother? When drawing e.g. contours, road lines or boarders
this would be a nice option. Please look at the contours in the attached
image, on left side is what I mean by "smoother" and on right hand side
what
I get out of GeoServer.

<http://osgeo-org.1560.x6.nabble.com/file/n5071055/contours.png&gt;

We'd need a smoothing geometry transformation, something that we do not
have,
but we have a pluggable extension point where that code could be hooked
(so the difficulty is only in how sophisticated the smoothing algorithm
should be).

2) Could someone confirm, that <PerpendicularOffset> is not suitable for
labeling roads in a manner to get the label to follow the road on top of
it?

followLine and perpendicularOffset do not mix, as we don't have a reliable
routing to compute line offsets (which is a hard problem to solve right)

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------