Hi Metashapers,
when I export my orthomosaic to EPSG:5514 Krovak, gdalinfo shows the georeference saved in the output GeoTIFF file as ENGCRS instead of PROJCS and it's missing DATUM, PRIMEM, UNIT, etc. This also creates warnings and errors in QGIS when cropping or reprojecting.
C:\data>gdalinfo test1-ortho-5514.tif
Driver: GTiff/GeoTIFF
Warning 1: The definition of projected CRS EPSG:5514 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
Files: test1-ortho-5514.tif
Size is 9915, 7307
Coordinate System is:
ENGCRS["S-JTSK / Krovak East North",
EDATUM[""],
CS[Cartesian,2],
AXIS["easting",east,
ORDER[1],
LENGTHUNIT["metre",1]],
AXIS["northing",north,
ORDER[2],
LENGTHUNIT["metre",1]],
ID["EPSG",5514]]
However, Metashape WKT for EPSG:5514 seems all good:
Metashape.CoordinateSystem('EPSG::5514').wkt
'PROJCS["S-JTSK / Krovak East North",GEOGCS["S-JTSK",DATUM["System of the Unified Trigonometrical Cadastral Network",SPHEROID["Bessel 1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],TOWGS84[589,76,480,0,0,0,0],AUTHORITY["EPSG","6156"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9102"]],AUTHORITY["EPSG","4156"]],PROJECTION["Krovak_North_Orientated",AUTHORITY["EPSG","1041"]],PARAMETER["latitude_of_center",49.5],PARAMETER["central_meridian",24.8333333333333],PARAMETER["azimuth",30.28813975277779],PARAMETER["pseudo_standard_parallel_1",78.5],PARAMETER["scale_factor",0.9999],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","5514"]]'
Is there something wrong with Metashape export to EPSG:5514 or am I missing something?
Cheers
Martin