|
From: Ákos M. <ak...@ma...> - 2013-03-23 20:59:24
|
Hi, I'm (still) trying to create a Data Store that can handle an XML file format defined by an XML Schema, which is based on GML. The XML schema itself is quite complex, therefore I'd do as much code generation based on the schema as possible. I do have JAXB properly generating an API based on the XML Schema I have, which is AIXM. I also looked at the GTXML documentation & samples, and I understand that this can also generate code stubs that would help me to parse data defined by the XML Schema using GeoTools. But a link is missing for me still. If I want to create a Data Store, I have to describe the data 'schema', the 'feature types', etc. and simply I don't see the link here between GTXML and the code generated by the gt-xml code generator from my XML Schema, and the (generated) helpers that would save me from manually creating FeatureType / ComplexType objects that describe the nature of data being handled, which would be based on the XML Schema. such FeatureTypes have to returned by the Data Store / Feature Source. Is there an example somewhere that would demonstrate such a use case 'all the way'? that is, based on an XML Schema (.xsd) file, it would show how one generates an object hierarchy representing the data from the XSD, including a data store that actually handles such data? best regards, Akos |