Hi Jody,
> Oh cool - can you get a OperationDescriptor that way? One we could pass to
> JAIOperation so we do not have to take stuff into and out of a
> GridCoverage2D?
I don't know. I tend to do inelegant things like this...
GridCoverage2D cov = ...
double thresholdValue = ...
BilevelOperation op = new BilevelOperation("binarize");
ParameterValueGroup parameters = op.getParameters();
parameters.parameter("source").setValue(cov);
parameters.parameter("threshold").setValue(thresholdValue);
GridCoverage2D result = (GridCoverage2D) op.doOperation(parameters, null);
That will work but hopefully Simone can point you to a better, more
general approach.
Michael
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users