[GRASS-user] converting contour lines to points

Hamish hamish_nospam at yahoo.com
Wed Jul 4 23:00:33 EDT 2007


> > Benjamin Ducke wrote:
> >> I would like to break up a map of contour lines into points. Since
> >> contour lines are essentially just a bunch of nodes with arcs
> >> connecting them, I thought it should be straight-forward to
> >> decompose them. However, v.type refuses to do a line->points 
> >> conversion and v.to.points creates new points along the lines
Maciek:
> > Not necessarily; from the manual:
> > "The -v flag is used to digitize points that fall on the line's
> > vertices only. dmax is ignored in this case."
> > 
> > Is that what you need?

Benjamin wrote:
> Well, this seems to work.
> Thanks, Maciek.


> I need to conserve the attribute data in the output map.

v.distance can be used to do that if v.to.points didn't propogate them.


Hamish




More information about the grass-user mailing list