[gdal-dev] How to use geokey CoordinateEpochGeoKey in Geotiff from Python

Even Rouault even.rouault at spatialys.com
Thu Jan 25 03:47:41 PST 2024


Le 25/01/2024 à 04:41, David Shean a écrit :
> Hi Even,
> Thanks for the pointer to this resource, and for working to support 
> this important functionality.
> 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?
That could indeed be an appropriate addition. Contribution welcome
> -David
>
>
>
> --
> David Shean
> Civil and Environmental Engineering
> University of Washington
> https://www.ce.washington.edu/facultyfinder/david-shean 
> <https://www.ce.washington.edu/facultyfinder/david-shean>
>
> 201 More Hall, Box 352700
> 3760 E. Stevens Way NE
> Seattle, WA 98195-2700
> Office: (206) 543-3105, Wilcox Hall 265
> Pronouns: he, him, his
>
>> On Jan 17, 2024, at 11:40 AM, Even Rouault via gdal-dev 
>> <gdal-dev at lists.osgeo.org> wrote:
>>
>> Hi,
>>
>> cf test_tiff_write_coordinate_epoch() in 
>> https://github.com/OSGeo/gdal/blob/3a9541d19f2df52f1e66dacfa33878531a5f2c58/autotest/gcore/tiff_write.py#L9575
>>
>> On the command line you might use: gdal_translate in.tif out.tif 
>> -a_coord_epoch XXXX.YYY
>>
>> Even
>>
>> Le 17/01/2024 à 20:20, Glen Rice - NOAA Federal via gdal-dev a écrit :
>>> Hello,
>>>
>>> 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?
>>>
>>> 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.
>>>
>>> For reference we looked at the following links:
>>> https://gdal.org/user/coordinate_epoch.html
>>> https://github.com/opengeospatial/geotiff/issues/78
>>> https://github.com/opengeospatial/geotiff/pull/99
>>> https://github.com/OSGeo/libgeotiff/blob/master/libgeotiff/geokeys.inc
>>>
>>> Thanks for any help,
>>> Glen and Barry
>>>
>>> -- 
>>> Glen Rice
>>> National Bathymetric Source
>>> Hydrographic Systems and Technology Branch
>>> Office of Coast Survey / Coast Survey Development Laboratory
>>>
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>> -- 
>> http://www.spatialys.com
>> My software is free, but my time generally not.
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240125/b1ff0b39/attachment.htm>


More information about the gdal-dev mailing list