Hi all,
Thats the extract of a sld file where i want to use an externalgraphic to fill the polygon
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns:sld=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:gml=“http://www.opengis.net/gml” version=“1.0.0”>
sld:UserLayer
sld:LayerFeatureConstraints
sld:FeatureTypeConstraint/
</sld:LayerFeatureConstraints>
sld:UserStyle
sld:NameDefault Styler</sld:Name>
sld:TitleDefault Styler</sld:Title>
sld:Abstract</sld:Abstract>
sld:FeatureTypeStyle
sld:Namesimple</sld:Name>
sld:Titletitle</sld:Title>
sld:Abstractabstract</sld:Abstract>
sld:FeatureTypeNameItajai_apa_da_praia_brava</sld:FeatureTypeName>
sld:SemanticTypeIdentifiergeneric:geometry</sld:SemanticTypeIdentifier>
sld:SemanticTypeIdentifiersimple</sld:SemanticTypeIdentifier>
sld:Rule
sld:Namename</sld:Name>
sld:Titletitle</sld:Title>
sld:AbstractAbstract</sld:Abstract>
sld:MaxScaleDenominator1.7976931348623157E308</sld:MaxScaleDenominator>
sld:PolygonSymbolizer
sld:Fill
sld:GraphicFill
sld:Graphic
sld:ExternalGraphic
<InlineContent xlink:type=“simple” xlink:href="http://www.mydomain.com.br/montanari/grass.gif"/>
image/bmp
</sld:ExternalGraphic>
23
</sld:Graphic>
</sld:GraphicFill>
</sld:Fill>
</sld:PolygonSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:UserLayer>
</sld:StyledLayerDescriptor>
but i get the following error:
INVALID XML: The prefix “xlink” for attribute “xlink:type” is not bound.
someone could give me a hint how to solve it?
Regards
Fernando Quadro
Laboratório de Computação Aplicada – G10
Universidade do Vale do Itajaí - Univali
Centro de Ciências Tecnológicas da Terra e do Mar
CEP 88302-202 - Itajaí/SC - Brasil
http://www.univali.br/g10
Ligue para os amigos com a Chamada de PC para PC - GRATUITO Experimente já!
Hi Fenando,
You need the following namespace mapping on the root element of the document.
xmlns:xlink="http://www.w3.org/1999/xlink"
-Justin
Fernando Quadro wrote:
Hi all,
Thats the extract of a sld file where i want to use an externalgraphic to fill the polygon
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" version="1.0.0">
<sld:UserLayer>
<sld:LayerFeatureConstraints>
<sld:FeatureTypeConstraint/>
</sld:LayerFeatureConstraints>
<sld:UserStyle>
<sld:Name>Default Styler</sld:Name>
<sld:Title>Default Styler</sld:Title>
<sld:Abstract></sld:Abstract>
<sld:FeatureTypeStyle>
<sld:Name>simple</sld:Name>
<sld:Title>title</sld:Title>
<sld:Abstract>abstract</sld:Abstract>
<sld:FeatureTypeName>Itajai_apa_da_praia_brava</sld:FeatureTypeName>
<sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier>
<sld:SemanticTypeIdentifier>simple</sld:SemanticTypeIdentifier>
<sld:Rule>
<sld:Name>name</sld:Name>
<sld:Title>title</sld:Title>
<sld:Abstract>Abstract</sld:Abstract>
<sld:MaxScaleDenominator>1.7976931348623157E308</sld:MaxScaleDenominator>
<sld:PolygonSymbolizer>
<sld:Fill>
<sld:GraphicFill>
<sld:Graphic>
<sld:ExternalGraphic>
<InlineContent xlink:type="simple" xlink:href="http://www.mydomain.com.br/montanari/grass.gif"/>
<Format>image/bmp</Format>
</sld:ExternalGraphic>
<Size>23</Size>
</sld:Graphic> </sld:GraphicFill>
</sld:Fill>
</sld:PolygonSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:UserLayer>
</sld:StyledLayerDescriptor>
but i get the following error:
INVALID XML: The prefix "xlink" for attribute "xlink:type" is not bound.
someone could give me a hint how to solve it?
Regards
*Fernando Quadro
*Laboratório de Computação Aplicada – G10
Universidade do Vale do Itajaí - Univali
Centro de Ciências Tecnológicas da Terra e do Mar
CEP 88302-202 - Itajaí/SC - Brasil
_http://www.univali.br/g10_
------------------------------------------------------------------------
Ligue para os amigos com a Chamada de PC para PC - GRATUITO Experimente já! <http://get.live.com/messenger/overview>
------------------------------------------------------------------------
-------------------------------------------------------------------------
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
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org