The GML schema is parsed, then and cached. During the actual GML document parse, the cached Schema object is extracted from the cache using the FT (and if one isn't found ... then parse one up). This fills the gap between the expresiveness of XSD and our FT model.
David
On 10/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
Quoting Rob Atkinson <[EMAIL PROTECTED]>:
> >That's the tricky part. So I wanted to have something that doesn't existed
> in
> >geotools yet, a GML schema parser that produces geotools FeatureTypes.
> I'm not sure a GML schema parser is that easy - I've written a recursive
> one in the past and its a very non-trivial task. Substitution group
> mappings make it even hairier, though its not sure this will turn out to
> be a workable mechanism. Its worth noting that a parser is of no
> practical use unless it can follow import directives. (Community schemas
> will be heavily reliant on importing common modules). For this phase of
> the project its fine to manually create the configuration IMHO
It is not easy - but we did it twice.
XDO was made for uDig versino 1.0 - david zwiers has taken this off as a
separate project. And GTXML was made for our recent OWS-3 project.
- http://udig.refractions.net/confluence/display/OWS3/GTXML+Article
XDO is fast and uses itself to parse schemas (following imports as needed).
GTXML is focused on usability and uses XSD (and eclipse spin off) to parse
schemas. GTXML has also had a start on parsing GML3 ...
> >AFAIK, WFSDataStore could benefit from this too, since it actually is not
> >parsing GML schemas, but inferring them from a Feature instance, which is ok
> >for simple Features, but not for complex ones, since you can't determine
> >multiplicity and elements not present in an (xml) feature instance, you need
> >the actual FeatureType, which in that case should be aquired from the actual
> >GML schema in xml format.
It is supposed to be parsing the schema ... see above comment about XDO.
> >Please feel free to send your comments/concerns.
Thanks for the update Gabriel, apparently I am going to be stuck making geotools
releases next week. But I do hope to catch up with you in a bit.
Jody
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
