Hi all, I have a data set in GML that I am trying to parse into a FeatureCollection. I'm using GeoTools 2.6.4.
Schemas (NAS-Operationen.xsd): http://community.esdi-humboldt.eu/attachments/117/NAS_6.0.1.zip Example Data: https://www.igd.fraunhofer.de/download/file.php?h=R50601 When using the GMLConfiguration (gml3 package) as parser configuration I get a FeatureCollection with one AX_Flurstueck Feature back, but all complex properties (e.g. gemeindezugehoerigkeit) are represented by HashMaps. To get a better result I tried using the ApplicationSchemaConfiguration. When parsing the schema it produced a StackOverflowError. I solved this with a small change to the SchemaLocationResolver in ApplicationSchemaXSD: the location URI is normalized before it is returned. To implement this I basically create a copy of ApplicationSchemaConfiguration and ApplicationSchemaXSD (see http://community.esdi-humboldt.eu/repositories/entry/hale/eu.esdihumboldt.hale.gmlparser/src/eu/esdihumboldt/hale/gmlparser/HaleSchemaConfiguration.java and http://community.esdi-humboldt.eu/repositories/entry/hale/eu.esdihumboldt.hale.gmlparser/src/eu/esdihumboldt/hale/gmlparser/HaleSchemaXSD.java). With the adapted application schema configuration I can parse the GML without error, but the result I get is only a hierarchy of HashMaps - there is no FeatureCollection or Feature created. Has somebody an idea what goes wrong here? Why is the result even worse when just using the GMLConfiguration? Should it be possible to parse features with complex properties using the ApplicationSchemaConfiguration? Are there any alternatives? Thanks in advance for your help. Cheers Simon P.S.: If you need more details about how I do the parsing have look at http://community.esdi-humboldt.eu/repositories/entry/hale/eu.esdihumboldt.hale.gmlparser/src/eu/esdihumboldt/hale/gmlparser/HaleGMLParser.java -- Dipl.-Inform. Simon Templer Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-408 | Fax +49 6151 155-444 [email protected] | www.igd.fraunhofer.de ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
