How to take attributes from end ponits to a line

3307
8
Jump to solution
11-17-2015 08:09 AM
DanHoralík
New Contributor II

Hello, I have two shapefiles. The first one is a point shapefile that contains a lot of information in the attribute table.

The second one is a line shapefile. It contains about 50 lines. Every line starts at a different point (from the first shapefile) and all lines and in one place.

I need two take atrributes from the point shapefile and add them into the line shapefile. Is this possible?

0 Kudos
1 Solution
8 Replies
DanHoralík
New Contributor II

Thanks for advice. For now it doesn't work, because it looks like my shapefiles are correupted in some way. I'll try your advice in a while.

0 Kudos
DanPatterson_Retired
MVP Emeritus

assuming they are all in the same coordinate system, try running a repair geometry Repair Geometry—Help | ArcGIS for Desktop

on the inputs to correct any errors...read the link before using

0 Kudos
DanHoralík
New Contributor II

OK, I will check also that and then retry the whole thing.

0 Kudos
DanHoralík
New Contributor II

Thank you, I think it will work, but first I must clean the mess that I have in my data. Thanks

0 Kudos
DanPatterson_Retired
MVP Emeritus

Are you trying to create a spider diagram from a central point to other points?  If so, one of the options in the Spanning Tree toolset will be useful

0 Kudos
DanHoralík
New Contributor II

I had a central city, from which I created straight lines to all other surrounding cities. I used "Construct sight lines" function for this, but the newly-created lines didn't inherit attributes from the surrounding cities point shapefile. Then I used "Spatial join" as you advised and everything is fine now. I just had to clean the mess in my data and it worked. Thanks and have a nice day!

DanPatterson_Retired
MVP Emeritus

glad it worked, and for the update

0 Kudos