Ian Thanks for your response. I have amended the request to use <gml:outerBoundaryIs> rather than <gml:exterior>, and now the response from GeoServer is:
<?xml version="1.0" encoding="UTF-8"?> <wfs:FeatureCollection numberOfFeatures="0" timeStamp="2012-05-15T16:03:52.352Z" xsi:schemaLocation="http://www.ros.gov.uk http://31.222.143.15:80/geoserver/wfs?service=WFS&version=1.1.0& request=DescribeFeatureType&typeName=ROS%3AtitleExtents http://www.opengis.net/wfs http://31.222.143.15:80/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:tiger="http://www.census.gov" xmlns:OS="http://www.ordnancesurvey.co.uk/" xmlns:cite="http://www.opengeospatial.net/cite" xmlns:nurc="http://www.nurc.nato.int" xmlns:sde="http://geoserver.sf.net" xmlns:wfs="http://www.opengis.net/wfs" xmlns:topp="http://www.openplans.org/topp" xmlns:it.geosolutions="http://www.geo-solutions.it" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ROS="http://www.ros.gov.uk" xmlns:sf="http://www.openplans.org/spearfish" xmlns:ows="http://www.opengis.net/ows" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"><gml:featureMembers/></wfs:Fe atureCollection> i.e. it's not returning any features. I'm not sure why this should be? I've tried reversing the axis order in the vertices (x/y becomes y/x) but as expected this didn't work either (from what I've read this shouldn't be necessary for projected crs like EPSG:27700). I'm at a bit of a loss here. Incidentally, the comma between the last pair of vertices in the posList is just a typo - I'm not passing them in with commas. Thanks Chris -----Original Message----- From: Ian Turton [mailto:[email protected]] Sent: 15 May 2012 16:58 To: Muir, Christopher Cc: [email protected] Subject: Re: [Geoserver-users] WFS 1.1.0 getFeature request not working On 15 May 2012 15:24, Muir, Christopher <[email protected]> wrote: > Hi > > > > I'm attempting to submit a GetFeature request to GeoServer (2.1.3) using the > POST method. I want to use WFS 1.1.0/gml3 so that I get a "number of > features= x" response (WFS 1.0.0 doesn't return this). I'm using an > 'Intersects' filter and I'm supplying the vertices of a polygon for the > intersect. The POST data is as follows: > I think that GeoServer is expecting a GML 3 polygon in the input so something like: <gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:posList>325114.43 014706 673592.1753978 325112.1897978 673577.23973604 325124.8851103 673584.70756692 325114.43014706,673592.1753978</gml:posList></gml:LinearRing></gml:outer BoundaryIs></gml:Polygon> Ian P Please consider the environment - do you really need to print this email? ********************************************************************** This e-mail (and any files or other attachments transmitted with it) is intended solely for the attention of the addressee(s). Unauthorised use, disclosure, storage, copying or distribution of any part of this e-mail is not permitted. If you are not the intended recipient please destroy the email, remove any copies from your system and inform the sender immediately by return. Registers of Scotland does not accept any liability or responsibility for any damage caused by any virus transmitted by this email or for changes made to this e-mail after it was sent. All communications to or from Registers of Scotland may be automatically logged, monitored and/or recorded in order to secure the effective operation of the system and for other lawful purposes. The views or opinions contained within this e-mail may not necessarily reflect those of the Keeper of the Registers of Scotland. ********************************************************************** ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
