Select to view content in your preferred language

Strange error in getfeature request.

2850
1
11-29-2010 05:01 PM
Labels (1)
PhilScadden
Occasional Contributor
If I post
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="Petroleum_wells" srsName="EPSG:102113"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:Intersects><ogc:PropertyName>SHAPE</ogc:PropertyName><gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:102113"><gml:exterior><gml:LinearRing><gml:posList>19410725.227223 -4739510.3156942 19411023.148185 -4739510.3156942 19411023.148185 -4739212.3947328 19410725.227223 -4739212.3947328 19410725.227223 -4739510.3156942</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Intersects></ogc:Filter></wfs:Query></wfs:GetFeature>

to ArcGIS, I get back
<ows:ExceptionReport version='1.1.0' language='en' xmlns:ows='http://www.opengis.net/ows'><ows:Exception exceptionCode='InvalidParameterValue'><ows:ExceptionText>Wrong geometry definition in GML.</ows:ExceptionText></ows:Exception></ows:ExceptionReport>

In contrast, if I post:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="Petroleum_wells" srsName="EPSG:102113"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:Intersects><ogc:PropertyName>SHAPE</ogc:PropertyName><gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:102113"><gml:exterior><gml:LinearRing><gml:posList>19383968.353752 -4722239.4608807 19430442.066941 -4744253.3250229 19391306.308466 -4751591.2797369 19383968.353752 -4722239.4608807</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Intersects></ogc:Filter></wfs:Query></wfs:GetFeature>

it works fine. I am blowed if I can see what the geometry problem is.
0 Kudos
1 Reply
BillRose
Occasional Contributor
Just happened on your post looking for other WFS problems. Is there a space in one of your tags below? See "<gml:LinearRin g>"

If I post
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="Petroleum_wells" srsName="EPSG:102113"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:Intersects><ogc:PropertyName>SHAPE</ogc:PropertyName><gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:102113"><gml:exterior><gml:LinearRing><gml:posList>19410725.227223 -4739510.3156942 19411023.148185 -4739510.3156942 19411023.148185 -4739212.3947328 19410725.227223 -4739212.3947328 19410725.227223 -4739510.3156942</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Intersects></ogc:Filter></wfs:Query></wfs:GetFeature>

to ArcGIS, I get back
<ows:ExceptionReport version='1.1.0' language='en' xmlns:ows='http://www.opengis.net/ows'><ows:Exception exceptionCode='InvalidParameterValue'><ows:ExceptionText>Wrong geometry definition in GML.</ows:ExceptionText></ows:Exception></ows:ExceptionReport>

In contrast, if I post:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query typeName="Petroleum_wells" srsName="EPSG:102113"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:Intersects><ogc:PropertyName>SHAPE</ogc:PropertyName><gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:102113"><gml:exterior><gml:LinearRing><gml:posList>19383968.353752 -4722239.4608807 19430442.066941 -4744253.3250229 19391306.308466 -4751591.2797369 19383968.353752 -4722239.4608807</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Intersects></ogc:Filter></wfs:Query></wfs:GetFeature>

it works fine. I am blowed if I can see what the geometry problem is.
0 Kudos