>
> * the portion before and after the middle point is long enough to fit the
> whole label
That's the one that get's me. My lines are text points that have been
converted to lines in the loading process (GIS's handle them better) -
unfortunately when this parameter is enabled GeoServer refuses to render
text if it is longer than the line (common with larger text sizes or when
zoomed out).
However, even with followLine=false, the text still follows the line and
doesn't disappear. But again, my use-case is lines that are designed for
text. Not sure if that'll do it for you.
Jonathan
On 5 August 2013 09:06, Andrea Aime <[email protected]> wrote:
> I believe it's normal behavior, in order to place a label with those
> options GeoServer:
> * places one label at the middle of the segment
> * places it only if it does not conflict with another label and
> * if there are no sharp turns in the line (> 40°)
> * the portion before and after the middle point is long enough to fit the
> whole label
>
> To increase the change of labelling a line:
> * add a maxDisplacement
> * increase the max angle
> * if the lines are long enough, consider adding a repeat param too
>
> See the labelling guide, from here onwards:
>
> http://docs.geoserver.org/latest/en/user/styling/sld-reference/labeling.html#maxdisplacement
>
> Cheers
> Andrea
>
>
>
> On Mon, Aug 5, 2013 at 9:21 AM, LinSta <[email protected]> wrote:
>
>> Hi!
>>
>> I'm experiencing that followline is not showing all of the labels that I
>> have on the dataset. I have a line-layer(roads) with roadnames. If I write
>> the SLD with a followline constraint the number of labels a clearly
>> reduced.
>>
>> I've tried to resolve it by reducing the font-size and changing font, but
>> the labels are still not appearing on all roads. Here is a piece of the
>> SLD-code:
>>
>> <TextSymbolizer>
>> <Label>
>> <ogc:PropertyName>namn</ogc:PropertyName>
>> </Label>
>>
>> <CssParameter name="font-family">SansSerif</CssParameter>
>> <CssParameter name="font-size">8</CssParameter>
>>
>>
>> <Halo>
>> <Radius><ogc:Literal>1</ogc:Literal></Radius>
>> <Fill>
>> <CssParameter name="fill">#FFFFFF</CssParameter>
>> <CssParameter name="fill-opacity">0.85</CssParameter>
>> </Fill>
>> </Halo>
>>
>> <LabelPlacement>
>> <LinePlacement>
>> </LinePlacement>
>> </LabelPlacement>
>>
>> <VendorOption name="followLine">true</VendorOption>
>> <VendorOption name="labelAllGroup">false</VendorOption>
>> </TextSymbolizer>
>>
>> I have an example with followline and without.
>> <http://osgeo-org.1560.x6.nabble.com/file/n5070770/followlinefalse.png>
>> <http://osgeo-org.1560.x6.nabble.com/file/n5070770/followlinetrue.png>
>>
>> Is this a correct behavior or does anybody have a workaround?
>>
>> Best regards,
>> Lina
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/followline-doesn-t-show-all-labels-tp5070770.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=49501711&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
>
> --
> ==
> 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
>
> -------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> 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=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> 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.
------------------------------------------------------------------------------
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=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users