Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Justin Deoliveira
I think porting over the old models would be great topic for a code sprint. Especially since there will be a bit of stuff around the models (custom xml bindings, request handling in geoserver, etc…) that also needs to change. On Fri, Apr 7, 2017 at 9:12 AM Nuno Oliveira wrote: > Image-mosaic use

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Nuno Oliveira
Image-mosaic uses JAXB for parsing indexer files (Indexer.xsd and Indexer.java). I add to generate the bindings for the Indexer and with JAXB it was dead easy (a command line tool if my memory serves me well): https://github.com/geotools/geotools/pull/1330/files#diff-21bc719f7346cc82417653798e

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Andrea Aime
On Fri, Apr 7, 2017 at 4:35 PM, Ian Turton wrote: > Well today's experiments have shown that you can build a model with EMF - > we just need to bump the EMF version we use from 1.6 to 1.12 which seems to > keep every thing happy(ish). > +1 for upgrading (after a round of build tests maybe :-p)

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Ian Turton
Well today's experiments have shown that you can build a model with EMF - we just need to bump the EMF version we use from 1.6 to 1.12 which seems to keep every thing happy(ish). To be honest I'm still a little unsure of what EMF is gaining me but I am making progress. If we could get the funds fo

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Andrea Aime
On Fri, Apr 7, 2017 at 4:02 PM, Justin Deoliveira wrote: > About the models that exist though… it would be a serious undertaking to > port them to something else. Also keeping in mind that at the time they > were built the only parser I could find that could actually handle some of > the crazy OG

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Andrea Aime
On Fri, Apr 7, 2017 at 4:02 PM, Justin Deoliveira wrote: > That said I agree with Andrea, given the chance to do this over again I > would certainly push for not using EMF and the way those model generations > work. I would say moving forward that definitely for newer models being > added not to

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Andrea Aime
On Fri, Apr 7, 2017 at 4:02 PM, Justin Deoliveira wrote: > Who was it that once said something about complaining without offering up > any alternative to make it better…? > I did... but I don't have anything to offer in this case, I never had an occasion to delve much into options for that. I di

[Geotools-devel] [JIRA] (GEOT-5695) Joined filter sql translation fails to qualify properties in filters, causing potential conflicts

2017-04-07 Thread Andrea Aime [Administrator] (JIRA)
Title: Message Title Andrea Aime [Administ

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Justin Deoliveira
Who was it that once said something about complaining without offering up any alternative to make it better…? That said I agree with Andrea, given the chance to do this over again I would certainly push for not using EMF and the way those model generations work. I would say moving forward that def

Re: [Geotools-devel] XML Binding Generation?

2017-04-07 Thread Andrea Aime
Hi Ian, yep, it's a royal pain... the latest model I've generated, I've done the EMF way, but it required grabbing a Eclipse as old as the tutorial, then generating the object model from the schema, and twaking the interfaces and re-generating the EMF model iteratively until I got to a satisfactory

[Geotools-devel] XML Binding Generation?

2017-04-07 Thread Ian Turton
Do we as a project have a view on how to generate bindings from an XML schema? The XML Faq (http://docs.geotools.org/latest/userguide/library/xml/faq.html) helpfully lists 7 different parsing approaches while the internals page ( http://docs.geotools.org/latest/userguide/library/xml/internal/index