|
From: Keane, T. <tk...@do...> - 2010-02-26 19:18:02
|
Thanks to everyone for the assistance. The following request xml with GML3 polygon works: <wfs:GetFeature service="WFS" version="1.1.0" xmlns:doitt="http://gis.nyc.gov" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName="doitt:BOROUGH"> <wfs:PropertyName>SHAPE</wfs:PropertyName> <ogc:Filter> <ogc:Intersects> <ogc:PropertyName>SHAPE</ogc:PropertyName> <gml:Polygon> <gml:exterior> <gml:LinearRing> <gml:posList>981897.6 197524.5 981950.0 197484.0 981948.3 197481.8 981938.7 197469.3 982035.8 197394.3 982059.6 197425.0 982081.2 197453.0 982138.6 197408.7 982151.4 197425.3 982151.7 197425.7 982155.1 197423.1 982159.5 197419.7 982159.7 197419.9 982186.1 197454.2 982200.5 197472.8 982178.5 197493.6 982129.9 197539.4 982046.4 197618.3 982041.3 197612.0 982040.2 197610.6 982039.8 197610.9 982015.8 197581.7 981990.6 197551.0 981979.4 197537.4 981965.2 197548.4 981949.8 197560.3 981954.6 197566.5 981939.2 197578.3 981913.5 197545.1 981897.6 197524.5 </gml:posList> </gml:LinearRing> </gml:exterior> </gml:Polygon> </ogc:Intersects> </ogc:Filter> </wfs:Query> </wfs:GetFeature> -----Original Message----- From: Andrea Aime [mailto:aa...@op...] Sent: Friday, February 26, 2010 11:16 AM To: Keane, Tim Cc: Ben Caradoc-Davies; Haskins, Sarah; Geo...@li... Subject: Re: [Geoserver-users] GetFeature request with polygon intersection throws exception Keane, Tim wrote: > i did try swapping x and y coords - no help > > before i left work i downloaded geoserver and geotools src and > debugged. it looked to me like the geotools parser in the xsd > extension (i don't remember the exact class or package now as i don't > have the src at home) was creating an empty polygon from the request > xml. then the null pointer was thrown at > org.geotools.data.oracle.sdo.SDO.D(SDO.java:145) because it trys to > determine the dimension by accessing the z value of one of the > polygon coords, but the empty polygon has no coords. Ah, this is useful. It usually happens when your request is invalid GML. To double check add &strict=true to your request url to force schema validation, that might give you a hint. A common problem is to make a WFS 1.1 request with a GML2 polygon when GML3 is expected instead Cheers Andrea |