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

Frode Wiseth Jørgensen frodewj at gmail.com
Fri Jan 16 10:13:35 PST 2009


Hi

Using TILEINDEX is one option.

Have a look at this:
http://mapserver.org/optimization/tileindex.html#tileindex


Frode




2009/1/16 Bill Thoen <bthoen at gisnet.com>:
> 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
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Frode Wiseth Jørgensen
+47 99 03 41 42



More information about the MapServer-users mailing list