[mapserver-commits] r10576 - trunk/docs/en/ogc

svn at osgeo.org svn at osgeo.org
Thu Oct 7 11:54:52 EDT 2010


Author: jmckenna
Date: 2010-10-07 15:54:52 +0000 (Thu, 07 Oct 2010)
New Revision: 10576

Modified:
   trunk/docs/en/ogc/wfs_client.txt
   trunk/docs/en/ogc/wfs_server.txt
   trunk/docs/en/ogc/wms_client.txt
   trunk/docs/en/ogc/wms_server.txt
Log:
update WFS examples to use demo.mapserver.org services

Modified: trunk/docs/en/ogc/wfs_client.txt
===================================================================
--- trunk/docs/en/ogc/wfs_client.txt	2010-10-07 15:42:59 UTC (rev 10575)
+++ trunk/docs/en/ogc/wfs_client.txt	2010-10-07 15:54:52 UTC (rev 10576)
@@ -8,9 +8,7 @@
 :Contact: jdoyon at nrcan.gc.ca
 :Author: Jeff McKenna
 :Contact: jmckenna at gatewaygeomatics.com
-:Revision: $Revision$
-:Date: $Date$
-:Last Updated: 2006/05/02
+:Last Updated: 2010-10-07
 
 .. contents::
     :depth: 2
@@ -66,7 +64,8 @@
 -----------------------
 
 You must set the :ref:`IMAGEPATH <web>` parameter in your mapfile since MapServer uses this 
-directory to store temporary files downloaded from the remote WFS server.
+directory to store temporary files downloaded from the remote WFS server.  **Windows** users must specify 
+a full path for IMAGEPATH, such as: *IMAGEPATH "C:/tmp/ms_tmp/"*
 
 .. code-block:: mapfile
 
@@ -90,7 +89,7 @@
 are defined below:
 
 - *CONNECTIONTYPE*: must be "wfs"
-- *CONNECTION*: The URL to the WFS Server. e.g. http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap? 
+- *CONNECTION*: The URL to the WFS Server. e.g. http://demo.mapserver.org/cgi-bin/wfs? 
   The path to the mapfile on the WFS server is required if it was required in the 
   GetCapabilities request e.g. you would have to specify the MAP parameter in the 
   CONNECTION for the following server:
@@ -140,9 +139,9 @@
 
   - *wfs_typename* (required): the <Name> of the layer found in the GetCapabilities. 
     An example GetCapabilities request is:
-    `http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities`__
+    `http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities`__
     
-    __ http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities
+    __ http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities
   
   - *wfs_version* (required): WFS version, currently "1.0.0"
   
@@ -159,26 +158,25 @@
 .. code-block:: mapfile
 
     LAYER
-      NAME "park"
+      NAME "continents"
       TYPE POLYGON
       STATUS ON
+      CONNECTION "http://demo.mapserver.org/cgi-bin/wfs?"
       CONNECTIONTYPE WFS
-      CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?"
       METADATA
-        "wfs_typename"          "park"
+        "wfs_typename"          "continents"
         "wfs_version"           "1.0.0"
-        "wfs_request_method"    "GET"
         "wfs_connectiontimeout" "60"
-        "wfs_maxfeatures"       "1"
+        "wfs_maxfeatures"       "10"
       END
       PROJECTION
-        "init=epsg:42304"
+        "init=epsg:4326"
       END
       CLASS
-        NAME "Parks"
+        NAME "Continents"
         STYLE
-          COLOR 200 255 0
-          OUTLINECOLOR 120 120 120
+	  COLOR 255 128 128
+	  OUTLINECOLOR 96 96 96 
         END
       END
     END # Layer
@@ -193,7 +191,7 @@
 
 .. code-block:: mapfile
 
-    CONNECTION    "http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&TYPENAME=park"
+    CONNECTION    "http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&TYPENAME=continents"
     
 TODO / Known Limitations
 ========================

Modified: trunk/docs/en/ogc/wfs_server.txt
===================================================================
--- trunk/docs/en/ogc/wfs_server.txt	2010-10-07 15:42:59 UTC (rev 10575)
+++ trunk/docs/en/ogc/wfs_server.txt	2010-10-07 15:54:52 UTC (rev 10576)
@@ -8,9 +8,7 @@
 :Contact: jdoyon at nrcan.gc.ca
 :Author: Jeff McKenna
 :Contact: jmckenna at gatewaygeomatics.com
-:Revision: $Revision$
-:Date: $Date$
-:Last Updated: 2006/10/13
+:Last Updated: 2010-10-07
 
 .. contents::
     :depth: 2
@@ -125,57 +123,70 @@
 
 .. code-block:: mapfile
 
-        NAME "WFS_server"
-        STATUS ON
-        SIZE 400 300
-        SYMBOLSET ../etc/symbols.sym
-        EXTENT -2200000 -712631 3072800 3840000
-        UNITS METERS
-        SHAPEPATH "../data"
-        IMAGECOLOR 255 255 255
-        FONTSET ../etc/fonts.txt
+	MAP
 
-        WEB
-          IMAGEPATH "/ms4w/tmp/ms_tmp/" 
-          IMAGEURL "/ms_tmp/"
-          METADATA
-            "wfs_title"            "GMap WFS Demo Server"  ## REQUIRED
-            "wfs_onlineresource"   "http://127.0.0.1/cgi-bin/mapserv.exe?"  ## Recommended
-            "wfs_srs"               "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"  ## Recommended
-            "ows_schemas_location" "http://ogc.dmsolutions.ca"  ## Optional
-          END
-        END
+	NAME "WFS_server"
+	STATUS ON
+	SIZE 400 300
+	SYMBOLSET "../etc/symbols.txt"
+	EXTENT -180 -90 180 90
+	UNITS DD
+	SHAPEPATH "../data"
+	IMAGECOLOR 255 255 255
+	FONTSET "../etc/fonts.txt"
 
