[mapserver-commits] r12054 - branches/branch-6-0/docs/en/ogc trunk/docs/en/ogc

svn at osgeo.org svn at osgeo.org
Sun Aug 14 07:01:25 EDT 2011


Author: havatv
Date: 2011-08-14 04:01:25 -0700 (Sun, 14 Aug 2011)
New Revision: 12054

Modified:
   branches/branch-6-0/docs/en/ogc/sos_server.txt
   branches/branch-6-0/docs/en/ogc/wcs_server.txt
   branches/branch-6-0/docs/en/ogc/wfs_server.txt
   branches/branch-6-0/docs/en/ogc/wms_server.txt
   trunk/docs/en/ogc/sos_server.txt
   trunk/docs/en/ogc/wcs_server.txt
   trunk/docs/en/ogc/wfs_server.txt
   trunk/docs/en/ogc/wms_server.txt
Log:
Updating OGC documentation (WMS, WFS, WCS, SOS) with enable_request (#3703).  Also did some map file formatting.

Modified: branches/branch-6-0/docs/en/ogc/sos_server.txt
===================================================================
--- branches/branch-6-0/docs/en/ogc/sos_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ branches/branch-6-0/docs/en/ogc/sos_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -121,6 +121,7 @@
   - sos_title
   - sos_onlineresource
   - sos_srs
+  - sos_enable_request
   - see the `Reference Section`_ of this document for a full list of metadata and
     descriptions
 
@@ -145,7 +146,7 @@
 the GetCapabilities output. If sos_onlineresource is not provided then MapServer 
 will try to provide a default one using the script name and hostname, but you 
 shouldn't count on that too much. It is strongly recommended that you provide 
-the wfs_onlineresource metadata.
+the sos_onlineresource metadata.
 
 
 Here is a valid online resource URL:
@@ -188,14 +189,15 @@
         IMAGETYPE png
 
         WEB
-         IMAGEPATH "/ms4w/tmp/ms_tmp/"
-         IMAGEURL "/ms_tmp/"  
+          IMAGEPATH "/ms4w/tmp/ms_tmp/"
+          IMAGEURL "/ms_tmp/"  
 
-         METADATA
-           "sos_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?map=D:/ms4w/apps/sos/sos_test.map" ## REQUIRED
-           "sos_title"          "My SOS Demo Server" ## Recommended
-           "sos_srs"            "EPSG:4326" ## REQUIRED
-         END
+          METADATA
+            "sos_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?map=D:/ms4w/apps/sos/sos_test.map" ## REQUIRED
+            "sos_title"          "My SOS Demo Server" ## Recommended
+            "sos_srs"            "EPSG:4326" ## REQUIRED
+            "sos_enable_request" "*" # Necessary
+          END
         END
 
         PROJECTION
@@ -439,6 +441,29 @@
 **sos_contactfacsimiletelephone**
 - * Description: Optional contact facsimile telephone number.
 
+**sos_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetObservation` and `DescribeSensor`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetObservation`:
+
+  ::
+
+    "sos_enable_request" "GetCapabilities GetObservation"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "sos_enable_request" "* !GetCapabilities"
+
 **sos_fees**
 
 - *Description:* (Optional) Fees information. Use the reserved word "none" if there 
@@ -476,7 +501,7 @@
 
 **sos_maxfeatures**
 
-- *Description:* (Optional) The number of elements to be returned by the WFS server. If the not set all observations are returned
+- *Description:* (Optional) The number of elements to be returned by the SOS server. If the not set all observations are returned
 
 **sos_encoding_blockSeparator**
 
@@ -512,6 +537,29 @@
 
 - *Description:* (Optional) An associated unit of measure URN) for a component, that will be returned when executing a GetObservation request.  Default is \"\urn:ogc:object:uom\"\
  
+**sos_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetObservation` and `DescribeSensor`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetObservation`:
+
+  ::
+
+    "sos_enable_request" "GetCapabilities GetObservation"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "sos_enable_request" "* !GetCapabilities"
+
 **sos_observedproperty_id**
 
 - *Description:* (Required) ID of observed property, possibly in number format.

Modified: branches/branch-6-0/docs/en/ogc/wcs_server.txt
===================================================================
--- branches/branch-6-0/docs/en/ogc/wcs_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ branches/branch-6-0/docs/en/ogc/wcs_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -72,6 +72,7 @@
 - LAYER NAME must be set
 - LAYER TYPE is set to RASTER
 - LAYER DUMP parameter set to TRUE
