Hi all, i try to read data from gml files using GMLDataStore (2.5.M0). There are troubles in org.geotools.xml.gml.GMLComplexTypes.java (class CoordType - Method getValue)
for (int i = 0; i < value.length; i++) { if (elements[0].getName().equals(value[i].getElement().getType().getName())) { x = (Double) value[i].getValue(); } if (elements[1].getName().equals(value[i].getElement().getType().getName())) { y = (Double) value[i].getValue(); } if (elements[2].getName().equals(value[i].getElement().getType().getName())) { z = (Double) value[i].getValue(); } } This will compare the name of the element with the name of the Type. Thomas ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users