Changes between Initial Version and Version 3 of Ticket #1469


Ignore:
Timestamp:
Apr 8, 2007, 7:07:58 AM (17 years ago)
Author:
Mateusz Łoskot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1469 – Description

    initial v3  
    1 {{{
    21Currently, for the SWIG bindings, the only option to use the the GDAL warp functionality is to utilize AutoCreateWarpedVRT.
    32To use this feature the following (simplified) C# code sample was created:
    43
     4{{{
    55gdal.AllRegister();
    66Dataset ds = gdal.Open( "usapm.jpg", gdalconst.GA_ReadOnly );
     
    2222// saving the warped image
    2323Dataset dsw = drv_out.CreateCopy("usapm_bad.tif", dswarp, 0, new string[] { "INTERLEAVE=PIXEL", null });
    24 
     24}}}
    2525
    2626Currently this code does not work as expected and the resulting image is not warped.
     
    2828So as to inspect this problem the following equivalent commands were executed using the same dataset:
    2929
    30 gdalwarp -s_srs "+proj=utm +zone=16 +datum=NAD83 +no_defs" -t_srs "+proj=longlat +ellps=clrk80 +no_defs" -of VRT usapm.jpg usapm_good.vrt
     30{{{
     31gdalwarp -s_srs "+proj=utm +zone=16 +datum=NAD83 +no_defs" \
     32   -t_srs "+proj=longlat +ellps=clrk80 +no_defs" -of VRT \
     33   usapm.jpg usapm_good.vrt
     34}}}
     35
     36{{{
    3137gdalwarp -co "INTERLEAVE=PIXEL" usapm_good.vrt usapm_good.tif
     38}}}
    3239
    3340A suggested patch was also created for fixing this problem.
     
    3542The following files will be attached to this bug:
    3643
     44{{{
    3745usapm_good.vrt
    3846usapm_bad.vrt