[Geotools-gt2-users] Cropping coverages causes coverage to shift NW

2007-10-11 Thread dead passive
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()); beforeCovera

[Geotools-gt2-users] Accessing a band as an image

2007-10-11 Thread dead passive
Hi, I've got a GridCoverage2D and would like to access a single band so that I can carry out a subtraction operation with it. I'm currently using SubtractDescriptor from JAI which requires RenderedImage's as input. Is there a way of getting a single band as a RenderedImage? Thanks, Jon -- View t

[Geotools-gt2-users] Getting intersection of two coverages...

2007-09-07 Thread dead passive
Hi, I'm trying to make web service with GeoServer for change detection. Before I can make it do anything, I need to compute the intersection between two images (before and after) At the moment I'm doing this: GridCoverage2D beforeCoverage = (GridCoverage2D)metaBefore.getCoverage(); GridCoverage