[GRASS-user] converting contour lines to points

OK, here is mine :wink:

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.
I just want the points that are already there, only get rid
of the connecting arcs!
I need to conserve the attribute data in the output map.
Is this somehow possible?

Thanks,

Ben

--
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

Benjamin Ducke wrote:

OK, here is mine :wink:

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

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?

Maciek

Well, this seems to work.
Thanks, Maciek.

Maciej Sieczka wrote:

Benjamin Ducke wrote:

OK, here is mine :wink:

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

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?

Maciek

--
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

> 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

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