[mapserver-users] external graphic symbol don't follow the GetStyles method

Yewondwossen Assefa yassefa at dmsolutions.ca
Wed Dec 1 10:57:55 PST 2010


Hi Martin,

  I think you need to define WMS_SLD_SYMBOL_URL  to be able to generate 
an External graphic. This is documented (almost hidden :) in 
http://mapserver.org/ogc/sld.html#client-side-support

best regards,

On 30/11/2010 5:01 PM, Martin Ouellet wrote:
> 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
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101201/0bcb1bb3/attachment.htm>


More information about the MapServer-users mailing list