<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I’m developing a raster library using GDAL. I use the Java bindings.</div><div class=""><br class=""></div><div class="">I would like to do a reprojection of an image which I have in memory.</div><div class=""><br class=""></div><div class="">I’m using an in-memory driver to create a dataset. I fill it with the properties of the image and its data.</div><div class=""><br class=""></div><div class="">Now I’m doing</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Monaco;">Dataset warped = gdal.AutoCreateWarpedVRT(ds, src_proj.ExportToWkt(), dst_proj.ExportToWkt());</div></div><div class="" style="margin: 0px; font-size: 11px; font-family: Monaco;"><br class=""></div><div class="" style="margin: 0px;">but the resulting raster is very different from the original. (720,720 --> 635,810) while the resulting bounding box is correct (compared to my own reprojection implementation)</div><div class="" style="margin: 0px;"><br class=""></div><div class="" style="margin: 0px;">What am I doing wrong?</div><div class="" style="margin: 0px;"><br class=""></div><div class="" style="margin: 0px;">I’ve seen gdal.reprojectImage(..) What is the difference? Is it preferable in my case ?</div><div class="" style="margin: 0px;"><br class=""></div><div class="" style="margin: 0px;">Thank you</div><div class=""><br class=""><div apple-content-edited="true" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">Robert Oehler</div><div class=""><br class=""></div></div></div></div></div></div></body></html>