I'm trying to create an SLD like this:
var sldFormater = new OpenLayers.Format.SLD({
profile: "GeoServer",
multipleSymbolizers: false,
namedLayersAsArray: true
});
var xmlReader = new OpenLayers.Format.XML();
var xmlDoc = xmlReader.read(sldAsXmlString);
var sld = sldFormater.read(xmlDoc);
My problem is that sldAsXmlString has a tag like this:
<ogc:Function name="Categorize">
<ogc:Function name="IEEERemainder">
<ogc:PropertyName>AZIMUTH</ogc:PropertyName>
<Literal>360</Literal>
</ogc:Function>
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>1</ogc:Literal>
</ogc:Function>
When I inspect variable sld,there is no property refering to
Function name="Categorize".
The problem is in
sldFormater.read(xmlDoc)
because xmlDoc is well formed, including the tag <ogc:Function name=
"IEEERemainder">
Is the parser ignoring this tag? If so, why?
Thanks in advance!
--
Melhores cumprimentos / Best regards,
* Ruben Oliveira*
www.rubenoliveira.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users