compute_dist_to_polygon: compute spherical distance to a line/polygon

Description Usage Arguments Value

Description

This function provides a convienant wrapper to dist2Line. Per that documentation, this measures the distance from

Usage

1
compute_dist_to_polygon(latitude, longitude, poly_latitude, poly_longitude)

Arguments

latitude1

numeric vector of latitudes [degrees]

longitude1

numeric vector of longitudes [degrees] corresponding with latitude1

latitude2

numeric vector of latitudes [degrees] defining a polygon (or line)

longitude2

numeric vector of longitudes [degrees] corresponding with latitude2

latitude3

numeric vector of latitudes [degrees]

longitude3

numeric vector of longitudes [degrees] corresponding with latitude3

Value

numeric, distance along path in nautical miles


mitre/earthtools documentation built on May 21, 2019, 1:19 p.m.