Hi all,
Thank you for your suggestions on this! I'm happy to report that this has since been been implemented with the PointGeometry.toCoordString(<notation>) method, see https://pro.arcgis.com/en/pro-app/2.6/arcpy/classes/pointgeometry.htm.
The coordinate string can be turned back into a PointGeometry with the arcpy.fromCoordString(<string>, <notation>) function.
For example:
# Create a point in WGS84 point_wgs = arcpy.PointGeometry( arcpy.Point(-93.109591203, 42.724789892), arcpy.SpatialReference(4326) ) # Check result print(point_wgs.spatialReference.factoryCode) print(point_wgs[0]) # Get the coordinates in UTM utm_coords = point_wgs.toCoordString("UTM") # Create a new point from UTM coordinates point_utm = arcpy.FromCoordString(utm_coords, "UTM") # Check result (note, FromCoordString output always in WGS84) print(point_utm.spatialReference.factoryCode) print(point_utm[0])
Sign in to post, follow content, and more. New here? Register for free.