Jody,

I'm moving this discussion to the geotools users list as per your request.

>
>>> 1) Your custom schema (which extends GML elements) is sufficient to
>>> parse into GeoTools Feature, JTS Geometry and assorted Java objects.
>>>
>>> So start with a simple GML document and create your datastore.
>> I'm not sure what you mean.
>>
>> I do have a schema, it's called AIXM, it's quite large (let's say,
>> bloated), you can find it here:
>> http://www.aixm.aero/gallery/content/public/schema/5.1/
>>
>> or in a single zip:
>> http://www.aixm.aero/gallery/content/public/AIXM51/AIXM-5-1-20100201-xsd_with_annotations.zip
>>
>> here you can find UML data models for it as well:
>> http://www.aixm.aero/public/standard_page/download.html
>>
>>
>> I already generated an object hierarchy for this using JAXB, but this
>> doesn't help me to turn them into 'geotools features'
>>
>>
>> I ran the GTXML code generation as per the documentation in the XML
>> internals & PO sample, and I didn't really get much. for one, it
>> seems that GTXML would not parse included XSDs, whereas of course the
>> AIXM schema is made of a number of imports and includes, most notable
>> it imports the GML schemas.
>>
>>
>> but, even if I can get the GTXML binding to work, I don't see how
>> this would lead me to create the 'FeatureType' or rather
>> 'ComplexType' objects a DataStore seems to need to be able to work
>> with the data. I wonder what I'm missing at this point? or maybe,
>> there is no automated way to generate such ComplexTypes from an XML
>> Schema?
> Okay so if you don't have your own custom data objects, stop trying to
> generate POJOs you will just make life harder in the short term.
>
> Grab a very small sample document, and the XSD files it referenced by
> it, and try the parser as is. Use the test cases for an example of how
> to set up a GML configuration etc…
can you please be more specific on which test cases? I tried to look at
the gt-xml, gt-app-schema, gt-wfs test cases, but, well, maybe I'm not
clever enough to find out which ones are the ones you're referring to,
that would simply parse an XML document which is described by an XML
Schema, and create a Data Store from it.
>
> The content you get back should be features, the simple attribute
> represented as java types, and your complex types represented as
> java.util.Map (since there is no binding to a concrete Java
> class). Get that turning over, and only then can we start wrapping the
> functionality up in a DataStore API (as per the datastore tutorials).
this is the starting point I'm looking for
>
> If AIXM is too complicated for a first cut, tone it down by making
> your own schema with a subset of elements to learn the ropes. There is
> no reason to drive yourself nuts trying for "big bang" integration.
I already did that for myself, isolated a smaller part of the whole
schema, so that initally the scope is smaller and can be managed easier.
>
> I will remind you that you a are on the geotools-devel list here, if
> this is work you are doing internally for your company you should move
> discussion to the geotools user list,
thank you, did that, sorry for posting on the wrong list
> or if you are up against a deadline I encourage you to explore options
> for commercial support
> (http://docs.geotools.org/latest/userguide/welcome/support.html).
> Several organisations are listed there, including my employer.
I tried, and I had to face the fact that I can't afford this at the
moment. the project I'm doing is a non-profit open source project done
in my free time and from my personal resources. (OTOH, we just won the
Hungarian Open Source Project of the year award, organized by
ComputerWorld Hungary & IDG)
>
> I would love to have a GML DataStore available to the GeoTools
> community again, but the activity has not been funded, and there has
> been no volunteers in position to do the initial development and step
> forward to maintain the result.
>
I see - thanks for the information


Akos


------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to