Hi Justin,
thanks for taking the time to have a look at this...
> * what version of geotools are you using?
2.5.4
> * what code are you using to setup the parser, in particular what
> Configuration, org.geotools.gml3.GMLConfiguration?
I am using the following code (schema_location and gml_location are both
URLs, namespace is a simple String):
Configuration configuration = new ApplicationSchemaConfiguration(
namespace, schema_location);
InputStream xml = new FileInputStream(gml_location);
Parser parser = new Parser(configuration);
result = (FeatureCollection<? extends FeatureType, ? extends Feature>)
parser.parse(xml);
The Parser mentioned is the org.geotools.xml.Parser.
> * could you possibly include a snippet of the gml you are trying to parse?
No problem, you can find the subset together with the schema here:
http://xsdi.org/downloads/schema_problem_data.zip
Best Regards,
Thorsten
--
-------------------------------------------------------------------
Fraunhofer Institute Computer Graphics
Fraunhoferstraße 5
64283 Darmstadt
Germany
Thorsten Reitz
phone: + 49 6151 155 - 416
email: [email protected]
http://www.igd.fhg.de
-------------------------------------------------------------------
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users