Matt,
surprisingly or not, the GTiff driver doesn't try to get the SRS from a
.prj side car file.
So just do
gdal_edit.py 047_0001.tif -a_srs "$(cat 047_0001.prj)"
Even
Le 31/01/2024 à 20:22, Matt.Wilkie via gdal-dev a écrit :
Hello gdal,
I have a collection of aerial photos for which neither gdal nor arc
pro recognize the projection. To my eye the .prj files look ok.
Attached txt is gdalinfo v3.8.0 report along with the .prj. I manually
formatted the below for readability:
PROJCS["UTM_07N",
GEOGCS["NAD83-CSRS Epoch 2006 (7 Param+Vel)",
DATUM["NAD83-CSRS Epoch 2006 (7 Param+Vel)",
SPHEROID["GRS 80", 6378137,298.2572221010002],
TOWGS84[1.0026,-1.9083,-0.5165, 1.288877171229702e-07,
8.998141921392988e-09, 5.376098909823645e-08, -1.18e-09]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]
],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-141],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metres",1]
]
Thanks!
*Matt Wilkie*
Geomatics Developer & Administrator
Environment | Technology, Innovation and Mapping
T 867-667-8133 | _Yukon.ca <http://yukon.ca/>_
/Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away./
_______________________________________________
gdal-dev mailing list
gdal-dev@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev