Hi Olex,

Please keep messages on the users list - that way anyone can answer, not
just me.  And the result will be available through Google to the next user
with your question :)

There are two approaches you can use*:

1) Use a font which defines an arrow character and use that in labels
2) Use the SLD <GraphicStroke> element to paint an image along the line.
 In combination with a carefully chosen dash-array and dash-offset this can
work well, but it will require some tuning.

* I've also seen styles that use carefully aligned dashed lines to simulate
arrows following paths, but I wouldn't recommend it :)

--
David Winslow
OpenGeo - http://opengeo.org/

On Wed, Apr 11, 2012 at 3:48 PM, Olex Filevych <[email protected]>wrote:

> Hi,
> thanks a lot. You were a big help for me.
> Sorry, but may you know a function, which can be used to force images like
> for example arrows to follow the geometry of the layer (for example rivers
> etc.). I found a function for text labels to follow for example streets
> etc. But is there a possibility that an image (e.g. arrows/shipping
> traffic) will follow the course of the river?! Or is it the same as for
> text labels (VendorOption name="followLine")
> Thanks!
>
>   ------------------------------
> *Von:* David Winslow <[email protected]>
> *An:* Olex Filevych <[email protected]>
> *CC:* "[email protected]" <
> [email protected]>
> *Gesendet:* 16:18 Montag, 2.April 2012
> *Betreff:* Re: [Geoserver-users] Adding "free" textlabels to the values
> of the attribute
>
> GeoServer provides a filter function named strConcat that can help you:
>
> <TextSymbolizer>
> <Label>
> <ogc:Function name="strConcat">
> <ogc:PropertyName>prop</ogc:PropertyName>
> <ogc:Literal> clr</ogc:Literal>
> </ogc:Function>
> </Label>
> </TextSymbolizer>
>
> As a shorthand, you can simply put multiple properties in the Label
> element.
>
> <Label>
> <ogc:PropertyName>prop</ogc:PropertyName> clr
> </Label>
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On Mon, Mar 26, 2012 at 7:26 AM, Olex Filevych <[email protected]>wrote:
>
> Hallo,
> I have a problem with adding an external Textlabel a value!
>
> I want to add a text like "clr" to the values of a specific attribute.
> This text label should appear behind the values of the attribute like "clr"
> [value]. Is the a function or so that can solve this probmel or is it not
> possible to add a "free" text to the existing values?!
>
> Thanks
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>
>
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to