+- WEB metadata "wcs_enable_request" must be set
 - WEB metadata "wcs_label" must be set
 - LAYER metadata "wcs_label" must be set
 - LAYER metadata "wcs_rangeset_name" must be set
@@ -127,6 +128,7 @@
             "wcs_contactvoicetelephone"    "613-555-1234"
             "wcs_contactfacimiletelephone" "613-555-1235"
             "wcs_service_onlineresource"   "http://127.0.0.1/cgi-bin/mapserv.exe?"            
+            "wcs_enable_request            "*"
           END
         END
 
@@ -767,6 +769,29 @@
 
 - *Description:* (Optional) A description of the server. 
 
+**wcs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetCoverage` and `DescribeCoverage`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetCoverage`:
+
+  ::
+
+    "wcs_enable_request" "GetCapabilities GetCoverage"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wcs_enable_request" "* !GetCapabilities"
+
 **wcs_fees**
 
 - *Description:* (Optional) A text string indicating any fees imposed by the service provider. 
@@ -822,6 +847,29 @@
 
 - *Description:* (Optional) A description of the layer.
 
+**wcs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetCoverage` and `DescribeCoverage`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetCoverage`:
+
+  ::
+
+    "wcs_enable_request" "GetCapabilities GetCoverage"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wcs_enable_request" "* !GetCapabilities"
+
 **wcs_extent**
 
 - *Description:* (Optional) Bounding box of layer, which must be provided for tiled data.  Comma-delimited, in the format of: minx,miny,maxx,maxy

Modified: branches/branch-6-0/docs/en/ogc/wfs_server.txt
===================================================================
--- branches/branch-6-0/docs/en/ogc/wfs_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ branches/branch-6-0/docs/en/ogc/wfs_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -125,6 +125,10 @@
   Resource URL" section of the :ref:`WMS Server <online_resource_wms>`
   document.
 
+- The "wfs_enable_request" metadata (see below).
+
+
+
 Example WFS Server Mapfile
 --------------------------
 
@@ -156,6 +160,7 @@
             "wfs_onlineresource" "http://demo.mapserver.org/cgi-bin/wfs?" ## Recommended
             "wfs_srs"            "EPSG:4326 EPSG:4269 EPSG:3978 EPSG:3857" ## Recommended
             "wfs_abstract"       "This text describes my WFS service." ## Recommended
+            "wfs_enable_request" "*"  # necessary
           END
         END
 
@@ -410,6 +415,29 @@
 - *Description:* (Optional) Any fees imposed by the service provider
   for usage of this service or for data retrieved from the WFS. 
 
+**wfs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetFeature` and `DescribeFeatureType`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetFeature`:
+
+  ::
+
+    "wfs_enable_request" "GetCapabilities GetFeature"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wfs_enable_request" "* !GetCapabilities"
+
 **wfs_getcapabilities_version**
 
 - *Description:* (Optional) Default version to use for GetCapabilities
@@ -623,6 +651,29 @@
   then it has priority and MapServer will NOT try to read the source
   file's extents.
 
+**wfs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetFeature` and `DescribeFeatureType`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetFeature`:
+
+  ::
+
+    "wfs_enable_request" "GetCapabilities GetFeature"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wfs_enable_request" "* !GetCapabilities"
+
 **wfs_featureid**
 
 - *Description:* (Required for MapServer 4.10) Field to be used for

Modified: branches/branch-6-0/docs/en/ogc/wms_server.txt
===================================================================
--- branches/branch-6-0/docs/en/ogc/wms_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ branches/branch-6-0/docs/en/ogc/wms_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -145,6 +145,7 @@
   - wms_title
   - wms_onlineresource
   - wms_srs (unless PROJECTION object is defined using "init=epsg:...") 
+  - wms_enable_request
 
 **And for each LAYER:**
 
@@ -162,7 +163,7 @@
 - Layer TEMPLATE (required for GetFeatureInfo requests)
 - Layer DUMP TRUE (only required for GetFeatureInfo GML requests)
 
-Let's go through each of these paramters in more detail:
+Let's go through each of these parameters in more detail:
 
 - **Map Name and wms_title:**
 
@@ -289,6 +290,12 @@
   This is covered in more detail in the section "More About the Online Resource 
   URL" below. 
   
+- **"wms_enable_request" metadata:**
+
+  Specify which requests to enable.  If not specified, no requests
+  will be enabled!  See the explanation below.
+
+
 - **Configuring for GetFeatureInfo Requests:**
 
   You must set the layer TEMPLATE parameter for the layer to be queryable by 
