1

I calculated a trail up mountain using least cost path analysis. I converted the raster trail to a polyline using the raster to polyline. I then used the feature vertices to points (input being the polyline), and i then used the extract multivalues to points where my 2 rasters were slope and elevation for the trail points. SO what I have now is a points layer with unique ids that have slope and elevation data for each record. I can drape the points layer over my elevation DEM in ArcScene but I want to be able display the trail with a polyline over the DEM. I know you can convert points to line but the output is just one id for the line so I cannot accurately display the trail in a line.

1 Answer 1

1

The help file for the feature vertices to points tool states that all original fields are kept. If the unique ID in your polyline happens to be the FID or OBJECTID then that will be lost.

So a simple solution is to add a new field call it "PID" for polyline ID and copy over the FID/OBJECTID in your polyline dataset before you explode it into the individual vertices. That field will still be there when you convert points to line and you can set the LINE_FIELD parameter to PID.

4
  • 1
    Split line at points. You can either assign points to start end or interpolate line 3d. You can calc slope etc from 3d segments
    – FelixIP
    Apr 8, 2016 at 21:38
  • split line at points worked
    – ziggy
    Apr 8, 2016 at 21:42
  • Hornbydd I wasnt able to discern what you meant
    – ziggy
    Apr 8, 2016 at 21:42
  • From your description you say the output of points to line is just one id, you've lost the the unique ID that the polyline had. By creating another numeric field that should persist when you explode it into its vertices, that ID would then be used to group points by ID back into their original polylines.
    – Hornbydd
    Apr 8, 2016 at 22:32

Your Answer

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

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