You may run into a difficulty I found labelling small polygons - the label will not display if it extends very far outside the bounding box of the polygon itself.
What I was attempting was to display buildings as stylised points (squares) when zoomed out, but as polygons (showing the actual shape of the building) when zoomed in. Labels virtually never appeared, except on larger buildings when you zoomed in so close that the label could fit over the building. That happened even at scales where the point symbolizer was applied. Guess it is something to do with the MIN_GOODNESS_FIT value, which may only be set by changing source code. Tony From: Chris Holmes [mailto:cho...@gmail.com] Sent: Sunday, 22 August 2010 1:40 a.m. To: anders.soder...@gisassistans.se Cc: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] Labeling a "static text" ie. not <ogc:PropertyName>xyz</ogc:PropertyName> I'm not sure if you're looking something more complex, but if just want to hard code in your SLD the Swamp Forest I'm pretty sure you can say <Label> <ogc:Literal>Swamp Forest</ogc:Literal> </Label> On Thu, Aug 12, 2010 at 11:51 AM, anders.soder...@gisassistans.se <anders.soder...@gisassistans.se> wrote: Hello. In scales between 1:1 - approx. 1:25 000 I often use <Label> <ogc:PropertyName>xyz</ogc:PropertyName> </Label> and it works fine. In smaller scales (1:25 000 - 1:500 000) I would like to put a "name" for "the type of polygon", for example swamp forest, using a "static text" label i.e. Swamp Forest because the areas are to small to show any renderingresult or attribute text. I would like the "static text" to be written above or on top of the polygon. Hope somebody has tried this :blush: Regards Anders Stockholm Sweden -- View this message in context: http://old.nabble.com/Labeling-a-%22static-text%22-ie.-not-%3Cogc%3AProperty Name%3Exyz%3C-ogc%3APropertyName%3E-tp29420204p29420204.html Sent from the GeoServer - User mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users