The Esri Community
Services & Programs
GeoNet Resource Hub
to create and rate content, and to follow, bookmark, and share content with other members.
Add a function for projection of coordinate in arcgisscripting and arcpy
Idea created by
on Sep 2, 2010
6 votes up
2 votes down
Add a function for projection on the fly for coordinates in a python script
This content has been marked as final.
Show 2 comments
(Required, will not be published)
Nov 22, 2010 1:59 PM
The spatial reference optional argument on the cursors support this capability i.e. your feature class will be opened projected. Another possibility is use of the OutputCoordinateSystem environment setting which will (in most cases) perform a projection as part of the tool operation. Note that this is specifically for projection handling and not for datum transformation YMMV.
Show 0 Likes
May 25, 2014 12:45 PM
I am porting one of my Python apps from a pure open source GIS solution into an arcpy-based solution. I use python dictionaries to track coordinates and attributes and to retrieve and manipulate them until all the data is read. I must transform all the coordinates one-by-one to a common datum in order to make decisions like maximum X, etc. My software is getting unbelievably complicated trying to work around arcpy's lack of a simple function to accomplish a single-point transformation. I see other developers on the web having complained about this for many years. I will resent having to bundle gdal/ogr/proj4 files or corpscon files into my solution. It shouldn't be so complicated.
Show 0 Likes
Retrieving data ...
Edit CSS in ArcGIS Open Data 2.0
Is there a method to draw an arc?
Python software to go with ArcGIS ?
Choosing a Python IDE for ArcGIS in 2018
Biding Time: ArcPy Geometry Constructors