[GRASS-user] converting contour lines to points

Benjamin Ducke benjamin.ducke at ufg.uni-kiel.de
Thu Jul 5 02:14:16 EDT 2007


I think v.to.points worked fine and did transfer the attributes.
However, thanks anyway for pointing out v.distance it's a useful
module that I wasn't aware of.

Ben

Hamish wrote:
>>> 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
> 
> 

-- 
Benjamin Ducke, M.A.
Archäoinformatik
(Archaeoinformation Science)
Institut für Ur- und Frühgeschichte
(Inst. of Prehistoric and Historic Archaeology)
Christian-Albrechts-Universität zu Kiel
Johanna-Mestorf-Straße 2-6
D 24098 Kiel
Germany

Tel.: ++49 (0)431 880-3378 / -3379
Fax : ++49 (0)431 880-7300
www.uni-kiel.de/ufg




More information about the grass-user mailing list