May I know how to add code content properly in reply or question?
All the code, I pasted into the textbox is automatically stick to left always , lost indent and very ugly.
Have you tried using the Syntax Highlighter?
def projectToWGS(geom): pntObj = arcpy.Point(geom, geom) inSr = arcpy.SpatialReference(28350) #Web Mercator outSr = arcpy.SpatialReference(4326) #GCS_WGS_1984 pntGeom = arcpy.PointGeometry(pntObj, inSr) wgs84PntGeom = pntGeom.projectAs(outSr) return wgs84PntGeom
I don't know what it is.
It is working
For those that want more information on the solution
Code Formatting... the basics++
Retrieving data ...