1

I have a table in which each row has two columns representing the objectID of two different point features in the Map. There are thousands of such rows. How do I connect the each of these two points with a line?

I don't want the points of two different rows connected to each other.

1 Answer 1

1

Use this tool Points to Line (Data Management). The "Line Field" option is where you would input the ObjectID that you want lines made for.

5
  • when i use that tool, I get an error, "Not enough points to create a line for value ##"
    – pnkjmndhl
    Commented Dec 29, 2015 at 18:34
  • Yea I just noticed in your question the values were in 2 different columns. What you could do is copy the table, and join the two similar tables together. Add a single column for the LINE_ID, then calculate the values for each point into this new field. Use that field for the input
    – Maksim
    Commented Dec 29, 2015 at 18:46
  • I think, this is still not the right way because I don't want the points of two different rows connected to each other with a line. I only want the two points of a row connected to each other.
    – pnkjmndhl
    Commented Dec 29, 2015 at 19:12
  • Yea thats what im thinking. Each row has 2 values, you need those 2 values to be in 1 column. So for ObjectID 1 you have 2 columns of points. Copy your table and merge together, so now you have 2 copies of ObjectID 1. Create a new field, and for each ObjectID 1 (you have 2 now) calculate each value into the new field.
    – Maksim
    Commented Dec 29, 2015 at 19:16
  • I still couldn't do it. Could you be more detailed in your instructions, please.
    – pnkjmndhl
    Commented Jan 4, 2016 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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