Hi Everyone,
I am using the search cursor. I want to change the spatial reference on the fly. I believe this can be done with spatial_reference.
the input shapefile is in UTM 19N. I want the extents to be in DD. I know I could reproject, but I want to get better at python. What am I doing wrong?
I used the python window in ArcGIS.
Thank you,
Luke Kaim
Thank you
Luke Kaim (SIE)
Lucas.Kaim@maine.edu
(914)263-7866
"Don’t complain. Just work harder" (Randy Pausch).
I am using the search cursor. I want to change the spatial reference on the fly. I believe this can be done with spatial_reference.
the input shapefile is in UTM 19N. I want the extents to be in DD. I know I could reproject, but I want to get better at python. What am I doing wrong?
I used the python window in ArcGIS.
Code:
sCur = arcpy.SearchCursor("boundingbox1", "", "CCS_WGS_1984")
... for row in sCur:
... geom = row.shape
... ext = geom.extent # or row.Shape.extent
... print "Extent of feature:\nXMin: %f, YMin: %f, \nXMax: %f, YMax: %f" % \
... (ext.XMin,ext.YMin,ext.XMax,ext.YMax)Luke Kaim
Thank you
Luke Kaim (SIE)
Lucas.Kaim@maine.edu
(914)263-7866
"Don’t complain. Just work harder" (Randy Pausch).