Hi Torsten,

The geotools gml parser is quite dependent on the schema specified, so 
unless it is specified properly this can go astray. Also, to pare gml 
3.2 a special parser configuration is needed. A couple of questions:

* what version of geotools are you using?
* what code are you using to setup the parser, in particular what 
Configuration, org.geotools.gml3.GMLConfiguration?
* could you possibly include a snippet of the gml you are trying to parse?

As for the XMLSchema library, looks quite nice, and a lot lighter weight 
than eclipse XSD. I will have to put it on my TODO list to look into it 
more.

Thanks,

-Justin

Thorsten Reitz wrote:
> Hi all,
> 
> thanks a lot for your help on the previous rendering issue. There is one 
> more aspect where I am bit puzzled about what to do: To be able to read 
> the INSPIRE GML 3.2.1-based GML application schema, we wrote a handler 
> based on Apache XmlSchema classes 
> (http://ws.apache.org/commons/XmlSchema/). In general, it works fine. 
> However, when I try to use a org.geotools.xml.Parser to read a GML 3.1 
> or GML 3.2 file afterwards, this Parser does not return a
> 
> FeatureCollection<? extends FeatureType, ? extends Feature>
> 
> but rather a simple HashMap. I assume this has to do with the fact that 
> when calling the Apache XmlSchema classes first, a different 
> implementation of the SAXParser gets loaded compared to when the 
> Geotools parser is loaded first. So I have two questions:
> 
> - Can you confirm this as the source of the aforementioned issue?
> - If yes, is there a way to tell the GeoTools Parser which SAX 
> implementation to use? I checked whether there are any System properties 
> set on this, but it doesn't seem to be the case.
> 
> The source code for the Apache-based SchemaImporter can be viewed here:
        
> 
> Thanks a lot & best regards,
> 
> Thorsten
> 


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
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
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to