You're absolutely right Assefa, adding the parameter WMS_SLD_SYMBOL_URL
solve the problem. You're also right in saying that the information is
somehow hidden BUT it is there so my mistake, I'll try to read more
carefully next time

MartinO

2010/12/1 Yewondwossen Assefa <yass...@dmsolutions.ca>

>  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 
> listmapserver-us...@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> ----------------------------------------------------------------
> Assefa Yewondwossen
> Software Analyst
>
> Email: yass...@dmsolutions.ca    http://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax:   (613) 565-0925
> ----------------------------------------------------------------
>
>
>
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to