[mapserver-users] Grouping Layers

Travis Kirstine traviskirstine at gmail.com
Thu Oct 8 15:55:30 EDT 2009


Is there any way to "hide" layers within a group in a WMS service.
For instance below I have 3 layers of imagery in group called
ORTHO2002.  I would like only the group name to appear in the client
application (QGIS, ESRI etc...) and restrict the option of expanding
the group and showing each layer


        LAYER
                NAME "GTA10km_2002"
                TILEINDEX
"/home/share1/raster/2002_GTA_10km_tif_pil/gta_10km_tindex"
                MAXSCALE 18000000
                MINSCALE 40000
                METADATA
                        "WMS_GROUP_TITLE" "ORTHO2002"
                        "WMS_TITLE" "GTA10KM2002"
                END
                PROJECTION
                         "init=epsg:26917"
                END
                TYPE RASTER
                GROUP "ORTHO2002"
                STATUS OFF
                OFFSITE 0 0 0
                PROCESSING "RESAMPLE=BILINEAR"
        END
        LAYER
                NAME "GTA5km_2002"
                TILEINDEX
"/home/share1/raster/2002_GTA_5km_tif_pil/gta_5km_tindex"
                MAXSCALE 41000
                MINSCALE 7500
                METADATA
                        "WMS_TITLE" "GTA5KM2002"
                END
                PROJECTION
                        "init=epsg:26917"
                END
                TYPE RASTER
                GROUP "ORTHO2002"
                STATUS OFF
                OFFSITE 0 0 0
                PROCESSING "RESAMPLE=BILINEAR"
        END
        LAYER
                NAME "GTA1KM_2002"
                TILEINDEX "/home/share1/raster/2002_GTA_1km_jpg/gta_1km_tindex"
                MAXSCALE 7600
                METADATA
                        "WMS_TITLE" "GTA1KM2002"
                END
                PROJECTION
                        "init=epsg:26917"
                END
                TYPE RASTER
                GROUP "ORTHO2002"
                STATUS OFF
                OFFSITE 0 0 0
                PROCESSING "RESAMPLE=BILINEAR"
        END





-- 
Travis K.

Toronto, Canada
------------------------------------------------------------
"She knows there's no success like failure
and that failure's no success at all."
-Bob Dylan-
------------------------------------------------------------


More information about the mapserver-users mailing list