@@ -787,6 +794,29 @@
 - *Description:* Optional XML capabilities encoding type. The default is
   ISO-8859-1.
 
+**wms_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetMap`, `GetFeatureInfo` and
+  `GetLegendGraphic`.  A "!" in front of a request will disable the
+  request. "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetMap` and `GetFeatureInfo`:
+
+  ::
+
+    "wms_enable_request" "GetMap GetFeatureInfo"
+
+  To enable all requests except `GetFeatureInfo`
+
+  ::
+
+    "wms_enable_request" "* !GetFeatureInfo"
+
 **wms_feature_info_mime_type**
 
 - *WMS TAG Name:* Feature_info_mime_type
@@ -1065,6 +1095,29 @@
   wms_dataurl_format must also be specified.
 - refer to section 7.1.4.5.14 of the WMS 1.1.1 spec. 
 
+**wms_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetMap`, `GetFeatureInfo` and
+  `GetLegendGraphic`.  A "!" in front of a request will disable the
+  request. "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetMap` and `GetFeatureInfo`:
+
+  ::
+
+    "wms_enable_request" "GetMap GetFeatureInfo"
+
+  To enable all requests except `GetFeatureInfo`
+
+  ::
+
+    "wms_enable_request" "* !GetFeatureInfo"
+
 **wms_extent**
 
 - *WMS TAG Name:* BoundingBox (WMS1.1.1, sect. 6.5.6)
@@ -1275,6 +1328,7 @@
           "wms_title"     "WMS Demo Server"  ##required
           "wms_onlineresource" "http://yourpath/cgi-bin/mapserv.exe?"   ##required
           "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"  ##recommended
+          "wms_enable_request" "*"   ##necessary
         END
       END
     
@@ -1377,17 +1431,18 @@
 
     .. code-block:: mapfile
  
-          NAME "DEMO" 
-          ... 
+         NAME "DEMO" 
+         ... 
 
-          WEB 
-          ... 
-          METADATA 
+         WEB 
+           ... 
+           METADATA 
              "wms_title"            "WMS Demo Server" 
              "wms_onlineresource"   "http://my.host.com/cgi-bin/mapserv?map=wms.map&" 
              "wms_srs"              "AUTO:42001 AUTO:42002" 
-          END 
-          END    
+             "wms_enable_request" "*"   ##necessary
+           END # METADATA
+         END # WEB
               
 
     The above server advertises the first two auto projections. 

Modified: trunk/docs/en/ogc/sos_server.txt
===================================================================
--- trunk/docs/en/ogc/sos_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ trunk/docs/en/ogc/sos_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -121,6 +121,7 @@
   - sos_title
   - sos_onlineresource
   - sos_srs
+  - sos_enable_request
   - see the `Reference Section`_ of this document for a full list of metadata and
     descriptions
 
@@ -145,7 +146,7 @@
 the GetCapabilities output. If sos_onlineresource is not provided then MapServer 
 will try to provide a default one using the script name and hostname, but you 
 shouldn't count on that too much. It is strongly recommended that you provide 
-the wfs_onlineresource metadata.
+the sos_onlineresource metadata.
 
 
 Here is a valid online resource URL:
@@ -188,14 +189,15 @@
         IMAGETYPE png
 
         WEB
-         IMAGEPATH "/ms4w/tmp/ms_tmp/"
-         IMAGEURL "/ms_tmp/"  
+          IMAGEPATH "/ms4w/tmp/ms_tmp/"
+          IMAGEURL "/ms_tmp/"  
 
-         METADATA
-           "sos_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?map=D:/ms4w/apps/sos/sos_test.map" ## REQUIRED
-           "sos_title"          "My SOS Demo Server" ## Recommended
-           "sos_srs"            "EPSG:4326" ## REQUIRED
-         END
+          METADATA
+            "sos_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?map=D:/ms4w/apps/sos/sos_test.map" ## REQUIRED
+            "sos_title"          "My SOS Demo Server" ## Recommended
+            "sos_srs"            "EPSG:4326" ## REQUIRED
+            "sos_enable_request" "*" # Necessary
+          END
         END
 
         PROJECTION
@@ -439,6 +441,29 @@
 **sos_contactfacsimiletelephone**
 - * Description: Optional contact facsimile telephone number.
 
