<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Even,<div>Thanks for the pointer to this resource, and for working to support this important functionality.  </div><div>Would it make sense to add the -a_coord_epoch option to gdal_edit.py, so users can directly update the GeoTiff header for a dataset with known epoch?</div><div>-David<br id="lineBreakAtBeginningOfMessage"><div>
<meta charset="UTF-8"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br><br><br>--</div><div>David Shean<br>Civil and Environmental Engineering<br>University of Washington<br><a href="https://www.ce.washington.edu/facultyfinder/david-shean">https://www.ce.washington.edu/facultyfinder/david-shean </a><br><br>201 More Hall, Box 352700<br>3760 E. Stevens Way NE<br>Seattle, WA 98195-2700<br>Office: (206) 543-3105, Wilcox Hall 265<br>Pronouns: he, him, his</div></div>
</div>
<div><br><blockquote type="cite"><div>On Jan 17, 2024, at 11:40 AM, Even Rouault via gdal-dev <gdal-dev@lists.osgeo.org> wrote:</div><br class="Apple-interchange-newline"><div>

  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <div><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>
  </div>

_______________________________________________<br>gdal-dev mailing list<br>gdal-dev@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/gdal-dev<br></div></blockquote></div><br></div></body></html>