re-using raster CLASS definitions
Frank Warmerdam
warmerdam at POBOX.COM
Fri Jun 16 09:52:10 PDT 2006
Jeff de La Beaujardiere wrote:
> Is there a way to re-use raster class definitions in a mapfile? I have
> several shapefiles with a large number of polygon types mapped to
> different colors. The same types appear in all the files. At present I
> duplicate all the CLASS entries in each LAYER, but I would like to
> shorten the mapfile by collecting them somewhere. All the layers are in
> the same GROUP, if that helps.
Jeff,
There is no mechanism for doing this in MapServer. However, some people
using a preprocessor (like the C preprocessor) to generate mapfiles from
an input file in order to use #include and #ifdef type directives.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org
More information about the MapServer-users
mailing list