[mapserver-dev] exported SLDs lacking ogc:Filter-definition for
classification
Stephan Holl
stephan.holl at intevation.de
Fri May 15 05:17:24 EDT 2009
Hello MapServer-devs,
I am exporting a Mapfile to SLD using pythons
layer.generateSLD()-method.
Assefa already provided some fixes for that in the past. For now I
found another oddity inside the generated SLDs:
My layer-definition in the mapfile:
LAYER
CONNECTION "xx/xx at xx"
CONNECTIONTYPE ORACLESPATIAL
DATA "geom from ISAL..."
METADATA
"wms_srs" "EPSG:325833"
"wms_layer_group"
"/Fachinfo/Umwelt/Boden_und_Abfallwirtschaft/Kom: Altlast"
"wms_extent" "3376670 5693050 3412800 5742770"
"wms_title" "Altlast: Typ"
END
NAME "altlast_typ"
SIZEUNITS PIXELS
STATUS ON
TOLERANCE 10
TOLERANCEUNITS PIXELS
TRANSPARENCY 100
TYPE POINT
UNITS METERS
# CLASSITEM CODE
CLASS
EXPRESSION ('[CODE]'>='70000' and '[CODE]'<'80000')
NAME "Stoffl. schaedl. Bodenveraenderung: saniert"
MINSCALE 50000
METADATA
END
STYLE
SIZE 7
COLOR 0 0 0
SYMBOL "triangle"
END
TEMPLATE "../html/altlast_typ.html"
END
[...]
END
The resulting sld lacks a Filter-property to classify the layer
correctly (as it is done within the mapfile):
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xml
ns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0"
xsi:schemaLocation="http://ww w.opengis.net/sld
http://10.224.1.83/schemas/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer> <Name>altlast_typ</Name> <UserStyle> <FeatureTypeStyle>
<Rule> <Name>Stoffl. schaedl. Bodenveraenderung: saniert</Name>
<MinScaleDenominator>50000.000000</MinScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>triangle</WellKnownName>
<Fill>
<CssParameter name="fill">#0000ff</CssParameter>
</Fill>
</Mark>
<Size>7</Size>
</Graphic>
</PointSymbolizer>
</Rule>
[...]
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Is this a bug? Could someone have a look at this situation?
Best
Stephan
--
Stephan Holl <stephan.holl at intevation.de> | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090515/321f1853/signature.bin
More information about the mapserver-dev
mailing list