Hi Steve,
This page:
http://docs.geoserver.org/stable/en/user/styling/sld-reference/textsymbolizer.htmlSays
of the <geometry>:
"For non-point geometries, a representative point is used (such as the
centroid of a line or polygon)."

However, you can mangle/convert geometries (though there can be a
performance penalty). The list of geometric functions is here:

http://docs.geoserver.org/stable/en/user/filter/function_reference.html#geometric-functions

There may be a simpler way to do this, but in theory you can use one of
those to move the point to the desired location and then label it.

Cheers,
Jonathan



On 22 April 2014 21:36, Stephen V. Mather <[email protected]>wrote:

>  Hi All,
>
>
>  Is there a way to avoid having GeoServer label on the centroid? Is
> goodness of fit supposed to do this?
>
>
>  Was this thread resolved?:
>
>
> http://osgeo-org.1560.x6.nabble.com/SLD-grouping-labels-on-a-polygon-td3807020.html
>
>
>  Thanks,
>
> Best,
>
> Steve
>
>
>    [image: http://sig.cmparks.net/cmp-ms-90x122.png] Stephen V. Mather
> GIS Manager
> (216) 635-3243 (Work)
> clevelandmetroparks.com <http://www.clemetparks.com>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> 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 confidential, sensitive or personal information 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.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to