Hi There,
I have been looking for a tool that could plot the points using eastings and northings from the attributes in the table of an already exisiting shapefile. These points have been moved from their actual positions so I need to replot them using the xy coordinates in the attribute table. I know that "Add XY data" or something like that extension, but I am looking for a tool that i can use in my model. Hope someone could help out.
ArcGIS tool to plot points using xy coordinates from table
Started by
sidra
, Sep 04 2011 08:10 PM
3 replies to this topic
#1
Posted 04 September 2011 - 08:10 PM
#2
Posted 06 September 2011 - 02:37 AM
Hi,
Using Python you could manually read the attributes and create a new shape file, or you could use the AddXY_management tool, right?
Using Python you could manually read the attributes and create a new shape file, or you could use the AddXY_management tool, right?
#3
Posted 08 September 2011 - 03:15 PM
Hi There,
I have been looking for a tool that could plot the points using eastings and northings from the attributes in the table of an already exisiting shapefile. These points have been moved from their actual positions so I need to replot them using the xy coordinates in the attribute table. I know that "Add XY data" or something like that extension, but I am looking for a tool that i can use in my model. Hope someone could help out.
If using 10 the python script below works. Right click on the shape field and calculate values, select python and use the following code:
def pointMove(shape, lat, long):
point = shape.getPart(0)
point.X = long
point.Y = lat
return point
__esri_field_calculator_splitter__
pointMove(!SHAPE!, !Lat!, !Long!)
This will move all points back to their original x, y coordinates or move only the selected rows, whichever you want.
#4
Posted 19 September 2011 - 06:10 PM
Thanks a lot for the help ...will try the script
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account
Australia
Back to top
Sweden
United States








