Saturday, 2 January 2016

arcgis desktop - ArcPy 10.1 PointGeometry.projectAs()



I'm trying to reproject an X,Y passed in from an Add-in.


So far this works fine:


pointGeometry = arcpy.PointGeometry(arcpy.Point(x,y),srIn,False, False)
projectedPoint = pointGeometry.projectAs(srOut)

Based on projectAs (spatial_reference, {transformation_name})


I should be able to pass in the transformation_name, but I have no idea where a list of constants may be (says it's a string)?


In .NET I would use 'OSGB1936_To_WGS1984_2', for the transformation I am after.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...