[gdal-dev] reprojection issue

Robert Oehler robert at roproducts.de
Tue Mar 3 01:27:30 PST 2015


Thank you, using gdal.reprojectimage(..) brought the expected result.


> Am 02.03.2015 um 18:43 schrieb David Strip <gdal at stripfamily.net>:
> 
> 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.
> 
> On 3/2/2015 9:01 AM, Robert Oehler wrote:
>> 
>> Hi,
>> 
>> I’m developing a raster library using GDAL. I use the Java bindings.
>> 
>> I would like to do a reprojection of an image which I have in memory.
>> 
>> I’m using an in-memory driver to create a dataset. I fill it with the properties of the image and its data.
>> 
>> Now I’m doing
>> 
>> Dataset warped = gdal.AutoCreateWarpedVRT(ds, src_proj.ExportToWkt(), dst_proj.ExportToWkt());
>> 
>> 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)
>> 
>> What am I doing wrong?
>> 
>> I’ve seen gdal.reprojectImage(..) What is the difference? Is it preferable in my case ?
>> 
>> Thank you
>> 
>> Robert Oehler
>> 
>> 
>> 
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev <http://lists.osgeo.org/mailman/listinfo/gdal-dev>
> 

Robert Oehler

Tel ( D ) : +49 179 4759609
Tel ( I )  : +39 370 3161263
--------------------------------------------

CEO RoProducts
www.roproducts.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150303/84f39e7e/attachment.html>


More information about the gdal-dev mailing list