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

Even Rouault even.rouault at spatialys.com
Wed Jan 17 11:40:25 PST 2024


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240117/ad3fe60e/attachment-0001.htm>


More information about the gdal-dev mailing list