[R-sig-Geo] Bearing angle of UTM projected SpatialLines

Eduardo Diez eduardodiez at gmx.com
Wed May 25 05:15:27 CEST 2016


Dear everyone,
I'm used to calculating the compass angles (clockwise from due North) of
line features projected in UTM using the tool Linear Directional Mean
<http://resources.esri.com/help/9.3/arcgisengine/java/gp_toolref/spatial_statistics_tools/how_linear_directional_mean_spatial_statistics_works.htm>
from ArcGIS.
I could find functions for performing a similar task but taking Origin ->
Destination points and only in Lat/Lon (geographic coordinates) namely:
geosphere::bearing and maptools::gzAzimuth. (Somehow they give different
results for the same set of points: around 0.05 degrees, maybe because of
the trigonometry)
Because of the nature of my work it has to be in UTM.
Perhaps someone skillfull in trigonometry can figure it out but i'm not the
case.
Is there a way to do this in R?

Thanks,
Eduardo

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list