Hi Justin,

just a quick update: using the GMLConfiguration from gml3 allows me
indeed to parse the GML, even though I get lots of these messages:

INFO: Could not find declaration for:
{http://www.esdi-humboldt.org/waterVA}LAENGE_ROU. Creating a mock
element declaration and parsing anyways...

Would not be a showstopper for me, since I am handling the schema for
the rest of the application using the aforementioned other custom parser
anyway.

So thanks & kind regards,

Thorsten

Thorsten Reitz schrieb:
> 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-Institut
Graphische Datenverarbeitung
Fraunhoferstraße 5
64283 Darmstadt

Thorsten Reitz
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

Reply via email to