<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<STYLE type=text/css>BODY {
        BACKGROUND-POSITION: 25px 0px; MARGIN-TOP: 110px; MARGIN-LEFT: 140px; BACKGROUND-REPEAT: no-repeat
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY
style="BACKGROUND-COLOR: #ffffff; FONT-FAMILY: Verdana; COLOR: #000000; FONT-SIZE: 8pt"
background=cid:873153507@20112009-2434 bgColor=#ffffff>
<DIV><SPAN class=873153507-20112009><FONT size=1>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=873153507-20112009><FONT size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=873153507-20112009><FONT size=1>I've got a SLD that I apply to
a polygon layer and I want to add a label to identify those polygons. I manage
to add the the labels but my problem is that the labels are repeated a lot of
times into the polygons and furthermore they don't appear on the centroif of my
polygon. Here is my TextSymbolizer tag:</FONT></SPAN></DIV>
<DIV><SPAN class=873153507-20112009><FONT size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=873153507-20112009><FONT
size=1><TextSymbolizer><BR> <sld:MinScaleDenominator>3000</sld:MinScaleDenominator><BR> <sld:MaxScaleDenominator>5000</sld:MaxScaleDenominator><BR> <Label><BR> <ogc:PropertyName>MUNICIPIO</ogc:PropertyName> <BR> </Label>
<BR> <Font>
<BR> <CssParameter
name="font-family">Arial</CssParameter>
<BR> <CssParameter
name="font-weight">bold</CssParameter>
<BR> <CssParameter
name="font-size">8</CssParameter>
<BR> </Font>
<BR> <!-- this centers the
label on the polygon's
centroid--><BR> <LabelPlacement><BR>
<PointPlacement> <BR> <AnchorPoint><BR>
<AnchorPointX>0.5</AnchorPointX><BR>
<AnchorPointY>0.5</AnchorPointY><BR> </AnchorPoint><BR>
</PointPlacement>
<BR> </LabelPlacement><BR>
<!-- make the label easy to
read--><BR> <Halo>
<BR>
<Radius><BR> <ogc:Literal>2</ogc:Literal><BR>
</Radius><BR>
<Fill><BR> <CssParameter
name="fill">#FFFFFF</CssParameter><BR> <CssParameter
name="fill-opacity">0.85</CssParameter> <BR>
</Fill><BR> </Halo><BR> <Fill><BR> <CssParameter
name="fill">#000000</CssParameter> <BR> </Fill><BR> <!--
This labels each name only once, not every shape with that name
--><BR> <VendorOption
name="group">true</VendorOption><BR> </TextSymbolizer></FONT></SPAN></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV class=Section1>
<P class=MsoNormal align=left><FONT size=2 face=Arial></FONT> </P>
<P class=MsoNormal><FONT size=2 face=Arial></FONT> </P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Frutiger 55 Roman'; FONT-SIZE: 10pt">Un saludo,</SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 7.5pt"> <?xml:namespace prefix = o
ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Frutiger 55 Roman'; FONT-SIZE: 10pt">··················································································</SPAN><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 7.5pt"><BR></SPAN><SPAN
style="FONT-FAMILY: 'Frutiger 55 Roman'; FONT-SIZE: 10pt"></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><B><SPAN
style="FONT-SIZE: 9pt"><FONT face=Verdana>David Alda Fernández de
Lezea</FONT></SPAN></B></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt">Lurralde eta Biodibertsitate Saila
/ Dpto. de Territorio y Biodiversidad<o:p></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt"><o:p> </o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><B
style="mso-bidi-font-weight: normal"><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt">IKT<o:p></o:p></SPAN></B></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt">Granja Modelo s/n · 01192 · Arkaute
(Araba)<o:p></o:p></SPAN></P>
<P class=MsoNormal></SPAN><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 7.5pt"><BR>··················································································<BR>Tlfnos.:
945-00-32-95<SPAN style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-tab-count: 1"> </SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>Fax:
945-00.32.90<BR>··················································································<BR>email:
<A
href="mailto:dalda@ikt.es">dalda@ikt.es</A>
web: <A
href="http://www.ikt.es/">www.ikt.es</A><BR>··················································································<o:p></o:p></SPAN></P></DIV></BODY></HTML>