Calculate Things
Calculate distance and/or orientation.
.calcDist(polys) .calcOrientation(polys)
polys
: data.frame
-- valid PolySet
with 'projection'
attribute.calcdist
: Equatorial radius 6,378.14 km; Polar radius 6,356.78 km; Mean radius 6,371.3 km
.calcOrientation
: Calls C code 'calcOrientation'
using .C()
.
.calcdist
: distance vector (distances between each point)
.calcOrientation
: data frame with 'orientation'
column (-1 when counter-clockwise; 0 when N/A; +1 when clockwise) or NULL if no rows in output
Nicholas M. Boers, Software Engineer, Jobber, Edmonton AB
Maintainer: Rowan Haigh, Program Head -- Offshore Rockfish
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
locus opus: Remote office, Vancouver BC
Last modified Rd: 2024-09-03
In package PBSmapping
:
calcLength
, placeHoles
, thickenPolys
Useful links