You can do something like:

CLASS
    STYLE
      SYMBOL 'http://maps2.dnr.state.mn.us/compass/lib/markers/02.png'
      SIZE 41
    END
END

Where the symbol can reference a local file or a URL.

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Stathis G. Arapostathis
Sent: Wednesday, December 12, 2018 9:21 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] load an svg or a png or a gif as a map symbol in a 
map file

Dear Sirs/Madams,

  It's been a while since the last time I used map server. As a result I don't 
remember the exact syntax for loading some svg, png and gifs as symbols in a 
point layer. How could the following code be transformed in order to replace 
the star symbol with a gif titled as cemetery.gif?

CLASS
                                    NAME 'cemeteries'
                                    STYLE
                                                COLOR 254 0 0
                                                IMAGE 'star'
                                                SIZE 8
                                    END
                        END


thank you very much in prior for your help.

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>

Virus-free. 
www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to