I am reading a shapefile through ArcPy. The shapefile has both geographical coordinate system and projected coordinate system. When I try to get the coordinates of a point geometry in the shapefile, the result is always the point's longitude and latitude.
How could I get its projected coordinates?
The code are as follow:
sr = arcpy.Describe(shp).spatialReference print (sr.name) with arcpy.da.SearchCursor(shp, ["SHAPE@"])as lines: for line in lines: s = line.getPart(0) for p in s: print(p.X)
WGS_1984_UTM_Zone_18N -72.5049105 -72.505729 -72.5058427 ...
It looks the shapefile has a projected coordinate system. I am wondering why the points are still recorded with its longitude and latitude.