<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>cf test_tiff_write_coordinate_epoch() in
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/blob/3a9541d19f2df52f1e66dacfa33878531a5f2c58/autotest/gcore/tiff_write.py#L9575">https://github.com/OSGeo/gdal/blob/3a9541d19f2df52f1e66dacfa33878531a5f2c58/autotest/gcore/tiff_write.py#L9575</a></p>
    <p>On the command line you might use: gdal_translate in.tif out.tif
      -a_coord_epoch XXXX.YYY</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 17/01/2024 à 20:20, Glen Rice - NOAA
      Federal via gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGm0ZKdFgWQ3t7ZdHUr2idj5ndvokZ87xgyLZfaj3bW3a6V2sg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>We are trying to create geotiffs from Python and specify an
          epoch for a dynamic CRS.  Is there a way to do this
          from python or a command line utility?</div>
        <div><br>
        </div>
        <div>We see the pull request adding CoordinateEpochGeoKey (5120)
          and expect I could print the information from gdalinfo if I
          had an example file.  If we were in C/C++ then we could use
          libgeotiff and GTIFKeyGet( ).  However we are in Python and we
          don't see how to write either the CoordinateEpochGeoKey, or
          even a generic geokey, into a geotiff.</div>
        <div><br>
        </div>
        <div>For reference we looked at the following links:</div>
        <div><a href="https://gdal.org/user/coordinate_epoch.html"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://gdal.org/user/coordinate_epoch.html</a><br>
        </div>
        <a href="https://github.com/opengeospatial/geotiff/issues/78"
          target="_blank" moz-do-not-send="true"
          class="moz-txt-link-freetext">https://github.com/opengeospatial/geotiff/issues/78</a>
        <div><a href="https://github.com/opengeospatial/geotiff/pull/99"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/opengeospatial/geotiff/pull/99</a><br
            clear="all">
          <div>
            <div dir="ltr" class="gmail_signature">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr"><a
href="https://github.com/OSGeo/libgeotiff/blob/master/libgeotiff/geokeys.inc"
                      target="_blank" moz-do-not-send="true"
                      class="moz-txt-link-freetext">https://github.com/OSGeo/libgeotiff/blob/master/libgeotiff/geokeys.inc</a><br>
                  </div>
                  <div dir="ltr">
                    <div><br>
                    </div>
                    <div>Thanks for any help,</div>
                    <div>Glen and Barry</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div><br>
        </div>
        <span class="gmail_signature_prefix">-- </span><br>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr"><font color="#999999">Glen Rice</font></div>
                      <div><font color="#999999">National Bathymetric
                          Source</font></div>
                      <div dir="ltr"><font color="#999999"><span
                            style="font-size:12.8px">Hydrographic
                            Systems and Technology Branch</span><br>
                        </font></div>
                      <div dir="ltr"><font color="#999999">Office of
                          Coast Survey / Coast Survey Development
                          Laboratory</font></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
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="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </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>