Hi

I've discovered what I think are bugs in the GMLComplexType class.

GMLComplexType$CoordType.value(...):

The elements to value comparisons for value extraction compare the element 
name to the name of the type of the coordinate.

if (elements[0].getName().equals(value[i].getElement().getType().getName())) {

This causes "X coord required" errors even if the X coord element is in the 
parsed document. Removing the getType() from the comparison fixes this bug.

----------------------
GMLComplexType$DefaultChoice.getMaxOccurs():

returns 1 instead of the maxOccurs value of the choice that is actually 
present in the document.

----------------------
GMLComplexType$LinearRingType:

The CoordType element is constructed with minOccurs = 2, maxOccurs = 4. The 
specification says min 4 and max unbounded. Perhaps here I have misunderstood 
something.


Greetings,
Mark
-- 
Q: Why do people who live near Niagara Falls have flat foreheads?
A: Because every morning they wake up thinking "What *is* that noise?
 Oh, right, *of course*!

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgp3284IMBc2K.pgp
Description: PGP signature

Reply via email to