-        PROJECTION
-          "init=epsg:42304"
-        END
 
-        LAYER
-          NAME "province"
-          METADATA
-            "wfs_title"    "Provinces" ## REQUIRED
-            "gml_featureid" "ID" ## REQUIRED
-            "gml_include_items" "all"  ## Optional (serves all attributes for layer)
-          END
-          TYPE POLYGON
-          STATUS ON
-          DATA province
-          PROJECTION
-            "init=epsg:42304"
-          END
-          DUMP TRUE           ## REQUIRED
-          CLASS
-            NAME "Canada"
-            STYLE
-              COLOR 200 255 0
-              OUTLINECOLOR 120 120 120
-            END
-            TEMPLATE "ttt_query.html"
-          END
-        END # Layer
+	#
+	# Start of web interface definition
+	#
+	WEB
+	  IMAGEPATH "/ms4w/tmp/ms_tmp/" 
+	  IMAGEURL "/ms_tmp/"
+	  METADATA
+	    "wfs_title"                  "WFS Demo Server for MapServer" ## REQUIRED
+	    "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
+	  END
+	END
 
-        END # Map File
+	PROJECTION
+	  "init=epsg:4326"
+	END
 
+	#
+	# Start of layer definitions
+	#
+
+	##################
+	# World Continents
+	##################
+	LAYER 
+	  NAME "continents"
+	  METADATA
+	    "wfs_title"             "World continents" ##REQUIRED
+	    "wfs_srs"               "EPSG:4326" ## REQUIRED
+	    "gml_include_items"     "all" ## Optional (serves all attributes for layer)
+	    "gml_featureid"         "ID" ## REQUIRED
+	  END  
+	  TYPE POLYGON
+	  STATUS ON
+	  DATA 'shapefile/countries_area'
+	  PROJECTION
+	    "init=epsg:4326"
+	  END
+	  DUMP TRUE             ## REQUIRED
+	  CLASS
+	    NAME 'World Continents'
+	    STYLE
+	      COLOR 255 128 128
+	      OUTLINECOLOR 96 96 96      
+	    END
+	  END
+	END #layer
+	
+	END #mapfile
+
 Rules for Handling SRS in MapServer WFS
 ---------------------------------------
 
@@ -227,7 +238,7 @@
 Using a web browser, access your server's online resource URL to which you add 
 the parameter "REQUEST=GetCapabilities" to the end, e.g.
 
-http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities
+http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities
 
 If everything went well, you should have a complete XML capabilities document. 
 Search it for the word "WARNING"... MapServer inserts XML comments starting 
@@ -246,7 +257,7 @@
 "SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=yourlayername1,yourlayername2" 
 to your server's URL should return the GML associated with those layers.
 
-http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=park
+http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=continents&MAXFEATURES=100
 
 Test with a Real Client
 ***********************
@@ -546,11 +557,11 @@
 .. _`OGC Web Services Workshop package`: http://ms-ogc-workshop.maptools.org/
 .. _`MS4W`: http://www.maptools.org/ms4w/
 .. _`WFS 1.0.0 specification`: https://portal.opengeospatial.org/files/?artifact_id=7176
-.. _`Deegree`: http://deegree.sourceforge.net/
+.. _`Deegree`: http://www.deegree.org/
 .. _`owsview`: http://devgeo.cciw.ca/owsview
-.. _`uDig`: http://udig.refractions.net/confluence/display/UDIG/Home
+.. _`uDig`: http://udig.refractions.net/
 .. _`WFS 1.0.0 spec`: https://portal.opengeospatial.org/files/?artifact_id=7176
-.. _`GeoServer`: http://docs.codehaus.org/display/GEOS/Home
-.. _`GML2 request output`: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=park&maxfeatures=1&OUTPUTFORMAT=gml2
-.. _`GML3 request output`: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=park&maxfeatures=1&OUTPUTFORMAT=gml3
+.. _`GeoServer`: http://geoserver.org
+.. _`GML2 request output`: http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml2
+.. _`GML3 request output`: http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml3
 .. _`bug#884`: http://trac.osgeo.org/mapserver/ticket/884

Modified: trunk/docs/en/ogc/wms_client.txt
===================================================================
--- trunk/docs/en/ogc/wms_client.txt	2010-10-07 15:42:59 UTC (rev 10575)
+++ trunk/docs/en/ogc/wms_client.txt	2010-10-07 15:54:52 UTC (rev 10576)
@@ -6,9 +6,7 @@
 
 :Author: Jeff McKenna
 :Contact: jmckenna at gatewaygeomatics.com
-:Revision: $Revision$
-:Date: $Date$
-:Last Updated: 2008/07/15
+:Last Updated: 2010-10-01
 
 .. contents:: Table of Contents
     :depth: 2

Modified: trunk/docs/en/ogc/wms_server.txt
===================================================================
--- trunk/docs/en/ogc/wms_server.txt	2010-10-07 15:42:59 UTC (rev 10575)
+++ trunk/docs/en/ogc/wms_server.txt	2010-10-07 15:54:52 UTC (rev 10576)
@@ -6,8 +6,7 @@
 
 :Author: Jeff McKenna
 :Contact: jmckenna at gatewaygeomatics.com
-:Revision: $Revision$
-:Date: $Date$
+:Last Updated: 2010-10-01
 
 .. contents:: Table of Contents
     :depth: 2



More information about the mapserver-commits mailing list