[GRASS-dev] vector line coordinates

Hi,

I have a set of faults (lines made from 2 points only)
and my target is to calculate the distance from a city to all of the
faults in the region.

Ideally I would need the location (X,Y) of the mid-point of the line,
but if I can extract the two tipline nodes coordinates, then it is
half-way to it.

v.to.db has option=coor but it does not take type=line

Also, v.type does not convert line to point
v.type input=analysis output=analysis_pts from_type=line to_type=point

Yann

--
----

I somehow missed the v.to.db option:
start: line/boundary starting point coordinates, X,Y or X,Y,Z
end: line/boundary end point coordinates, X,Y or X,Y,Z

On 14/05/2014, Yann Chemin <ychemin@gmail.com> wrote:

Hi,

I have a set of faults (lines made from 2 points only)
and my target is to calculate the distance from a city to all of the
faults in the region.

Ideally I would need the location (X,Y) of the mid-point of the line,
but if I can extract the two tipline nodes coordinates, then it is
half-way to it.

v.to.db has option=coor but it does not take type=line

Also, v.type does not convert line to point
v.type input=analysis output=analysis_pts from_type=line to_type=point

Yann

--
----

--
----