+**sos_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetObservation` and `DescribeSensor`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetObservation`:
+
+  ::
+
+    "sos_enable_request" "GetCapabilities GetObservation"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "sos_enable_request" "* !GetCapabilities"
+
 **sos_fees**
 
 - *Description:* (Optional) Fees information. Use the reserved word "none" if there 
@@ -476,7 +501,7 @@
 
 **sos_maxfeatures**
 
-- *Description:* (Optional) The number of elements to be returned by the WFS server. If the not set all observations are returned
+- *Description:* (Optional) The number of elements to be returned by the SOS server. If the not set all observations are returned
 
 **sos_encoding_blockSeparator**
 
@@ -512,6 +537,29 @@
 
 - *Description:* (Optional) An associated unit of measure URN) for a component, that will be returned when executing a GetObservation request.  Default is \"\urn:ogc:object:uom\"\
  
+**sos_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetObservation` and `DescribeSensor`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetObservation`:
+
+  ::
+
+    "sos_enable_request" "GetCapabilities GetObservation"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "sos_enable_request" "* !GetCapabilities"
+
 **sos_observedproperty_id**
 
 - *Description:* (Required) ID of observed property, possibly in number format.

Modified: trunk/docs/en/ogc/wcs_server.txt
===================================================================
--- trunk/docs/en/ogc/wcs_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ trunk/docs/en/ogc/wcs_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -72,6 +72,7 @@
 - LAYER NAME must be set
 - LAYER TYPE is set to RASTER
 - LAYER DUMP parameter set to TRUE
+- WEB metadata "wcs_enable_request" must be set
 - WEB metadata "wcs_label" must be set
 - LAYER metadata "wcs_label" must be set
 - LAYER metadata "wcs_rangeset_name" must be set
@@ -127,6 +128,7 @@
             "wcs_contactvoicetelephone"    "613-555-1234"
             "wcs_contactfacimiletelephone" "613-555-1235"
             "wcs_service_onlineresource"   "http://127.0.0.1/cgi-bin/mapserv.exe?"            
+            "wcs_enable_request            "*"
           END
         END
 
@@ -767,6 +769,29 @@
 
 - *Description:* (Optional) A description of the server. 
 
+**wcs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetCoverage` and `DescribeCoverage`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetCoverage`:
+
+  ::
+
+    "wcs_enable_request" "GetCapabilities GetCoverage"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wcs_enable_request" "* !GetCapabilities"
+
 **wcs_fees**
 
 - *Description:* (Optional) A text string indicating any fees imposed by the service provider. 
@@ -822,6 +847,29 @@
 
 - *Description:* (Optional) A description of the layer.
 
+**wcs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetCoverage` and `DescribeCoverage`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetCoverage`:
+
+  ::
+
+    "wcs_enable_request" "GetCapabilities GetCoverage"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wcs_enable_request" "* !GetCapabilities"
+
 **wcs_extent**
 
 - *Description:* (Optional) Bounding box of layer, which must be provided for tiled data.  Comma-delimited, in the format of: minx,miny,maxx,maxy

Modified: trunk/docs/en/ogc/wfs_server.txt
===================================================================
--- trunk/docs/en/ogc/wfs_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ trunk/docs/en/ogc/wfs_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -125,6 +125,10 @@
   Resource URL" section of the :ref:`WMS Server <online_resource_wms>`
   document.
 
+- The "wfs_enable_request" metadata (see below).
+
+
+
 Example WFS Server Mapfile
 --------------------------
 
@@ -156,6 +160,7 @@
             "wfs_onlineresource" "http://demo.mapserver.org/cgi-bin/wfs?" ## Recommended
             "wfs_srs"            "EPSG:4326 EPSG:4269 EPSG:3978 EPSG:3857" ## Recommended
             "wfs_abstract"       "This text describes my WFS service." ## Recommended
+            "wfs_enable_request" "*"  # necessary
           END
         END
 
@@ -410,6 +415,29 @@
 - *Description:* (Optional) Any fees imposed by the service provider
   for usage of this service or for data retrieved from the WFS. 
 
+**wfs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetFeature` and `DescribeFeatureType`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetFeature`:
+
+  ::
+
+    "wfs_enable_request" "GetCapabilities GetFeature"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wfs_enable_request" "* !GetCapabilities"
+
 **wfs_getcapabilities_version**
 
 - *Description:* (Optional) Default version to use for GetCapabilities
@@ -623,6 +651,29 @@
   then it has priority and MapServer will NOT try to read the source
   file's extents.
 
