[OpenLayers-Users] SLD creation with Function name="Categorize"

Andreas Hocevar ahocevar at boundlessgeo.com
Wed Apr 2 12:20:50 PDT 2014


Hi,

OpenLayers does not know what to do with functions in SLD, and there
is no parser/serializer to round trip it.

Andreas.

On Tue, Apr 1, 2014 at 7:07 PM, Ruben Oliveira <mail.roliveira at gmail.com> wrote:
> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
Geospatial Solutions Engineer | Boundless
ahocevar at boundlessgeo.com
@boundlessgeo


More information about the Users mailing list