<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi John,<div><br></div><div>You will likely get a more complete answer from others, but you seem to be on the right track with v.drape. From there, you can add a column for cumulative length with v.db.addcol, then run v.to.db with option=length to add a length column to your 3d vector. You might be able to subsample from there.</div><div><br></div><div>Another possibility would be to run v.segment to generate points at your desired length interval for the original vector. Then you could run v.drape on the resulting points file and work from there or somehow pipe the point coordinates into r.profile.</div><div><br></div><div>Good luck,</div><div>John</div><div><br><div><div>On Jul 15, 2010, at 12:25 PM, John Callahan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hopefully a quick question that I'm struggling with. (I'm a long-time GIS user but trying to move my work to GRASS and other FOSS4G.) I'm using GRASS 6.4 RC6 on Windows XP.<br><br>I have a raster grid representing elevation at 2meter resolution. I have a line shapefile representing roads (about 20 roads total). I would like to get ASCII text files of x,y,z at about 1 or 2 meter intervals along each road. Any ides of what I can try?<br>
<br>I thought v.drape might work. This converts my 2D road shapefile to 3D, but I'm not sure where to go from there. And this doesn't help getting 1 or 2 meter intervals. I also tried r.profile but this requires input as a listing of x,y coordinates, not shapefiles. I know there's a step here I'm missing.<br>
<br>- John<br><br clear="all">**************************************************<br>John Callahan, Geographic Information Scientist<br>Delaware Geological Survey, University of Delaware<br>URL: <a href="http://www.dgs.udel.edu/">http://www.dgs.udel.edu</a><br>
**************************************************<br>
_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/grass-user<br></blockquote></div><br></div></body></html>