Hi Justin,
I tried both Juno and Indigo. To get the xml schema into the modeller importer,
Download http://www.eclipse.org/modeling/mdt/downloads/?project=xsd
Extract -> eclipse(local archive) -> manually choose Ecore Converter
It doesn't seem to pick up the sub package automatically for some reason.
The other approach I took to generate the model is via jaxb(pre compiled by
highsource). I believe it simplified the model by binding Document to anyType
for the om:result.
Is it possible to reuse all the bindings and class that have been generated
before such as models from gt-xsd-gml3 (if yes has to be by hand?)
How did you get over the
java.lang.IllegalArgumentException: The 'no null' constraint is violated
From: Justin Deoliveira [mailto:[email protected]]
Sent: Thursday, 4 October 2012 2:43 AM
To: Tey, Victor (CESRE, Kensington)
Cc: [email protected]<mailto:[email protected]>;
[email protected]<mailto:[email protected]>
Subject: Re: [Geotools-gt2-users] xmlcodegen for sos 2.0
On Wed, Oct 3, 2012 at 7:12 AM, Justin Deoliveira
<[email protected]<mailto:[email protected]>> wrote:
Hey Victor,
I am trying to generate the sos model with emf but for some reason I don't see
the option to create a model from xsd. For the life of me i can't figure out
how to get that option, which i thought i had before.
What versions of eclipse, and emf are you using? And when you create a new
model you are doing it from xsd?
@Andrea: you recently did this for csw I assume, how did you install emf?
Anyways, i looked at the sos schema and it looks like a complicated beast, i am
not sure how much a simple tutorial is going to help here.
Calling this schema a beast is an understatement :) So I was able to load the
xml schema in and generate out an object model but it has issues. Basically
with the dependency on gml 32. Trying to generate a model for gml32 actually
totally breaks, the generated classes breach the 65K limit for classes. It also
doesn't look like breaking the dependency on gml32 is an option.
So Victor, it seems you had a sos model generated using some other tools? Can
you elaborate on that? It might be that using an EMF model for the sos schema
is not the way to go. The downside is that writing the parsing/encoding
bindings will be more work but its still possible.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users