<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thank you, using gdal.reprojectimage(..) brought the expected result.<div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 02.03.2015 um 18:43 schrieb David Strip <<a href="mailto:gdal@stripfamily.net" class="">gdal@stripfamily.net</a>>:</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
This result is not entirely unexpected, though it depends on the two
projections. A square box in one projection will map onto something
entirely different in many cases, often introducing skew which will
change the aspect ratio and size of the resulting raster. If you
view your reprojected dataset you will almost certainly find a
skewed region surrounded by no data values.<br class="">
<br class="">
On 3/2/2015 9:01 AM, Robert Oehler wrote:
<blockquote type="cite" class="">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252" 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>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br class="">
<br class="">
</div>
</div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-style: normal; font-variant: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; line-height: normal; font-weight: normal; font-family: Helvetica; color: rgb(0, 0, 0);" class=""><div class="">Robert Oehler</div><div class=""><br class=""></div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Tel ( D ) : +49 179 4759609<br class="">Tel ( I ) : +39 370 3161263<br class="">--------------------------------------------<br class=""><br class=""></div></div><div class="">CEO RoProducts</div><div class=""><a href="http://www.roproducts.de" class="">www.roproducts.de</a></div></div></div></div>
</div>
<br class=""></div></body></html>