Create PolyLine from 2 centroids in 1 row
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have a table, and on each row I calculate 2 different centroids. I would like to draw a line between them, but I'm not sure how to work between columns instead of down the rows.
I would like to end up with each row having their own PolyLine.
I'm assuming this will require some cross tab magic but I can't quite get it to work.
Solved! Go to Solution.
- Labels:
- Spatial Analysis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @StephenMack,
How about using a Formula tool with a new spatialobj output, My_Line:
ST_CreateLine([SpatialObj],[SpatialObj2])
Cheers,
Mark
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
As usual the solution ends up being surprisingly simple and beautiful. Much appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Just for my own learning this same thing can be done with the poly-build tool correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In this case I don't think so.
Poly-Build tool will create a line or polygon based on spatial data in a single column. I was looking at creating a line between centroids in 2 different columns in the same row.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Ahh nice thank you!