Hi again,

I'm using the OWS classes for convenience really and also because it seemed 
logical to implement WCS in a similar way to WMS (maybe this isn't the case).  
It's also pretty easy to follow given that I'm not a GeoTools expert.

I'm now messing around with an adapter class for creating a Capabilities object 
from a WCSCapabilitiesType object.  I'm not sure if this is the best approach 
though.  This might involve making a load of other adapter classes for GeoAPI 
to EMF but I'm hoping this isn't the case.

At the moment I'm only using the EMF model and bindings that are in the 2.5.x 
branch.  This means I'm only working with WCS 1.0.0 since those are the only 
bindings that have been generated.  There seems to be a lot of redundancy in 
the EMF classes between WCS 1.0.0, 1.1.1 and the OWS stuff.  It can be 
confusing trying to figure out which should be used for a given EMF class.

Anyway, I'm making slow progress but it's a learning experience for me.

Jon



So what is the motivation of using the ows classes? Do you already have 
a bunch of code that works against them?

Since the parser and encoder can handle EMF objects automatically i 
usually don't find a need to change the object model all that much.

Unfortunately Capabilities is a class... so you are kind of stuck with 
the EMF model. If it was an interface you could extend it in the 
WCSCApabilitiesResponse interface. But every class in EMF has to extend 
from EObjectImpl...

I guess I don't quite have an understanding of where you are at. Do you 
have an EMF model in place you are using? Are you using the one that was 
generated for geoserver?



-- 
View this message in context: 
http://n2.nabble.com/How-to-load-a-WCS-capabilities-document-tp2598821p2650694.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to