<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Pedro, Obrigado pela ajuda.<br>
Copiei o estilo do point do geoserver e substituí o
featuretypestyle. Mesmo assim não consigo alterar o tamanho dos
labels. Tenho a certeza que o estilo está correctamente associado ao
layer.<br>
<br>
<br>
Originalmente tinha o tamanho a 12 e eu mudei para metade como podes
ver em baixo mas o tamanho nunca muda, não entendo.<br>
<br>
<?xml version="1.0" encoding="ISO-8859-1"?><br>
<StyledLayerDescriptor version="1.0.0"
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sld">"http://www.opengis.net/sld"</a>
xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a><br>
xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a>
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">"http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"</a>><br>
<NamedLayer><br>
<Name>Default Point</Name><br>
<UserStyle><br>
<Title>Default point</Title><br>
<Abstract>A sample style that just prints out a 6px wide
red square</Abstract><br>
<br>
<FeatureTypeStyle><br>
<Rule><br>
<PointSymbolizer><br>
<Graphic><br>
<Mark><br>
<WellKnownName>circle</WellKnownName><br>
<Fill><br>
<CssParameter
name="fill">#FF0000</CssParameter><br>
</Fill><br>
</Mark><br>
<Size>6</Size><br>
</Graphic><br>
</PointSymbolizer><br>
<TextSymbolizer><br>
<Label><br>
<ogc:PropertyName>codi</ogc:PropertyName><br>
</Label><br>
<Font><br>
<CssParameter
name="font-family">Arial</CssParameter><br>
<CssParameter
name="font-size">6</CssParameter><br>
<CssParameter
name="font-style">normal</CssParameter><br>
<CssParameter
name="font-weight">bold</CssParameter><br>
</Font><br>
<LabelPlacement><br>
<PointPlacement><br>
<AnchorPoint><br>
<AnchorPointX>0.5</AnchorPointX><br>
<AnchorPointY>0.0</AnchorPointY><br>
</AnchorPoint><br>
<Displacement><br>
<DisplacementX>0</DisplacementX><br>
<DisplacementY>5</DisplacementY><br>
</Displacement><br>
</PointPlacement><br>
</LabelPlacement><br>
<Fill><br>
<CssParameter
name="fill">#000000</CssParameter><br>
</Fill><br>
</TextSymbolizer><br>
</Rule><br>
</FeatureTypeStyle><br>
</UserStyle><br>
</NamedLayer><br>
</StyledLayerDescriptor><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 24-11-2011 10:17, Pedro Mendes wrote:
<blockquote
cite="mid:CAEy0fYnqg30z7ik2-X8tcUdGpROZYa68Q9NRPyj_esQTAo-EgQ@mail.gmail.com"
type="cite">Olá Pedro,
<div><br>
</div>
<div>Se calhar convém começares por aqui: <a
moz-do-not-send="true"
href="http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html">http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html</a>.
A documentação é bastante boa.<br>
Para construires o SLD à tua medida, para o exemplo que pedes,
podes pegar no <span class="Apple-style-span" style="color:
rgb(6, 40, 115); font-family: 'andale mono', 'lucida console',
monospace; font-size: 14px; font-weight: bold; line-height:
21px; white-space: pre-wrap; background-color: rgb(251, 229,
78); ">FeatureTypeStyle</span> aqui <a moz-do-not-send="true"
href="http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/points.html#point-with-styled-label">http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/points.html#point-with-styled-label</a>.
Faz uma cópia de um dos styles já existentes na configuração do
Geoserver (o "point" por exemplo) e edita lá substituindo o
elemnto FeatureTypeStyle. O exemplo proposto
"point-with-styled-label" tem de funcionar.</div>
<div><br>
</div>
<div>Mendes.</div>
<div><br>
<div class="gmail_quote">2011/11/24 Pedro Costa <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000"> Pessoal ninguém tem
um exemplo de um sld para o geoserver que funcione em que
de para escolher o campo do label, o seu tamanho, e a cor
e forma do ponto? (é para uma geometria de pontos)<br>
<br>
Obrigado<br>
<pre cols="72">Com os melhores cumprimentos,
Pedro Costa
Geógrafo
Especializado em Sistemas de Informação Geográfica e Ordenamento do Território
</pre>
<br>
Em 23-11-2011 13:59, Pedro Mendes escreveu:
<div>
<div class="h5">
<blockquote type="cite">
<div>Sugiro que isoles as situações: despista
primeiro o TxtSymbolizer e depois o
PointSymbolizer. <br>
Não é costume ver
estas FeatureTypeName, SemanticTypeIdentifier
e SemanticTypeIdentifier em exemplos de SLD no
Geoserver. Sei que não são obrigatórias.
Exeperimenta retira-las.</div>
<div><br>
</div>
<div>Segue um exemplo de userstyle com um
textsymbolizer que funciona:</div>
<div><br>
</div>
<div> <TextSymbolizer></div>
<div> <Label></div>
<div>
<ogc:PropertyName>UM_ATRIBUTO_DA_FEATURE</ogc:PropertyName></div>
<div> </Label></div>
<div> <Font></div>
<div> <CssParameter
name="font-family">Bitstream Vera
Sans</CssParameter></div>
<div> <CssParameter name="font-size"></div>
<div>
<ogc:Literal>6</ogc:Literal></div>
<div> </CssParameter></div>
<div> <CssParameter
name="font-style">Normal</CssParameter></div>
<div> <CssParameter
name="font-weight">Normal</CssParameter></div>
<div> </Font></div>
<div> <LabelPlacement></div>
<div> <PointPlacement></div>
<div> <AnchorPoint></div>
<div>
<AnchorPointX>0.5</AnchorPointX></div>
<div>
<AnchorPointY>0.5</AnchorPointY></div>
<div> </AnchorPoint></div>
<div> </PointPlacement></div>
<div> </LabelPlacement></div>
<div> <Halo></div>
<div> <Radius></div>
<div>
<ogc:Literal>1</ogc:Literal></div>
<div> </Radius></div>
<div> <Fill></div>
<div> <CssParameter
name="fill">#FFFFFF</CssParameter></div>
<div> <CssParameter
name="fill-opacity">0.85</CssParameter></div>
<div> </Fill></div>
<div> </Halo></div>
<div> <Fill></div>
<div> <CssParameter name="fill"></div>
<div>
<ogc:PropertyName>COLOR</ogc:PropertyName></div>
<div> </CssParameter></div>
<div> </Fill></div>
<div> <VendorOption
name="spaceAround">-1</VendorOption></div>
<div> </TextSymbolizer></div>
<div><br>
</div>
<br>
<div class="gmail_quote"> 2011/11/23 Pedro Costa <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:pedrocostaarma@sapo.pt"
target="_blank">pedrocostaarma@sapo.pt</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Não
funcionou. ATé porque também tentei alterar o
tamanho da mark que também tem
<ogc:Literal> e não muda nada...<br>
<br>
<br>
MAis sugestões?<br>
<br>
Obrigado
<div>
<div><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 23-11-2011 12:25, Pedro Mendes wrote:
<blockquote type="cite">Experimenta
colocar tudo o que for valores númericos
dentro de um
elemento <ogc:Literal>. Como tens
feito para a Rotation e outros.<br>
<br>
<div class="gmail_quote">2011/11/23
Pedro Costa <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:pedrocostaarma@sapo.pt"
target="_blank">pedrocostaarma@sapo.pt</a>></span><br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000"> <br>
<br>
Então aqui vai:<br>
<br>
<br>
ml version="1.0"
encoding="UTF-8"?><br>
<sld:StyledLayerDescriptor
xmlns=<a moz-do-not-send="true"
href="http://www.opengis.net/sld"
target="_blank">"http://www.opengis.net/sld"</a>
xmlns:sld=<a
moz-do-not-send="true"
href="http://www.opengis.net/sld"
target="_blank">"http://www.opengis.net/sld"</a>
xmlns:ogc=<a
moz-do-not-send="true"
href="http://www.opengis.net/ogc"
target="_blank">"http://www.opengis.net/ogc"</a>
xmlns:gml=<a
moz-do-not-send="true"
href="http://www.opengis.net/gml"
target="_blank">"http://www.opengis.net/gml"</a>
version="1.0.0"><br>
<sld:UserLayer><br>
<sld:LayerFeatureConstraints><br>
<sld:FeatureTypeConstraint/><br>
</sld:LayerFeatureConstraints><br>
<sld:UserStyle><br>
<sld:Name>Default
Styler</sld:Name><br>
<sld:Title/><br>
<sld:IsDefault>1</sld:IsDefault><br>
<sld:FeatureTypeStyle><br>
<sld:Name>simple</sld:Name><br>
<sld:FeatureTypeName>Feature</sld:FeatureTypeName><br>
<sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier><br>
<sld:SemanticTypeIdentifier>simple</sld:SemanticTypeIdentifier><br>
<sld:Rule><br>
<sld:PointSymbolizer><br>
<sld:Graphic><br>
<sld:Mark><br>
<sld:Fill><br>
<sld:CssParameter
name="fill">#FFFF00</sld:CssParameter><br>
</sld:Fill><br>
</sld:Mark><br>
<sld:Size><br>
<ogc:Literal>6.0</ogc:Literal><br>
</sld:Size><br>
</sld:Graphic><br>
</sld:PointSymbolizer><br>
<sld:TextSymbolizer><br>
<sld:Label><br>
<ogc:PropertyName>codi</ogc:PropertyName><br>
</sld:Label><br>
<sld:Font><br>
<sld:CssParameter
name="font-family">Arial</sld:CssParameter>
<div><br>
<sld:CssParameter
name="font-size">10</sld:CssParameter><br>
</div>
<sld:CssParameter
name="font-style">normal</sld:CssParameter><br>
<sld:CssParameter
name="font-weight">bold</sld:CssParameter><br>
</sld:Font><br>
<sld:LabelPlacement><br>
<sld:PointPlacement><br>
<sld:AnchorPoint><br>
<sld:AnchorPointX><br>
<ogc:Literal>0.0</ogc:Literal><br>
</sld:AnchorPointX><br>
<sld:AnchorPointY><br>
<ogc:Literal>0.0</ogc:Literal><br>
</sld:AnchorPointY><br>
</sld:AnchorPoint><br>
<sld:Rotation><br>
<ogc:Literal>0.0</ogc:Literal><br>
</sld:Rotation><br>
</sld:PointPlacement><br>
</sld:LabelPlacement><br>
<sld:Fill><br>
<sld:CssParameter
name="fill">#000000</sld:CssParameter><br>
</sld:Fill><br>
<sld:VendorOption
name="spaceAround">2</sld:VendorOption><br>
</sld:TextSymbolizer><br>
</sld:Rule><br>
</sld:FeatureTypeStyle><br>
</sld:UserStyle><br>
</sld:UserLayer><br>
</sld:StyledLayerDescriptor><br>
<br>
<br>
Nota: Fiz o sld com o udig.<br>
OS: Ubuntu (geobox)
<div>
<div><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 23-11-2011 12:05, Pedro
Mendes wrote:
<blockquote type="cite">Olá
Pedro,
<div><br>
</div>
<div>Coloca aqui o SLD
inteiro, para ser mais
facil avaliar o que poderá
estar mal.</div>
<div><br>
</div>
<div>Mendes.<br>
<div><br>
<div class="gmail_quote">2011/11/23
Pedro Costa <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:pedrocostaarma@sapo.pt" target="_blank">pedrocostaarma@sapo.pt</a>></span><br>
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">Pessoal,<br>
<br>
POdem ajudar no
seguinte, eu tenho
uns layers com uns
estilos no geoserver
mas não consigo
mudar o tamanho dos
labels, já fui no
sld edior e mudei
para metade do
tamanho e continua
igual.<br>
<br>
Original<br>
<br>
<sld:CssParameter
name="font-size">10</sld:CssParameter><br>
<br>
<br>
Mudei para<br>
<br>
<sld:CssParameter
name="font-size">5</sld:CssParameter><br>
<br>
ALguém sabe qual é o
problema?<br>
<br>
Obrigado<br>
_______________________________________________<br>
Portugal mailing
list<br>
<a
moz-do-not-send="true"
href="mailto:Portugal@lists.osgeo.org" target="_blank">Portugal@lists.osgeo.org</a><br>
<a
moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Portugal mailing list
<a moz-do-not-send="true" href="mailto:Portugal@lists.osgeo.org" target="_blank">Portugal@lists.osgeo.org</a>
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Portugal mailing list<br>
<a moz-do-not-send="true"
href="mailto:Portugal@lists.osgeo.org"
target="_blank">Portugal@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/portugal"
target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Portugal mailing list
<a moz-do-not-send="true" href="mailto:Portugal@lists.osgeo.org" target="_blank">Portugal@lists.osgeo.org</a>
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Portugal mailing list<br>
<a moz-do-not-send="true"
href="mailto:Portugal@lists.osgeo.org"
target="_blank">Portugal@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/portugal"
target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Portugal mailing list
<a moz-do-not-send="true" href="mailto:Portugal@lists.osgeo.org" target="_blank">Portugal@lists.osgeo.org</a>
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a>
</pre>
</blockquote>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Portugal mailing list<br>
<a moz-do-not-send="true"
href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/portugal"
target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Portugal mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/portugal">http://lists.osgeo.org/mailman/listinfo/portugal</a>
</pre>
</blockquote>
<br>
</body>
</html>