Projecting single pointGeometry object with ArcPy?
@GeoJohn: I don't know if you've solved this, but the result of the pointGeometry.projectAs("WGS 1984")
needs to be assigned to a result variable (e.g., projectedPointGeometry = pointGeometry.projectAs("WGS 1984")
). The original pointGeometry
is unchanged by the projectAs
method. The result variable should have the location in decimal degrees. I need to do a similar thing, and was able to figure it out based on your code, so thank you for posting this question.
for transforming form Swiss-LV95 to WGS84 I currently use
arcpy.PointGeometry(arcpy.Point(swissX,swissY),arcpy.SpatialReference(2056)).projectAs(arcpy.SpatialReference(4326))
with ArcGIS 10.1