[IMAGEIO_EXT-42] Add capability to warp/reproject images on read using gdal.AutoCreateWarpVRT Created: 31/Jul/12 Updated: 30/Oct/12 Resolved: 30/Oct/12
|Remaining Estimate:||2 days|
|Time Spent:||Not Specified|
|Original Estimate:||2 days|
|Attachments:||GDALImageReader.java GDALImageReadParam.java GeoTiffTest.java imageio-42-patch.txt|
The java GDAL bindings support warping a Dataset on the fly when reading an image using gdal.AutoCreateWarpVRT(...).
My suggestion is to modify GDALImageReader.read() to accept a new ImageReadParam extension (GDALImageReadParam) that contains the necessary information to pass to the AutoCreateWaprVRT method. The read method could check if the read param is a GDALImageReadParam and if the source projection is different from the destination projection create a virtual warped dataset from the original dataset.
This change would allow users of imageio-ext to warp images being read into any projection recognized by gdal.
|Comment by newmanw10 [ 31/Jul/12 ]|
Description of attached files:
|Comment by newmanw10 [ 01/Aug/12 ]|
Attached a patch for the modified files. Please ignore the original files attached as there was a small bug. The patch file is correct.
|Comment by dany111 [ 30/Oct/12 ]|
Fixed on trunk. (check the latest github repository on master branch)