Hi,
in version 1.8.1.13915 if I have a DEM in
COMPD_CS["NAD83 / Alberta 3TM ref merid 114 W + GSD95",PROJCS["NAD83 / Alberta 3TM ref merid 114 W",GEOGCS["NAD83",DATUM["North American Datum 1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9102"]],AUTHORITY["EPSG","4269"]],PROJECTION["Transverse_Mercator",AUTHORITY["EPSG","9807"]],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-114],PARAMETER["scale_factor",0.9999],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","3776"]],VERT_CS["NAD83 (EPSG::4269) to GSD95",VERT_DATUM["NAD83 (EPSG::4269) to GSD95",2005],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]]
and i whant to export it to TMS palette color in global mercator style there is not problem.
but now in latest 1.8.4.14856 it told me "Error: Vertical datum out of range". We can't reproject on the fly anymore ?
my little code snippet
projectionDSM = Metashape.OrthoProjection()
projectionDSM.type = Metashape.OrthoProjection.Type.Planar
projectionDSM.crs = Metashape.CoordinateSystem('EPSG::3857')
# export DEM raster palette
if kwargs['formatOrthoTiles'] == "TMS" :
task = Metashape.Tasks.ExportRaster()
task.description = 'DSM'
task.title = 'DSM'
task.format = Metashape.RasterFormat.RasterFormatTMS
task.image_format = Metashape.ImageFormat.ImageFormatPNG
task.source_data = Metashape.DataSource.ElevationData
task.raster_transform = Metashape.RasterTransformType.RasterTransformPalette
task.projection = projectionDSM
task.global_profile = True
task.save_alpha = True
task.white_background = False
task.path = pathDemExport
tasks.append(task)
Thanks in advance for any help
Edit: if I export in tif with 3857 it's ok.
Edit2: same problem in GUI