Hi Simone,
At some stage it would be great to get more of this stuff documented
and possibly have some example apps. I must confess that a lot of it
is still unknown territory to me.
Meanwhile, for Martin's case, if his GeoTiffs are tiled, then will the
following get him a cropped coverage without needing to read the whole
image into memory ?
GridCoverage2D cov = reader.read(null);
Envelope2D cropEnv = new Envelope2D( crs, x, y, w, h );
DefaultProcessor processor = new DefaultProcessor(null);
ParameterValueGroup parameters =
processor.getOperation("CoverageCrop").getParameters();
parameters.parameter("Source").setValue(cov);
parameters.parameter("Envelope").setValue(new Envelope2D(cropEnv));
GridCoverage2D croppedCov = (GridCoverage2D)
processor.doOperation(parameters);
Michael
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel