[Geoserver-users] Query about labels and SLD

Hi John,

1. Not much fine grain control using WMS.

You could try a separate rule for labels in each desired scale range.

From SLD spec p27:

<MinScaleDenominator>100e3</MinScaleDenominator>
<MaxScaleDenominator>1e6</MaxScaleDenominator>"
http://docs.codehaus.org/display/GEOSDOC/ComplexLabelingExample

2. This is helpful on Anchor Displacement etc:
http://docs.codehaus.org/display/GEOSDOC/LabelingOptions

Randy

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of John
Roberts
Sent: Friday, March 02, 2007 3:07 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Query about labels and SLD

Dear All

I apologise for bothering you all again! But I have another query.

I have just created a SLD file for creating labels based on points which
have a label(text) field. The labels consist of street names and house
numbers and hence are designed to be at font size 10 at about scale 1:1250.

I have two queries:

1. Is it possible to create scale dependent labels? I can't see how and I
have used the following element
<MaxScaleDenominator>2000</MaxScaleDenominator> within the <rule> element so
that the labels disappear as the map is zoomed out and hence do not become
too large. Has anyone got suggestions about other methods of dealing with
this?

2. I cannot see what the difference is between the <AnchorPoint> and
<Displacement> elements within the <PointPlacement> element (see below). I
suspect that there is a subtle difference but I am currently missing it!

Kind Regards and Many Thanks to all of you have replied to my posts today.

John
Manchester, UK

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

<PointPlacement>
  <AnchorPoint>
  <AnchorPointX>0.5</AnchorPointX>
  <AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>0.5</DisplacementX>
<DisplacementY>0.5</DisplacementY>
</Displacement>
<Rotation>
<ogc:PropertyName>angle1</ogc:PropertyName>
</Rotation>
</PointPlacement>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users