+**wfs_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetFeature` and `DescribeFeatureType`.
+  A "!" in front of a request will disable the request.
+  "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetCapabilities` and `GetFeature`:
+
+  ::
+
+    "wfs_enable_request" "GetCapabilities GetFeature"
+
+  To enable all requests except `GetCapabilities`
+
+  ::
+
+    "wfs_enable_request" "* !GetCapabilities"
+
 **wfs_featureid**
 
 - *Description:* (Required for MapServer 4.10) Field to be used for

Modified: trunk/docs/en/ogc/wms_server.txt
===================================================================
--- trunk/docs/en/ogc/wms_server.txt	2011-08-14 04:02:22 UTC (rev 12053)
+++ trunk/docs/en/ogc/wms_server.txt	2011-08-14 11:01:25 UTC (rev 12054)
@@ -145,6 +145,7 @@
   - wms_title
   - wms_onlineresource
   - wms_srs (unless PROJECTION object is defined using "init=epsg:...") 
+  - wms_enable_request
 
 **And for each LAYER:**
 
@@ -162,7 +163,7 @@
 - Layer TEMPLATE (required for GetFeatureInfo requests)
 - Layer DUMP TRUE (only required for GetFeatureInfo GML requests)
 
-Let's go through each of these paramters in more detail:
+Let's go through each of these parameters in more detail:
 
 - **Map Name and wms_title:**
 
@@ -289,6 +290,12 @@
   This is covered in more detail in the section "More About the Online Resource 
   URL" below. 
   
+- **"wms_enable_request" metadata:**
+
+  Specify which requests to enable.  If not specified, no requests
+  will be enabled!  See the explanation below.
+
+
 - **Configuring for GetFeatureInfo Requests:**
 
   You must set the layer TEMPLATE parameter for the layer to be queryable by 
@@ -787,6 +794,29 @@
 - *Description:* Optional XML capabilities encoding type. The default is
   ISO-8859-1.
 
+**wms_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetMap`, `GetFeatureInfo` and
+  `GetLegendGraphic`.  A "!" in front of a request will disable the
+  request. "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetMap` and `GetFeatureInfo`:
+
+  ::
+
+    "wms_enable_request" "GetMap GetFeatureInfo"
+
+  To enable all requests except `GetFeatureInfo`
+
+  ::
+
+    "wms_enable_request" "* !GetFeatureInfo"
+
 **wms_feature_info_mime_type**
 
 - *WMS TAG Name:* Feature_info_mime_type
@@ -1065,6 +1095,29 @@
   wms_dataurl_format must also be specified.
 - refer to section 7.1.4.5.14 of the WMS 1.1.1 spec. 
 
+**wms_enable_request** (or **ows_enable_request**)
+
+- *Description:* Space separated list of requests to enable.
+  The default is none.
+  The following requests can be enabled:
+  `GetCapabilities`, `GetMap`, `GetFeatureInfo` and
+  `GetLegendGraphic`.  A "!" in front of a request will disable the
+  request. "*" enables all requests.
+
+- *Examples:*
+
+  To enable only `GetMap` and `GetFeatureInfo`:
+
+  ::
+
+    "wms_enable_request" "GetMap GetFeatureInfo"
+
+  To enable all requests except `GetFeatureInfo`
+
+  ::
+
+    "wms_enable_request" "* !GetFeatureInfo"
+
 **wms_extent**
 
 - *WMS TAG Name:* BoundingBox (WMS1.1.1, sect. 6.5.6)
@@ -1275,6 +1328,7 @@
           "wms_title"     "WMS Demo Server"  ##required
           "wms_onlineresource" "http://yourpath/cgi-bin/mapserv.exe?"   ##required
           "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"  ##recommended
+          "wms_enable_request" "*"   ##necessary
         END
       END
     
@@ -1377,17 +1431,18 @@
 
     .. code-block:: mapfile
  
-          NAME "DEMO" 
-          ... 
+         NAME "DEMO" 
+         ... 
 
-          WEB 
-          ... 
-          METADATA 
+         WEB 
+           ... 
+           METADATA 
              "wms_title"            "WMS Demo Server" 
              "wms_onlineresource"   "http://my.host.com/cgi-bin/mapserv?map=wms.map&" 
              "wms_srs"              "AUTO:42001 AUTO:42002" 
-          END 
-          END    
+             "wms_enable_request" "*"   ##necessary
+           END # METADATA
+         END # WEB
               
 
     The above server advertises the first two auto projections. 



More information about the mapserver-commits mailing list