1

I have a selected points and I want the syntax for the finding the coordinates for the point data.

import arcpy

arcpy.env.workspace = "C:/Users/Desktop"

in_point2 = 'C:/Users/Dallas_Property_Points_Part-3.shp'

field_nm = 'Remarks'
value = 'Move'
selection = "{field_nm} = '{value}'".format(field_nm=field_nm, value=value)
arcpy.SelectLayerByAttribute_management(in_point2, "NEW_SELECTION", selection)
3
  • Obtain how? Do you want to save them in a new table or just print them?
    – BERA
    Jul 1 at 9:08
  • What happens when you run the code that you've presented?
    – PolyGeo
    Jul 1 at 9:33
  • I have to calculate the coordinates of the Point_2 file and check with the coordinates of the raw point_1 file and export the points that arent 'Moved'
    – Newbie
    Jul 1 at 10:21

1 Answer 1

3

A simpler solution is to add the XY directly to the dataset. You appear to be using an older version of ArcMap so suggest you explore How To: Calculate latitude and longitude for point features using the calculate geometry tool.

If you are using ArcPro you can use the Add Geometry tool instead

3
  • thank you! No i am using ArcPro
    – Newbie
    Jul 1 at 10:19
  • I've edited your question and changed the tags from arcmap and arcgis-10.2 to arcgis pro.
    – BERA
    Jul 1 at 10:27
  • 1
    Thank you! Bera for that
    – Newbie
    Jul 1 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.