I'm trying to assign a projection to build the orthomosaic and then export the orthomosaic as a GIS raster, currently the projection is not being picked up by the GIS.
Where am I going wrong?
doc.save(filepath)
chunk = doc.chunk
espgCode = 27700
projectCRS = Metashape.CoordinateSystem("EPSG::" + str(espgCode))
proj = Metashape.OrthoProjection()
proj.crs = projectCRS
chunk.buildOrthomosaic(surface_data=Metashape.DataSource.ModelData, blending_mode=Metashape.MosaicBlending, projection=proj)
chunk.exportRaster(path=ortho_path, image_format=Metashape.ImageFormatJPEG, save_world=True, projection=proj)