1
Python and Java API / How do I define 2 Coordinate Systems - for the Chunk and the imported References
« on: March 02, 2023, 02:15:00 PM »
Hello there,
in a general workflow I want to add some Reference points to align my dense point cloud to (Metashape Pro Version 1.8.4). The problem is that I want to set the chunks coordinate system to EPSG::4326 and the Markers reference to EPSG::32632 (attached Screenshot, rightclick on chunk --> "Reference settings..."). Now, I am able to define a desired Coordinate System for the chunk (1) and also during the argument "chunk.importReference(...)" (2). Both arguments work, but of course always for all of those three settings from the screenshot. I am not familiar using python scripts in Metashape, and I didn´t find a solution here or in the Python Reference pdf to "subdivide" the "Metashape.CoordinateSystem" argument - can someone help me with new ideas?
(1)
(2)
Cheers,
faima
in a general workflow I want to add some Reference points to align my dense point cloud to (Metashape Pro Version 1.8.4). The problem is that I want to set the chunks coordinate system to EPSG::4326 and the Markers reference to EPSG::32632 (attached Screenshot, rightclick on chunk --> "Reference settings..."). Now, I am able to define a desired Coordinate System for the chunk (1) and also during the argument "chunk.importReference(...)" (2). Both arguments work, but of course always for all of those three settings from the screenshot. I am not familiar using python scripts in Metashape, and I didn´t find a solution here or in the Python Reference pdf to "subdivide" the "Metashape.CoordinateSystem" argument - can someone help me with new ideas?
(1)
Code: [Select]
crs = Metashape.app.getCoordinateSystem("Select Coordinate System of Chunk", doc.chunk.crs)
doc.chunk.crs = crs
(2)
Code: [Select]
chunk.importReference(path, format=Metashape.ReferenceFormatCSV, columns='nxyz', delimiter=',', crs=Metashape.CoordinateSystem("EPSG::32632"), create_markers=True)
Cheers,
faima