Steps:
- I am loading an aprx from a template, which is in WGS84 spatial reference.
- Then I do some processes.
- Finally, I want to change the MAP's spatial reference (WGS84) to another, which I get from another layer.
Is it possible to do it using arcpy and ArcGIS Pro?
The code is:
aprx = arcpy.mp.ArcGISProject(r"\\ptemplate\project.aprx)
ras= "my_layer.tif"
sr=arcpy.Describe(ras).spatialReference
aprxMap = aprx.listMaps()[0]
How do I change the Spatial Reference to _sr_
?
aprx.saveACopy(r"\\my_projects\project_out.aprx)