On 01/05/13 08:18, Matteo Cusmai wrote:

Hi all, hi Angelo,
I have the same issue.

Have anyone solved this problem?

I'd be really really glad to see a solution myself

On 22 Apr 2013 17:35, "Angelo D'Amato" <damatoangelo@gmail.com> wrote:
Hi to all,
I’m trying to use geotools api to implement my custom model that extends GML
concepts.
I follow instructions that are in this tutorial :
http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html
<http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html>

For practice I created my custom XSD simple model that extends some GML
concepts as you can see in next figure.

<http://osgeo-org.1560.x6.nabble.com/file/n5048829/Immagine.jpg>

In my model
/ --  ConveyanceType extends gml:AbstractFeatureType
--  CommercialVehicle (an istance of CommercialVehicleType) is a
gml:_Feature
--  Train (an istance of TrainType)  is a gml:_Feature/

When I launch

*mvn jaxb2:generate*

XJC tried to generate also GML model and I have a lot of  conflicts name on
elements .

I would to exclude GML concepts from compilation of model and automatically
generate custom binding taken from already defined binding class of Geotools
such as:

http://docs.geotools.org/latest/javadocs/org/geotools/gml3/bindings/AbstractFeatureTypeBinding.html
<http://docs.geotools.org/latest/javadocs/org/geotools/gml3/bindings/AbstractFeatureTypeBinding.html>

1. There are some examples to learn how to configure this expected
behaviour?
2. This could be a good practice to implement a custom model extends gml
concept ?
3. What is the best practice to have a Model Driven Architecture between
Jaxb and EMF strategies?

PS.
I see also this project  http://www.ogcnetwork.net/jaxb4ogc
<http://www.ogcnetwork.net/jaxb4ogc>  , they define custom *binding.xjb* for
creation of complete GML model but I would reuse already defined binding of
GML, maybe configuring dependency on *gt-xsd-gml3*.

Thanks in advance,

Angelo



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/JAXB-code-generation-of-custom-model-that-extends-GML-types-tp5048829.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1


_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users