question about new Symbol as a file, for a certain class

Jeff McKenna jmckenna at DMSOLUTIONS.CA
Wed Dec 1 11:54:45 EST 2004


Hi Calin,

You should always use the MapServer mailing list for questions (here is
the link to join in case you are not already on the list:
http://lists.umn.edu/archives/mapserver-users.html).

I think your symbol path is correct.  I think the only thing missing is
a COLOR. e.g.

   CLASS
     SIZE 8
     NAME "Cities"
     SYMBOL "./images/test.gif"
     COLOR 0 0 0
   END


jeff





Calin NITU (IG) wrote:
> Hi Jeff,
>
>
>
> Due to the new installed server I also upgraded to 4.2.5.
>
>
>
> I noticed that the SYMBOL is a little bit changed
>
>
>
> SYMBOL [integer|string|filename]
>
> The symbol name or number to use for all features if attribute tables
> are not used. The number is the index of the symbol in the symbol file,
> starting at 1, the 5th symbol in the file is therefore symbol number 5.
> You can also give your symbols names using the /NAME/ keyword in the
> symbol definition file, and use those to refer to them. Default is 0,
> which results in a single pixel, single width line, or solid polygon
> fill, depending on layer type.
>
> You can also specify a gif or png filename. The *path is relative to the
> location of the mapfile.*
>
> The map file(s) are located on absolute path:
> /web/internetgids.be/gemeentekaarten/map-files
>
>
>
> The symbols are located on absolute path:
> /web/internetgids.be/maps/symbols/klanten/
>
>
>
> So .. in the map file it should be:
>
> class
>
>        status on
>
>        expression /1240/
>
>          name "1240"
>
>        symbol '../../maps/symbols/klanten/1240.png'
>
> end
>
>
>
> Still the symbol is not displayed……
>
>
>
> The original – with absolute path worked
>
>
>
> symbol '/web/internetgids.be/maps/symbols/klanten/1240.png'
>
>
>
> I tried also to save he image as GIF…. Still no display!
>
>
>
> Any hints?
>
>
>
> Thank you,
>
> Calin
>
>

--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca



More information about the mapserver-users mailing list