Issue Type: Bug Bug
Affects Versions: 2.7.5
Assignee: Unassigned
Attachments: BE11.kml, BE13.kml
Components: xsd extensions
Created: 08/Nov/12 11:51 AM
Description:

I'm using GeoTools 2.7.5 on a web application that runs on GlassFish 3.1.2.2 @ Linux @ OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode). I'm trying to parse the following KML to JTS geometry and in some cases I get a GEOMETRYCOLLECTION EMPTY

Source code:

public static boolean validateKMLType(File file, boolean kmz) throws ParserConfigurationException, SAXException, FileNotFoundException, IOException {
if (kmz) { file = decompress(file); }

SimpleFeature f;
StreamingParser parser = new StreamingParser(new KMLConfiguration(), new FileInputStream(file), KML.Placemark);
while ((f = (SimpleFeature) parser.parse()) != null) { Geometry geo = (Geometry) f.getDefaultGeometry(); return (geo instanceof Polygon || geo instanceof MultiPolygon); }
return false;
}

Environment: Debian 6, OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode), Glassfish 3.1.2.2
Fix Versions: 2.7.6
Project: GeoTools
Priority: Major Major
Reporter: André Andrade
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to