[mapserver-commits] r10621 - in trunk/msautotest/wxs: . expected

svn at osgeo.org svn at osgeo.org
Tue Oct 19 00:00:59 EDT 2010


Author: warmerdam
Date: 2010-10-18 21:00:59 -0700 (Mon, 18 Oct 2010)
New Revision: 10621

Added:
   trunk/msautotest/wxs/expected/wfsogr10_caps.xml
   trunk/msautotest/wxs/expected/wfsogr10_csvstream.txt
   trunk/msautotest/wxs/expected/wfsogr10_gml2.xml
   trunk/msautotest/wxs/expected/wfsogr10_midmif.txt
   trunk/msautotest/wxs/expected/wfsogr10_ogrgml.xml
   trunk/msautotest/wxs/wfs_ogr.map
Log:
preliminary testing for OGR WFS output (#3570)

Added: trunk/msautotest/wxs/expected/wfsogr10_caps.xml
===================================================================
--- trunk/msautotest/wxs/expected/wfsogr10_caps.xml	                        (rev 0)
+++ trunk/msautotest/wxs/expected/wfsogr10_caps.xml	2010-10-19 04:00:59 UTC (rev 10621)
@@ -0,0 +1,123 @@
+Content-type: text/xml
+
+<?xml version='1.0' encoding="ISO-8859-1" ?>
+<WFS_Capabilities 
+   version="1.0.0" 
+   updateSequence="123" 
+   xmlns="http://www.opengis.net/wfs" 
+   xmlns:ogc="http://www.opengis.net/ogc" 
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd">
+
+<Service>
+  <Name>MapServer WFS</Name>
+  <Title>Test simple wfs</Title>
+  <Abstract>Test WFS Abstract</Abstract>
+  <Keywords>
+    ogc
+    wfs
+    gml
+    om
+  </Keywords>
+  <OnlineResource>http://localhost</OnlineResource>
+  <Fees>none</Fees>
+  <AccessConstraints>none</AccessConstraints>
+</Service>
+
+<Capability>
+  <Request>
+    <GetCapabilities>
+      <DCPType>
+        <HTTP>
+          <Get onlineResource="http://localhost/path/to/wfs_simple?" />
+        </HTTP>
+      </DCPType>
+      <DCPType>
+        <HTTP>
+          <Post onlineResource="http://localhost/path/to/wfs_simple?" />
+        </HTTP>
+      </DCPType>
+    </GetCapabilities>
+    <DescribeFeatureType>
+      <SchemaDescriptionLanguage>
+        <XMLSCHEMA/>
+      </SchemaDescriptionLanguage>
+      <DCPType>
+        <HTTP>
+          <Get onlineResource="http://localhost/path/to/wfs_simple?" />
+        </HTTP>
+      </DCPType>
+      <DCPType>
+        <HTTP>
+          <Post onlineResource="http://localhost/path/to/wfs_simple?" />
+        </HTTP>
+      </DCPType>
+    </DescribeFeatureType>
+    <GetFeature>
+      <ResultFormat>
+        <GML2/>
+        <CSV/>
+        <CSVSTREAM/>
+        <OGRGML/>
+        <OGRGMLSTREAM/>
+        <SHAPEZIP/>
+        <MIDMIF/>
+      </ResultFormat>
+      <DCPType>
+        <HTTP>
+          <Get onlineResource="http://localhost/path/to/wfs_simple?" />
+        </HTTP>
+      </DCPType>
+      <DCPType>
+        <HTTP>
+          <Post onlineResource="http://localhost/path/to/wfs_simple?" />
+        </HTTP>
+      </DCPType>
+    </GetFeature>
+  </Request>
+</Capability>
+
+<FeatureTypeList>
+  <Operations>
+    <Query/>
+  </Operations>
+    <FeatureType>
+        <Name>road</Name>
+        <Title>road</Title>
+        <SRS>EPSG:4326</SRS>
+        <LatLongBoundingBox minx="-66.6333" miny="42.3821" maxx="-59.2921" maxy="48.2955" />
+    </FeatureType>
+    <FeatureType>
+        <Name>popplace</Name>
+        <Title>popplace</Title>
+        <SRS>EPSG:4326</SRS>
+        <LatLongBoundingBox minx="-66.3286" miny="42.5631" maxx="-59.6882" maxy="47.9413" />
+    </FeatureType>
+</FeatureTypeList>
+
+<ogc:Filter_Capabilities>
+  <ogc:Spatial_Capabilities>
+    <ogc:Spatial_Operators>
+      <ogc:Equals/>
+      <ogc:Disjoint/>
+      <ogc:Touches/>
+      <ogc:Within/>
+      <ogc:Overlaps/>
+      <ogc:Crosses/>
+      <ogc:Intersect/>
+      <ogc:Contains/>
+      <ogc:DWithin/>
+      <ogc:BBOX/>
+    </ogc:Spatial_Operators>
+  </ogc:Spatial_Capabilities>
+  <ogc:Scalar_Capabilities>
+    <ogc:Logical_Operators />
+    <ogc:Comparison_Operators>
+      <ogc:Simple_Comparisons />
+      <ogc:Like />
+      <ogc:Between />
+    </ogc:Comparison_Operators>
+  </ogc:Scalar_Capabilities>
+</ogc:Filter_Capabilities>
+
+</WFS_Capabilities>

Added: trunk/msautotest/wxs/expected/wfsogr10_csvstream.txt
===================================================================
--- trunk/msautotest/wxs/expected/wfsogr10_csvstream.txt	                        (rev 0)
+++ trunk/msautotest/wxs/expected/wfsogr10_csvstream.txt	2010-10-19 04:00:59 UTC (rev 10621)
@@ -0,0 +1,4 @@
+Content-Type: text/csv; streamed
+
+WKT,FNODE_,TNODE_,LPOLY_,RPOLY_,LENGTH,ROAD_,ROAD_ID,F_CODE,NAME_E,NAME_F
+"LINESTRING (-60.201189792961586 46.102354406835836 0,-60.22203990695251 46.101246346098861 0,-60.242066599783321 46.097807469452071 0,-60.26248817949871 46.10046243986185 0,-60.302916095741153 46.10953640399341 0,-60.317500401724708 46.115654968046151 0,-60.338340466865311 46.124390858000147 0,-60.351258604383098 46.135729469595994 0,-60.35166078709053 46.151702162290846 0)",613,1511,0,0,      14862.892,1521,1521,67,,

Added: trunk/msautotest/wxs/expected/wfsogr10_gml2.xml
===================================================================
--- trunk/msautotest/wxs/expected/wfsogr10_gml2.xml	                        (rev 0)
+++ trunk/msautotest/wxs/expected/wfsogr10_gml2.xml	2010-10-19 04:00:59 UTC (rev 10621)
@@ -0,0 +1,42 @@
+Content-type: text/xml
+
+<?xml version='1.0' encoding="ISO-8859-1" ?>
+<wfs:FeatureCollection
+   xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
+   xmlns:wfs="http://www.opengis.net/wfs"
+   xmlns:gml="http://www.opengis.net/gml"
+   xmlns:ogc="http://www.opengis.net/ogc"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
+                       http://mapserver.gis.umn.edu/mapserver http://localhost/path/to/wfs_simple?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=road&amp;OUTPUTFORMAT=XMLSCHEMA">
+      <gml:boundedBy>
+      	<gml:Box srsName="EPSG:4326">
+      		<gml:coordinates>-60.351661,46.097807 -60.201190,46.151702</gml:coordinates>
+      	</gml:Box>
+      </gml:boundedBy>
+    <gml:featureMember>
+      <ms:road fid="road.1521">
+        <gml:boundedBy>
+        	<gml:Box srsName="EPSG:4326">
+        		<gml:coordinates>-60.351661,46.097807 -60.201190,46.151702</gml:coordinates>
+        	</gml:Box>
+        </gml:boundedBy>
+        <ms:msGeometry>
+        <gml:LineString srsName="EPSG:4326">
+          <gml:coordinates>-60.201190,46.102354 -60.222040,46.101246 -60.242067,46.097807 -60.262488,46.100462 -60.302916,46.109536 -60.317500,46.115655 -60.338340,46.124391 -60.351259,46.135729 -60.351661,46.151702 </gml:coordinates>
+        </gml:LineString>
+        </ms:msGeometry>
+        <ms:FNODE_>613</ms:FNODE_>
+        <ms:TNODE_>1511</ms:TNODE_>
+        <ms:LPOLY_>0</ms:LPOLY_>
+        <ms:RPOLY_>0</ms:RPOLY_>
+        <ms:LENGTH>14862.892</ms:LENGTH>
+        <ms:ROAD_>1521</ms:ROAD_>
+        <ms:ROAD_ID>1521</ms:ROAD_ID>
+        <ms:F_CODE>67</ms:F_CODE>
+        <ms:NAME_E></ms:NAME_E>
+        <ms:NAME_F></ms:NAME_F>
+      </ms:road>
+    </gml:featureMember>
+</wfs:FeatureCollection>
+

Added: trunk/msautotest/wxs/expected/wfsogr10_midmif.txt
===================================================================
--- trunk/msautotest/wxs/expected/wfsogr10_midmif.txt	                        (rev 0)
+++ trunk/msautotest/wxs/expected/wfsogr10_midmif.txt	2010-10-19 04:00:59 UTC (rev 10621)
@@ -0,0 +1,44 @@
+Content-Type: multipart/mixed; boundary=xxOGRBoundaryxx
+
+--xxOGRBoundaryxx
+Content-Disposition: attachment; filename=result.mid
+Content-Type: application/binary
+Content-Transfer-Encoding: binary
+
+613,1511,0,0,14862.892,1521,1521,67,"",""
+
+--xxOGRBoundaryxx
+Content-Disposition: attachment; filename=result.mif
+Content-Type: application/binary
+Content-Transfer-Encoding: binary
+
+Version 300
+Charset "Neutral"
+Delimiter ","
+CoordSys Earth Projection 1, 104
+Columns 10
+  FNODE_ Integer
+  TNODE_ Integer
+  LPOLY_ Integer
+  RPOLY_ Integer
+  LENGTH Float
+  ROAD_ Integer
+  ROAD_ID Integer
+  F_CODE Integer
+  NAME_E Char(26)
+  NAME_F Char(26)
+Data
+
+Pline 9
+-60.2011897929616 46.1023544068358
+-60.2220399069525 46.1012463460989
+-60.2420665997833 46.0978074694521
+-60.2624881794987 46.1004624398619
+-60.3029160957412 46.1095364039934
+-60.3175004017247 46.1156549680462
+-60.3383404668653 46.1243908580001
+-60.3512586043831 46.135729469596
+-60.3516607870905 46.1517021622908
+    Pen (1,2,0)
+
+--xxOGRBoundaryxx--

Added: trunk/msautotest/wxs/expected/wfsogr10_ogrgml.xml
===================================================================
--- trunk/msautotest/wxs/expected/wfsogr10_ogrgml.xml	                        (rev 0)
+++ trunk/msautotest/wxs/expected/wfsogr10_ogrgml.xml	2010-10-19 04:00:59 UTC (rev 10621)
@@ -0,0 +1,138 @@
+Content-Type: multipart/mixed; boundary=xxOGRBoundaryxx
+
+--xxOGRBoundaryxx
+Content-Disposition: attachment; filename=result.gml
+Content-Type: application/binary
+Content-Transfer-Encoding: binary
+
+<?xml version="1.0" encoding="utf-8" ?>
+<ogr:FeatureCollection
+     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+     xsi:schemaLocation="http://ogr.maptools.org/ result.xsd"
+     xmlns:ogr="http://ogr.maptools.org/"
+     xmlns:gml="http://www.opengis.net/gml">
+  <gml:boundedBy>
+    <gml:Box>
+      <gml:coord><gml:X>-60.35166078709053</gml:X><gml:Y>46.09780746945207</gml:Y></gml:coord>
+      <gml:coord><gml:X>-60.20118979296159</gml:X><gml:Y>46.15170216229085</gml:Y></gml:coord>
+    </gml:Box>
+  </gml:boundedBy>
+                        
+  <gml:featureMember>
+    <ogr:road fid="F0">
+      <ogr:geometryProperty><gml:LineString><gml:coordinates>-60.201189792961586,46.102354406835836,0 -60.22203990695251,46.101246346098861,0 -60.242066599783321,46.097807469452071,0 -60.26248817949871,46.10046243986185,0 -60.302916095741153,46.10953640399341,0 -60.317500401724708,46.115654968046151,0 -60.338340466865311,46.124390858000147,0 -60.351258604383098,46.135729469595994,0 -60.35166078709053,46.151702162290846,0</gml:coordinates></gml:LineString></ogr:geometryProperty>
+      <ogr:FNODE_>613</ogr:FNODE_>
+      <ogr:TNODE_>1511</ogr:TNODE_>
+      <ogr:LPOLY_>0</ogr:LPOLY_>
+      <ogr:RPOLY_>0</ogr:RPOLY_>
+      <ogr:LENGTH>14862.892</ogr:LENGTH>
+      <ogr:ROAD_>1521</ogr:ROAD_>
+      <ogr:ROAD_ID>1521</ogr:ROAD_ID>
+      <ogr:F_CODE>67</ogr:F_CODE>
+      <ogr:NAME_E></ogr:NAME_E>
+      <ogr:NAME_F></ogr:NAME_F>
+    </ogr:road>
+  </gml:featureMember>
+</ogr:FeatureCollection>
+
+--xxOGRBoundaryxx
+Content-Disposition: attachment; filename=result.xsd
+Content-Type: application/binary
+Content-Transfer-Encoding: binary
+
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
+<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
+<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
+<xs:complexType name="FeatureCollectionType">
+  <xs:complexContent>
+    <xs:extension base="gml:AbstractFeatureCollectionType">
+      <xs:attribute name="lockId" type="xs:string" use="optional"/>
+      <xs:attribute name="scope" type="xs:string" use="optional"/>
+    </xs:extension>
+  </xs:complexContent>
+</xs:complexType>
+<xs:element name="road" type="ogr:road_Type" substitutionGroup="gml:_Feature"/>
+<xs:complexType name="road_Type">
+  <xs:complexContent>
+    <xs:extension base="gml:AbstractFeatureType">
+      <xs:sequence>
+        <xs:element name="geometryProperty" type="gml:LineStringPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
+        <xs:element name="FNODE_" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:integer">
+              <xs:totalDigits value="11"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="TNODE_" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:integer">
+              <xs:totalDigits value="11"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="LPOLY_" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:integer">
+              <xs:totalDigits value="11"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="RPOLY_" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:integer">
+              <xs:totalDigits value="11"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="LENGTH" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:decimal">
+              <xs:totalDigits value="15"/>
+              <xs:fractionDigits value="3"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="ROAD_" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:integer">
+              <xs:totalDigits value="11"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="ROAD_ID" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:integer">
+              <xs:totalDigits value="11"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="F_CODE" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:integer">
+              <xs:totalDigits value="5"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="NAME_E" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:string">
+              <xs:maxLength value="26"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+        <xs:element name="NAME_F" nillable="true" minOccurs="0" maxOccurs="1">
+          <xs:simpleType>
+            <xs:restriction base="xs:string">
+              <xs:maxLength value="26"/>
+            </xs:restriction>
+          </xs:simpleType>
+        </xs:element>
+      </xs:sequence>
+    </xs:extension>
+  </xs:complexContent>
+</xs:complexType>
+</xs:schema>
+
+--xxOGRBoundaryxx--

Added: trunk/msautotest/wxs/wfs_ogr.map
===================================================================
--- trunk/msautotest/wxs/wfs_ogr.map	                        (rev 0)
+++ trunk/msautotest/wxs/wfs_ogr.map	2010-10-19 04:00:59 UTC (rev 10621)
@@ -0,0 +1,182 @@
+#
+# Test WFS
+#
+# REQUIRES: SUPPORTS=WFS INPUT=OGR
+#
+# Do formats show up in the Capabilities
+# RUN_PARMS: wfsogr10_caps.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities" > [RESULT_DEVERSION]
+#
+# Generate dump to gml2
+# RUN_PARMS: wfsogr10_gml2.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=GML2" > [RESULT]
+#
+# Generate dump to multi-part mime (MIDMIF)
+# RUN_PARMS: wfsogr10_midmif.txt [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=MIDMIF" > [RESULT]
+#
+# Generate dump streamed directly to CSV
+# RUN_PARMS: wfsogr10_csvstream.txt [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=CSVSTREAM" > [RESULT]
+#
+# Generate dump streamed directly to OGR GML
+# RUN_PARMS: wfsogr10_ogrgml.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=road&featureid=road.1521&OUTPUTFORMAT=OGRGML" > [RESULT]
+#
+#
+
+MAP
+
+NAME WFS_OGROUT_TEST
+STATUS ON
+SIZE 400 300
+EXTENT -67.5725 42 -58.9275 48.5
+UNITS METERS
+IMAGECOLOR 255 255 255
+SHAPEPATH ./data
+
+OUTPUTFORMAT
+  NAME "geojson"
+  DRIVER "TEMPLATE"
+  MIMETYPE "application/json; subtype=geojson"
+  FORMATOPTION "FILE=geojson.tmpl"
+END
+
+OUTPUTFORMAT
+  NAME "CSV"
+  DRIVER "OGR/CSV"
+  MIMETYPE "text/csv"
+  FORMATOPTION "LCO:GEOMETRY=AS_WKT"
+  FORMATOPTION "STORAGE=filesystem"
+  FORMATOPTION "FORM=simple"
+  FORMATOPTION "FILENAME=result.csv"
+END
+
+OUTPUTFORMAT
+  NAME "CSVSTREAM"
+  DRIVER "OGR/CSV"
+  MIMETYPE "text/csv; streamed"
+  FORMATOPTION "LCO:GEOMETRY=AS_WKT"
+  FORMATOPTION "STORAGE=stream"
+  FORMATOPTION "FORM=simple"
+  FORMATOPTION "FILENAME=result.csv"
+END
+
+OUTPUTFORMAT
+  NAME "OGRGML"
+  DRIVER "OGR/GML"
+  FORMATOPTION "STORAGE=memory"
+  FORMATOPTION "FORM=multipart"
+  FORMATOPTION "FILENAME=result.gml"
+END
+
+OUTPUTFORMAT
+  NAME "OGRGMLSTREAM"
+  DRIVER "OGR/GML"
+  MIMETYPE "text/xml; subtype=gml/2.1.2"
+  FORMATOPTION "STORAGE=stream"
+  FORMATOPTION "FILENAME=result.gml"
+END
+
+OUTPUTFORMAT
+  NAME "SHAPEZIP"
+  DRIVER "OGR/ESRI Shapefile"
+  MIMETYPE "application/zip"
+  FORMATOPTION "STORAGE=filesystem"
+  FORMATOPTION "FORM=zip"
+  FORMATOPTION "FILENAME=result.zip"
+END
+
+OUTPUTFORMAT
+  NAME "MIDMIF"
+  DRIVER "OGR/MapInfo File"
+  FORMATOPTION "STORAGE=filesystem"
+  FORMATOPTION "FORM=multipart"
+  FORMATOPTION "DSCO:FORMAT=MIF"
+  FORMATOPTION "FILENAME=result.mif"
+END
+
+#
+# Start of web interface definition
+#
+WEB
+
+ IMAGEPATH "/tmp/ms_tmp/"
+ IMAGEURL "/ms_tmp/"
+
+  METADATA
+    "ows_updatesequence"   "123"
+    "wfs_title"		   "Test simple wfs"
+    "wfs_onlineresource"   "http://localhost/path/to/wfs_simple?"
+    "wfs_srs"		   "EPSG:4326 EPSG:4269 EPSG:3978"
+    "ows_abstract"    "Test WFS Abstract"
+    "ows_keywordlist" "ogc,wfs,gml,om"
+    "ows_service_onlineresource" "http://localhost"
+    "ows_fees" "none"
+    "ows_accessconstraints" "none"
+    "ows_addresstype" "postal"
+    "ows_address"     "123 SomeRoad Road"
+    "ows_city" "Toronto"
+    "ows_stateorprovince" "Ontario"
+    "ows_postcode" "xxx-xxx"
+    "ows_country" "Canada"
+    "ows_contactelectronicmailaddress" "tomkralidis at xxxxxxx.xxx"
+    "ows_contactvoicetelephone" "+xx-xxx-xxx-xxxx"
+    "ows_contactfacsimiletelephone" "+xx-xxx-xxx-xxxx"
+    "ows_contactperson" "Tom Kralidis"
+    "ows_contactorganization" "MapServer"
+    "ows_contactposition" "self"
+    "ows_hoursofservice" "0800h - 1600h EST"
+    "ows_contactinstructions" "during hours of service"
+    "ows_role" "staff"
+  END
+END
+
+PROJECTION
+  "init=epsg:4326"
+END
+
+
+#
+# Start of layer definitions
+#
+
+LAYER
+  NAME road
+  DATA road
+  METADATA
+    "wfs_title"         "road"
+    "wfs_description"   "road"
+    "wfs_featureid"     "ROAD_ID" 
+    "wfs_getfeature_formatlist" "csv,csvstream,ogrgml,ogrgmlstream,shapezip,midmif"
+    "gml_include_items" "all"
+    "gml_types"         "auto"
+ END
+  TYPE LINE
+  STATUS ON
+  PROJECTION
+    "init=epsg:3978"
+  END
+
+  DUMP TRUE
+END # Layer
+
+LAYER
+  NAME popplace
+  CONNECTIONTYPE OGR
+  CONNECTION "data/popplace.shp"
+  DATA "popplace"
+
+  METADATA
+    "wfs_title"         "popplace"
+    "wfs_description"   "populated places"
+    "wfs_featureid"     "UNIQUE_KEY"
+    "wfs_getfeature_formatlist" "csv,ogrgml,shapezip"
+    "gml_include_items" "all"
+  END
+  TYPE POINT
+  STATUS ON
+  PROJECTION
+    "init=epsg:3978"
+  END
+
+  DUMP TRUE
+END # Layer
+
+
+END # Map File



More information about the mapserver-commits mailing list