[GRASS-dev] vector line coordinates

Yann Chemin ychemin at gmail.com
Wed May 14 03:54:03 PDT 2014


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


-- 
----


More information about the grass-dev mailing list