Hi everybody,
I am trying to make python tool in ArcGIS desktop, where user can select row in e.g. excel table, that has written X and Y in next format X: 44.919644, Y: 41.691083. But i am using Meters (Projected Coordinate System: WGS_1984_UTM_Zone_38N, Geographic Coordinate System: GCS_WGS_1984
Datum: D_WGS_1984) in my database and when i insert this points it goes somewhere at the edge of the world. I tried to add spatial_reference like this:
arcpy.da.SearchCursor("Watersupply_GWP.DBO.%GIS_ACCIDENTS",["PointCoordinateX","PointCoordinateY"], None, spatial_reference = 32638)as cursor:
but i get same result. One problem is that, i do not know Datum, these coordinates taken by Android tablet, so i have only coordinates and could not use projectAs() method.
Any help, idea appreciated.
Solved! Go to Solution.
your table has no geometry, and you cannot apply convertion directly to fields within table. if you are using desktop and arcpy 2.7 you could do sth like that:
your table has no geometry, and you cannot apply convertion directly to fields within table. if you are using desktop and arcpy 2.7 you could do sth like that:
Thank you Tomasz, you save me ❤️ I simply integrated your code in my code and now it works fine. Thanks