Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

Thanks for any help Tony

share|improve this question
    
I can't answer my own question for 8 hours for some odd reason. As always things are clearer in the morning. For anyone else doing anything similar the transformations list is here: arcpy.ListTransformations() –  Tony Feb 5 '13 at 8:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.