org.geotools.xml.Parser falsely validates invalid GML
-----------------------------------------------------

                 Key: GEOT-2987
                 URL: http://jira.codehaus.org/browse/GEOT-2987
             Project: GeoTools
          Issue Type: Bug
    Affects Versions: 2.6.2
         Environment: Java 1.6.0_b18
            Reporter: AW
         Attachments: invalidGML.txt, validateGMLTest.zip

I have an invalid GML File (see attachment) that is falsely validated as valid 
GML with org.geotools.xml.Parser.validate()

The GML validator at 
http://cite.opengeospatial.org/test_engine/gml/2.1.2/validator/ reports for 
this GML:

cvc-complex-type.2.4.b: The content of element 'gml:MultiPolygon' is not 
complete. It must match 
'(("http://www.opengis.net/gml":polygonMember){1-UNBOUNDED})'.

which is correct because the parse() method of the same class will throw a 
NullPointerException, when I try to parse the GML data.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to