[mapserver-users] LAYER Definition for a Large Data Set

Bill Thoen bthoen at gisnet.com
Fri Jan 16 10:10:43 PST 2009


I've got 80 shape files of contour data that are all part of a single 
layer (as in a tiled coverage) that I want to serve as a WMS layer. Is 
there an alternative to writing out 80 LAYER definitions in the mapfile? 
In other words, these blocks of contours all have the same attributes 
(type, projection, class style, etc.) with the only differences between 
them being their file name and location. I'm just looking for a shortcut 
to having to write out the following (with only minor changes each time) 
80 times:
   LAYER
      NAME "0683"
      METADATA
         "wms_title" "0683"
      END
      TYPE LINE
      STATUS ON
      DATA "Contours/0683"
      PROJECTION
         "init=epsg:2232"
      END
      CLASS
         NAME "Contours"
         STYLE
            OUTLINECOLOR 0 192 112
            WIDTH 1
         END
      END
   END




More information about the MapServer-users mailing list