Jan,<br><br>If you are just going to shift the image, just the GeoTransform element should be enough. You don&#39;t need the GCPs.<br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 3:04 PM, Jan Hartmann <span dir="ltr">&lt;<a href="mailto:j.l.h.hartmann@uva.nl">j.l.h.hartmann@uva.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><u></u>

  
    
  
  <div text="#000000" bgcolor="#ffffff">
    <font face="Times New Roman, Times, serif">Hi all,<br>
      <br>
      This has come up before, but I&#39;m still struggling for an answer. I
      want to rubbersheet an already projected image with control
      points, so as to remove small errors.On a suggestion by Frank
      (<a href="http://lists.osgeo.org/pipermail/gdal-dev/2009-February/019775.html" target="_blank">http://lists.osgeo.org/pipermail/gdal-dev/2009-February/019775.html</a>)
      I produced a VRT file of the georeferenced image and added control
      points to shift the image 1000m to the right. (see below).
      However,  GDALWARP ignores the control points and returns the
      original georeferenced image. When I remove the georeferencing
      information, it does use the control points, but returns a raw
      image shifted to the right.<br>
      <br>
      Is it possible to rubbersheet a georeferenced image with control
      points, or am I chasing a red herring?<br>
      <br>
      Thanks,<br>
      <br>
      Jan<br>
      <br>
      &lt;VRTDataset rasterXSize=&quot;310&quot; rasterYSize=&quot;343&quot;&gt;<br>
        &lt;SRS&gt;PROJCS[&amp;quot;Amersfoort / RD
      New&amp;quot;,GEOGCS[&amp;quot;Amersfoort&amp;quot;,DATUM[&amp;quot;Amersfoort&amp;quot;,SPHEROID[&amp;quot;Bessel
1841&amp;quot;,6377397.155,299.1528128000008,AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;7004&amp;quot;]],AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;6289&amp;quot;]],PRIMEM[&amp;quot;Greenwich&amp;quot;,0],UNIT[&amp;quot;degree&amp;quot;,0.0174532925199433],AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;4289&amp;quot;]],PROJECTION[&amp;quot;Oblique_Stereographic&amp;quot;],PARAMETER[&amp;quot;latitude_of_origin&amp;quot;,52.15616055555555],PARAMETER[&amp;quot;central_meridian&amp;quot;,5.38763888888889],PARAMETER[&amp;quot;scale_factor&amp;quot;,0.9999079],PARAMETER[&amp;quot;false_easting&amp;quot;,155000],PARAMETER[&amp;quot;false_northing&amp;quot;,463000],UNIT[&amp;quot;metre&amp;quot;,1,AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;9001&amp;quot;]],AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;28992&amp;quot;]]&lt;/SRS&gt;<br>

        &lt;GeoTransform&gt; -8.5000000000000000e+03, 
      1.0000000000000000e+03,  0.0000000000000000e+00, 
      2.8750000000000000e+05,  0.0000000000000000e+00, 
      1.0000000000000000e+03&lt;/GeoTransform&gt;<br>
        &lt;Metadata /&gt;<br>
        &lt;Metadata domain=&quot;IMAGE_STRUCTURE&quot;&gt;<br>
          &lt;MDI key=&quot;INTERLEAVE&quot;&gt;BAND&lt;/MDI&gt;<br>
        &lt;/Metadata&gt;<br>
        &lt;GCPList&gt;<br>
          &lt;GCP Id=&quot;&quot; Pixel=&quot;0.0000&quot; Line=&quot;0.0000&quot;
      X=&quot;1.000000000000E+03&quot; Y=&quot;0.000000000000E+00&quot; /&gt;<br>
          &lt;GCP Id=&quot;&quot; Pixel=&quot;1000.0000&quot; Line=&quot;0.0000&quot;
      X=&quot;2.000000000000E+03&quot; Y=&quot;0.000000000000E+00&quot; /&gt;<br>
          &lt;GCP Id=&quot;&quot; Pixel=&quot;1000.0000&quot; Line=&quot;1000.0000&quot;
      X=&quot;2.000000000000E+03&quot; Y=&quot;2.000000000000E+03&quot; /&gt;<br>
          &lt;GCP Id=&quot;&quot; Pixel=&quot;0.0000&quot; Line=&quot;1000.0000&quot;
      X=&quot;1.000000000000E+03&quot; Y=&quot;1.000000000000E+03&quot; /&gt;<br>
        &lt;/GCPList&gt;<br>
        &lt;VRTRasterBand dataType=&quot;Float64&quot; band=&quot;1&quot;&gt;<br>
          &lt;Metadata /&gt;<br>
          &lt;ColorInterp&gt;Gray&lt;/ColorInterp&gt;<br>
          &lt;SimpleSource&gt;<br>
            &lt;SourceFilename
      relativeToVRT=&quot;1&quot;&gt;test.tif&lt;/SourceFilename&gt;<br>
            &lt;SourceBand&gt;1&lt;/SourceBand&gt;<br>
            &lt;SourceProperties RasterXSize=&quot;310&quot; RasterYSize=&quot;343&quot;
      DataType=&quot;Float64&quot; BlockXSize=&quot;310&quot; BlockYSize=&quot;3&quot; /&gt;<br>
            &lt;SrcRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;310&quot; ySize=&quot;343&quot; /&gt;<br>
            &lt;DstRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;310&quot; ySize=&quot;343&quot; /&gt;<br>
          &lt;/SimpleSource&gt;<br>
        &lt;/VRTRasterBand&gt;<br>
      &lt;/VRTDataset&gt;<br>
    </font>
  </div>

<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>