|
From: Jürgen J. <zoi...@gm...> - 2008-10-09 09:04:33
|
Dear all, I'm using uDig for my own application and have this problem: The operator can make snapshots of the map for usage outside of the GIS component of my application. The image (AWT Raster) is saved together with envelope details (crs, min and max x and y). With a tool the user can trim (crop?) this image inside the appliction. Example:Only a certain part of the map / image is of interest. Besides saving the new raster (quite easy) I must modify the saved envelope values and here I need some help. I have the old Raster and a new Raster that is a part of old Raster. How is it possible with geotools or jts to calculate the new bounding box. I have the old bounding box and new and old raster dimensions. Thanks for your help!!! |