[GRASS-dev] v.distance in lat/lon?

Hamish hamish_nospam at yahoo.com
Fri Apr 20 04:33:51 EDT 2007


Hi,

anyone know if "v.distance upload=dist" is safe for lat/lon locations?

[v.distance/main.c line 470]
tseg = Vect_line_distance ( TPoints, FPoints->x[0], FPoints->y[0], 0, 0, 
	&tmp_tx, &tmp_ty, NULL, &tmp_dist, NULL, &tmp_talong);

>From looking at
  lib/vector/Vlib/line.c  Vect_line_distance()
and
  lib/vector/diglib/line_dist.c  dig_distance2_point_to_line()

I take it is assuming euclidian space and the results are measured in
(bogus) degrees. (??)


maybe if(LL){Vect_line_geodesic_length();} else {V_l_d();} helps?


thanks,
Hamish




More information about the grass-dev mailing list