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&amp;VERSION=1.0.0&amp;REQUES
T=DescribeFeatureType&amp;TYPENAME=test_street&amp;OUTPUTFORMAT=XMLSCHEMA">
   <gml:boundedBy>
      <gml:null>missing</gml:null>
   </gml:boundedBy>
</wfs:FeatureCollection>



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to