Learn R Programming

⚠️There's a newer version (1.5-20) of this package.Take me there.

geosphere (version 1.5-18)

Spherical Trigonometry

Description

Spherical trigonometry for geographic applications. That is, compute distances and related measures for angular (longitude/latitude) locations.

Copy Link

Version

Install

install.packages('geosphere')

Monthly Downloads

35,946

Version

1.5-18

License

GPL (>= 3)

Maintainer

Last Published

November 15th, 2022

Functions in geosphere (1.5-18)

distm

Distance matrix
distCosine

'Law of cosines' great circle distance
distHaversine

'Haversine' great circle distance
dist2gc

Cross Track Distance
distVincentySphere

'Vincenty' (sphere) great circle distance
distRhumb

Distance along a rhumb line
distVincentyEllipsoid

'Vincenty' (ellipsoid) great circle distance
distMeeus

'Meeus' great circle distance
distGeo

Distance on an ellipsoid (the geodesic)
gcIntersectBearing

Intersections of two great circles
finalBearing

Final direction
dist2Line

Distance between points and lines or the border of polygons.
gcLat

Latitude on a Great Circle
geosphere-package

Geosphere
horizon

Distance to the horizon
refEllipsoids

Reference ellipsoids
greatCircleBearing

Great circle
gcIntersect

Intersections of two great circles
randomCoordinates

Random or regularly distributed coordinates on the globe
makePoly

Add vertices to a polygon or line
onGreatCircle

Is a point on a given great circle?
intermediate

Intermediate points on a great circle (sphere)
gcLon

Longitude on a Great Circle
gcMaxLat

Highest latitude on a great circle
midPoint

Mid-point
mercator

Mercator projection
lengthLine

Length of lines
greatCircle

Great circle
geodesic

geodesic and inverse geodesic problem
geomean

Mean location of sperhical coordinates
plotArrows

Plot
perimeter

Compute the perimeter of a longitude/latitude polygon
span

Span of polygons
bearing

Direction of travel
alongTrackDistance

Along Track Distance
antipode

Antipodes
daylength

Daylength
bearingRhumb

Rhumbline direction
centroid

Centroid of spherical polygons
wrld

World countries
areaPolygon

Area of a longitude/latitude polygon
destPoint

Destination given bearing (direction) and distance
destPointRhumb

Destination along a rhumb line