[CITE-Forum] WFS 1.1.0 CITE tests: multiple geometry types on a single layer
Normand Savard
nsavard at mapgears.com
Mon Apr 14 12:40:53 EDT 2008
All,
The WFS 1.1.0 CITE tests request that a WFS server supports multiple
geometry types on a single layer. MapServer only supports one geometry
type by layer. Actually a GetFeature request is sent to our WFS 1.1.0
server with sf:PrimitiveGeoFeature as typename which contains a point, a
linestring and a polygon geometry types.
This situation prevents MapServer to go through the OGC compliance
testing process. How should we handle this?
I included in this email the request sent to our WFS 1.1.0 server, the
response from the parser and the XML describing the related data.
Norm
--------------------------
Request sent:
URL: http://sb6.dmsolutions.ca:8080/cgi-bin/mapserv?map=/opt/sb6/fgs-1/apps/wfs11/test.map&
Body:
<wfs:GetFeature xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sf="http://cite.opengeospatial.org/gmlsf"
xmlns:saxon="http://saxon.sf.net/"
xmlns:p="http://teamengine.sourceforge.net/parsers"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ows="http://www.opengis.net/ows"
xmlns:ctl="http://www.occamlab.com/ctl"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:te="java:com.occamlab.te.TECore"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:myparsers="http://teamengine.sourceforge.net/parsers"
xmlns:wfs="http://www.opengis.net/wfs"
service="WFS"
version="1.1.0">
<wfs:Query typeName="sf:PrimitiveGeoFeature"/>
</wfs:GetFeature>
--------------------------
Response from the parser:
FAILURE: The resulting wfs:FeatureCollection must include at least 4
sf:PrimitiveGeoFeature instances from the test data set.
--------------------------
Layer data related to the test:
<sf:featureMember>
<sf:PrimitiveGeoFeature gml:id="f001">
<gml:description>description-f001</gml:description>
<gml:name
codeSpace="http://cite.opengeospatial.org/gmlsf">name-f001</gml:name>
<sf:pointProperty>
<gml:Point gml:id="g003"
srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:description>description-g003</gml:description>
<gml:pos>39.73245 2.00342</gml:pos>
</gml:Point>
</sf:pointProperty>
<sf:intProperty>155</sf:intProperty>
<sf:uriProperty>http://www.opengeospatial.org/</sf:uriProperty>
<sf:measurand>1.2765E4</sf:measurand>
<sf:dateProperty>2006-10-25Z</sf:dateProperty>
<sf:decimalProperty>5.03</sf:decimalProperty>
</sf:PrimitiveGeoFeature>
</sf:featureMember>
<sf:featureMember>
<sf:PrimitiveGeoFeature gml:id="f002">
<gml:description>description-f002</gml:description>
<gml:name
codeSpace="http://cite.opengeospatial.org/gmlsf">name-f002</gml:name>
<sf:pointProperty>
<gml:Point gml:id="g001"
srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:description>description-g001</gml:description>
<gml:pos>59.41276 0.22601</gml:pos>
</gml:Point>
</sf:pointProperty>
<sf:intProperty>154</sf:intProperty>
<sf:uriProperty>http://www.opengeospatial.org/</sf:uriProperty>
<sf:measurand>1.2769E4</sf:measurand>
<sf:dateProperty>2006-10-23Z</sf:dateProperty>
<sf:decimalProperty>4.02</sf:decimalProperty>
</sf:PrimitiveGeoFeature>
</sf:featureMember>
<sf:featureMember>
<sf:PrimitiveGeoFeature gml:id="f003">
<gml:description>description-f003</gml:description>
<gml:name
codeSpace="http://cite.opengeospatial.org/gmlsf">name-f003</gml:name>
<sf:curveProperty>
<gml:LineString srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:posList>46.074 9.799 46.652 10.466 47.114
11.021</gml:posList>
</gml:LineString>
</sf:curveProperty>
<sf:intProperty>180</sf:intProperty>
<sf:measurand>672.1</sf:measurand>
<sf:dateTimeProperty>2006-06-28T07:08:00+02:00</sf:dateTimeProperty>
<sf:dateProperty>2006-09-01Z</sf:dateProperty>
<sf:decimalProperty>12.92</sf:decimalProperty>
</sf:PrimitiveGeoFeature>
</sf:featureMember>
<sf:featureMember>
<sf:PrimitiveGeoFeature gml:id="f008">
<gml:description>description-f008</gml:description>
<gml:name
codeSpace="http://cite.opengeospatial.org/gmlsf">name-f008</gml:name>
<sf:surfaceProperty>
<gml:Polygon gml:id="g005"
srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:name>MU3</gml:name>
<gml:exterior>
<gml:LinearRing>
<gml:posList>45.174 30.899 45.652 30.466 45.891 30.466
45.174 30.899</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</sf:surfaceProperty>
<sf:intProperty>300</sf:intProperty>
<sf:measurand>7.835E2</sf:measurand>
<sf:dateTimeProperty>2006-06-28T07:08:00+02:00</sf:dateTimeProperty>
<sf:dateProperty>2006-12-12Z</sf:dateProperty>
<sf:decimalProperty>18.92</sf:decimalProperty>
</sf:PrimitiveGeoFeature>
</sf:featureMember>
More information about the CITE-Forum
mailing list