Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'd like to check if a point feature class is placed on a line feature using python in ArcGIS 10.0. I have created a set of point features and placed them directly on a group of line features at predetermined points using the snap tool.

I want to iterate through each point feature, checking if the point feature is coincident with any of the line features. If a result is found then i'd like to extract a field value from the line feature and insert into a field in the attribute table of the corresponding point feature that the line feature is coincident with.

Basically i am trying to establish a primary key, foreign key relationship between 2 feature classes but i have so many records in the attribute tables that it would be impossible to do this one by one. I just need some pointers to get going with the python script, the part that i am struggling to conceptualize the most is how to check for spatial coincidence between a point and line feature.

share|improve this question
    
What GIS application are you currently using? or want to use? –  RyanDalton Apr 10 '13 at 22:50
6  
This is what is commonly referred to as a spatial join. Have you considered using the Spatial Join tool in ArcGIS for example? –  blah238 Apr 10 '13 at 23:05
1  
You are right about the spatial join....thanks a lot. Now i have the tools to start writing my first python script in ArcGIS –  IQ_HiGh Apr 11 '13 at 1:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.