Arrrgh!

Resampling a gridded coverage.  Is this a service (ala 19119; i.e.
portrayal), or a feature operation concept (ala 19126/N2052)?

A service is a thing external to a coverage, which operates on a coverage.
If a particular service implementation is optimized for a particular
coverage implementation, it'll have dependencies on the coverage internals.
(It'll use Simone's cool JAI stuff on coverages which it knows to be backed
by J2SE Images, and won't work on other implementations.)

A feature operation concept is a common method name, parameter list, and
return type.  This could well manifest itself as a "ResamplingCoverage"
interface with a "resample(x,y,width,height,crs)" method.  Interested
coverage classes could implement this interface.  This puts the code for
resampling INSIDE all coverage classes.

Resampling is something that is tightly coupled to the particular coverage
implementation (will be implemented very differently for JAI images than
for MultiArray2 images.)

Resampling is also something that doesn't care at all about implementation
(could be written entirely using the evaluate() method, or as a web
processing service on a different computer than the WCS).

Resampling is something that we want to mean the same thing regardless of
implementation (JAI and multiarray2 coverage implementations should provide
a method of the same name, with the same parameters, and have the same
meaning.)

19119 is published; 19126 is not.

I am leaning towards making it a service.  It just seems to allow more room
for growth and be more maintainable.  Please comment.  There's other things
which need this kind of attention too, like contouring.  It's be helpful if
we adopted a way of thinking about these things.

Bryce
"It's just a little harmless brain alteration, that's all!" -Wallace


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to