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?

Jon Britton wrote:
> 
> Exactly what Capabilities class are you referring to? The one in 
> org.geotools.ows.Capabilities?
> 
> 
> Hi,
> 
> Yes, that's the one.  My WCSGetCapabilitiesResponse class extends 
> org.geotools.data.ows.GetCapabilitiesResponse in the same way the WMS 
> equivalent does.  This relies on a org.geotools.ows.Capabilities subclass.
> 
> All Capabilities seems to include is getters and setters for 3 fields - 
> service, version and updateSequence.  So making WCSGetCapabilitiesType 
> implement this is quite simple, but the service and updateSequence fields 
> would be unused (I'm not sure where these are used, AbstractOpenWebService 
> only seems to use getVersion).  getVersion() could be used for version 
> negotiation as normal.
> 
> I'm not sure how else I would be able to use the (very convenient) OWS 
> classes with the EMF stuff.


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
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