geojson module does not handle default abstract feature type attributes properly --------------------------------------------------------------------------------
Key: GEOT-3202 URL: http://jira.codehaus.org/browse/GEOT-3202 Project: GeoTools Issue Type: Bug Affects Versions: 2.7-M2 Reporter: Justin Deoliveira Attachments: states-FeatureCollection.xml Namely bounded by, which occurs when parsing a gml feature collection. public static void main(String[] args) throws Exception { Parser p = new Parser(new GMLConfiguration()); FeatureCollection fc = (FeatureCollection) p.parse(new InputStreamReader(ExecuteTest.class.getResourceAsStream("states-FeatureCollection.xml"))); new FeatureJSON().writeFeatureCollection(fc, System.out); } Now, the generated JSON contains some GML base properties including: "description":null,"name":null,"boundedBy":ReferencedEnvelope[0.0 : 2.0, 0.0 : 2.0] When trying to parse back boundedBy the JSON parser complains it found the unexpected character "R" (the start of ReferencedEnvelope). -- 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel