[mapserver-users] external graphic symbol don't follow the GetStyles method
Martin Ouellet
geomartino at gmail.com
Tue Nov 30 14:01:49 PST 2010
Hi,
When I used a external graphic element in a SLD like this:
<Name>test</Name>
<ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>indicatif</ogc:PropertyName><ogc:Literal>1030050000</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>
<MaxScaleDenominator>40000.000000</MaxScaleDenominator>
<Graphic>
<ExternalGraphic>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="
http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"/>
<Format>GIF</Format>
</ExternalGraphic>
Then I used the temporary mapfile generated by the call to define the same
symbology but in my mapfile.
SYMBOL
NAME "
http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"
TYPE PIXMAP
IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif"
GAP -11
TRANSPARENT 0
END
CLASS
NAME "test"
EXPRESSION ([indicatif] = 1030050000)
MAXSCALEDENOM 40000
STYLE
ANGLE 360
COLOR 0 0 0
SIZE 5.5
SYMBOL "
http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"
WIDTH 1
END
END
Question: Finally, I would like to expose this symbology through the
GetStyles() method but it seem to be completely ignored?
<Name>test</Name>
<ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>indicatif</ogc:PropertyName><ogc:Literal>1030050000</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>
<MaxScaleDenominator>40000.000000</MaxScaleDenominator>
<PointSymbolizer>
</PointSymbolizer>
Is it normal? Thank you in advance!
MartinO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101130/cd92ae3f/attachment.htm>
More information about the MapServer-users
mailing list