Opened 18 years ago

Last modified 13 years ago

#1952 closed defect

Tileindex Layer and WMS Get Capabilities. — at Initial Version

Reported by: dnadeau@… Owned by: mapserverbugs
Priority: high Milestone: 6.0 release
Component: WMS Server Version: unspecified
Severity: normal Keywords:
Cc: jmckenna, mko

Description

When a client perform a Get Capabilities, all "tileindex" layers should not be
displayed.  WMS clients may try to get data from this layer and the request will
fail.

Can we add a STATUS flag to hide some layers from a Get Capability request?


Here is an example where the first layer should not be displayed in a Get
Capability request.  

#
#  TRMM_3B42_V6_10-DAY Tileindex Layer
#
LAYER
    STATUS ON
    NAME        'TRMM_3B42_V6_10_DAY_IDX'
    TYPE POLYGON
    CONNECTIONTYPE POSTGIS
    CONNECTION  "dbname=mapserver password=**** user=**** port=5432"
    DATA        "the_geom from trmm_3b42_v6_10_day"
    METADATA
                "wms_title"    "3b42_V6_10-day Index"
        END
END


#
#  TRMM_3B42_V6_10_DAY Tileindex Layer
#

LAYER
    NAME 'TRMM_3B42_V6_10_DAY'
    TYPE RASTER
    STATUS ON
    DEBUG ON

    # Column in postgis table with varchar of the
        # filepath to each image
    TILEITEM             "location"

    TILEINDEX            "TRMM_3B42_V6_10_DAY_IDX"
    PROJECTION
        "init=epsg:4326"
    END

    METADATA
                wms_title       "TRMM_3B42_V6_10_DAY"
                wms_srs         "EPSG:4326"
                wms_extent      "-180 -50.0 180 50.0"
                wms_timeextent  "1998-01-10/2011-12-31"
                wms_timeitem    "time"
                wms_timedefault "2006-03-10"
        END

        OFFSITE 0 0 0
        PROCESSING "SCALE=0,300"
        CLASS
                NAME "TRMM 3B42 R3 10 DAY"
                KEYIMAGE "/precipitation_colorbar.png"
                DEBUG ON
        END
END

Change History (1)

by dnadeau, 16 years ago

Attachment: mapwms.patch added

Hide Tileindex from WMS GetCapabilities

Note: See TracTickets for help on using tickets.