<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>You mean the HEIGHT_OFFSET parameter in the RPC ? Yes, that can
      generally be used as a first-order correction if you don't use a
      DEM. I'm not sure using it vs not-using it has been a deliberate
      choice. One could say that with the current behavior people know
      that something is wrong and must thus set something additional.
      There was a related discussion in
      <a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/pull/36385">https://github.com/qgis/QGIS/pull/36385</a>. A non breaking change
      would be to make -to RPC_HEIGHT=HEIGHT_OFFSET work</p>
    <div class="moz-cite-prefix">Le 19/05/2021 à 11:54, Denis Rykov a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJbvKNoNgBbESYswAMvASuQgTEzoxzya3h8_Rd1r0ExtsT5LzA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Finally I solved the issue by adding "-to
        RPC_HEIGHT=XXX" to gdalwarp.<br>
        It seems gdalwarp doesn't take this parameter into account even
        if it is presented in the RPC *.txt file.
        <div>Should I file the ticket or was it done by purpose?</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, May 18, 2021 at 11:26
          PM Denis Rykov <<a href="mailto:rykovd@gmail.com"
            moz-do-not-send="true">rykovd@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Thanks!</div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, May 18, 2021 at
              10:57 PM Even Rouault <<a
                href="mailto:even.rouault@spatialys.com" target="_blank"
                moz-do-not-send="true">even.rouault@spatialys.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div>
                <p>Denis,</p>
                <p>if the view angle is off-nadir, you generally need to
                  use the -to RPC_DEM= option with a DEM covering the
                  area of interest (and make sure the values it contains
                  are WGS 84 ellipsoidal elevations) to get accurate
                  results.</p>
                <p>Even<br>
                </p>
                <div>Le 18/05/2021 à 22:50, Denis Rykov a écrit :<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">Hi,
                    <div><br>
                    </div>
                    <div>I have a GeoTIF file and file with RPC
                      information next to it (*.txt). Is there a way to
                      transform this raster to a normal geotiff without
                      displacement (with geotransform inside) or is it
                      fundamentally impossible?</div>
                    <div>I've tried to achieve it with gdalwarp but in
                      this case the result of the transformation has
                      about 5 meters (10 pixels) x-displacement (I use
                      QGIS to visualize it).</div>
                    <div><br>
                    </div>
                    <div>Denis</div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" moz-do-not-send="true">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
                </blockquote>
                <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank" moz-do-not-send="true">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>