|
From: Simpson <asi...@i-...> - 2005-11-14 14:00:06
|
Hello,
Running a GetFeature with a bounding box that will return no features I get
the XML below back from the WFS server, and when GeoTools is parsing the xml
it throws the exception below.
Reviewing the gml schema, it seems "missing" is one of the enumerated values
of gml:NullType.
Any ideas?
Thanks,
Drew.
===================== EXCEPTION =====================================
Nov 14, 2005 7:31:32 AM org.geotools.xml.XMLSAXHandler endElement
WARNING: The value passed in to gml:NullType was not one of the allowable
enumerated values.
Nov 14, 2005 7:31:32 AM org.geotools.xml.XMLSAXHandler endElement
WARNING: Line 11 Col 35
Nov 14, 2005 7:31:32 AM org.geotools.data.wfs.WFSDataStore getFeatureReader
WARNING: java.io.IOException: org.xml.sax.SAXException: The value passed in
to gml:NullType was not one of the allowable enumerated values.
java.io.IOException: org.xml.sax.SAXException: The value passed in to
gml:NullType was not one of the allowable enumerated values.
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:304)
at
org.geotools.data.wfs.WFSFeatureReader.loadElement(WFSFeatureReader.java:164
)
at
org.geotools.data.wfs.WFSFeatureReader.hasNext(WFSFeatureReader.java:153)
at
org.geotools.data.wfs.WFSDataStore.getFeatureReader(WFSDataStore.java:821)
======================== XML ===========================================
<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
xmlns:myns="http://www.ttt.org/myns"
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://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd
http://www.ttt.org/myns
https://www.xxx.com/cgi-bin/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUES
T=DescribeFeatureType&TYPENAME=test_street&OUTPUTFORMAT=XMLSCHEMA">
<gml:boundedBy>
<gml:null>missing</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>
|