[Geoserver-devel] What about elements that do refer the GML3 namespace?

Hi,
looking into the GetFeature spec I was wondering what I would
have to do to handle some elements that wcs uses, and that
are defined in gml3 temporal.xsd file .

As far as I can see the gml3 bindings have been defined without
any backing emf model soo... what shall I do? Create an emf
model out of it?

I have no urgency for that, but given the wcs temporal and nd
storm is approaching, I want to be ready for it :wink:

Cheers
Andrea

Is there a geoapi or geotools model that we can use to represent this?
If not do we perhaps need one? I usually take the approach of generating
an EMF model if there is no other possible object model around. How big
is the gml3 temporal model?

Andrea Aime wrote:

Hi,
looking into the GetFeature spec I was wondering what I would
have to do to handle some elements that wcs uses, and that
are defined in gml3 temporal.xsd file .

As far as I can see the gml3 bindings have been defined without
any backing emf model soo... what shall I do? Create an emf
model out of it?

I have no urgency for that, but given the wcs temporal and nd
storm is approaching, I want to be ready for it :wink:

Cheers
Andrea

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,4787975c237535332866982!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Justin Deoliveira ha scritto:

Is there a geoapi or geotools model that we can use to represent this?
If not do we perhaps need one? I usually take the approach of generating
an EMF model if there is no other possible object model around. How big
is the gml3 temporal model?

The model is big enough: http://schemas.opengis.net/gml/3.1.1/base/temporal.xsd

Yet WCS uses only a very small part of it, gml:timePosition,
which uses other 2-3 definitions. Unfortunately it's definition
it's not a perfect match for java.util.Date, one can specify also
a decimal or a uri in it... It's also a union, not sure how
these are managed in emf...

Cheers
Andrea

I guess ideally we should reuse the schema to Feature Model parser in
community-schema. So you should just parse the gml schema and get back a
bunch of GeoAPI AttributeTypes and AttributeDescriptors mirroring what's on
the xsd schema.

Being on trunk it might make sense to port
org.geotools.data.complex.config.EmfAppSchemaReader, though that implies
having a full FM implementation on trunk, which right now is only in
community-schema/fm.
Its use is simple:
EmfAppSchemaReader reader = ...
reader.parse(Configuration)
Map<AttributeType> types = reader.getTypeRegistry();

The one that works is on 2.4.x though, trunk is fairly out of date.

On Friday 11 January 2008 05:35:39 pm Andrea Aime wrote:

Justin Deoliveira ha scritto:
> Is there a geoapi or geotools model that we can use to represent this?
> If not do we perhaps need one? I usually take the approach of generating
> an EMF model if there is no other possible object model around. How big
> is the gml3 temporal model?

The model is big enough:
http://schemas.opengis.net/gml/3.1.1/base/temporal.xsd

Yet WCS uses only a very small part of it, gml:timePosition,
which uses other 2-3 definitions. Unfortunately it's definition
it's not a perfect match for java.util.Date, one can specify also
a decimal or a uri in it... It's also a union, not sure how
these are managed in emf...

I guess you get as many properties for the interface as are in the union. Same
thing for xsd->fm code above.

Cheers
Andrea

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac
e _______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4045,47879afe248834901796417!