Hi,
I'm implementing a web service to find differences between two coverages.
I'm specifiying a subsection of the images, then cropping each to fit. I'm
using the following code:
GeneralEnvelope selectedEnvelope = new
GeneralEnvelope(request.getEnvelope());
beforeCoverage = WCSUtils.crop(beforeCoverage,
(GeneralEnvelope)beforeCoverage.getEnvelope(),
outCRS, selectedEnvelope, Boolean.TRUE);
afterCoverage = WCSUtils.crop(afterCoverage,
(GeneralEnvelope)afterCoverage.getEnvelope(),
outCRS, selectedEnvelope, Boolean.TRUE);
However, the origin of the output is always in the NW corner of the original
image!
Any idea why this is?
Thanks,
Jon
--
View this message in context:
http://www.nabble.com/Cropping-coverages-causes-coverage-to-shift-NW-tf4608628.html#a13160086
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users