Hello,
I have point Feature, I need to update Point Feature Id to whose touch the Point Feature using Python Script. Kindly request to suggest me.
Regards,
Raj P
The author has tried again on this thread,
https://community.esri.com/thread/167714
Check there before continuing this thread.
Then mark Jake Skinner's reply as the answer for sure. Just use spatial join with any of the optional parameters:
import arcpy arcpy.SpatialJoin_analysis (pointFeatureClass, lineFeatureClass, outputFeatureClass,"JOIN_ONE_TO_MANY", "KEEP_ALL")
I have Point Feature class, In these Point Feature is "GIS_ID" field, SO I need to update the "GIS_ID" values which Line Feature class touch the point feature using Python Script automatically.
Point Feature:
OBJECTID *
Shape *
Gis ID
Point Name
1
Point
3003405A8555
TOWN-1
2
3003405A8556
3
3003405A8558
4
3003405A8561
5
3003405A8564
6
3003405A8565
7
3003405A8573
TOWN-5
8
3003405A8575
Line Feature:
LineName
Polyline
LT
HT
You didn't answer the previous suggestions... does a spatial join not provide the necessary data? If so, they you can simply emulate the script example for spatial join or provide an example of your scripting attempts so far
Helllo,
Line Features is touching the point Feature, So I need to update the PointID to the Line feature attribute table.
If you are trying to see who last edited an item, you may want to look at ArcGIS Help working with edit tracking. To update a point ID field, you could maybe query the last edit date and then increment the ID. But as Luke mentioned, it's hard to know exactly what you are trying to do without a few more details.
Could you maybe elaborate on what you are trying to do? What is touching the point feature? What is the Point Feature ID that you are trying to update? Do you have a completed example in an attribute table that you could share with us?
Hi Raj,
Take a look at using the Spatial Join function.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.