Learn R Programming

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

geosphere (version 1.5-14)

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

28,469

Version

1.5-14

License

GPL (>= 3)

Maintainer

Robert Hijmans

Last Published

October 13th, 2021

Functions in geosphere (1.5-14)

destPointRhumb

Destination along a rhumb line
wrld

World countries
destPoint

Destination given bearing (direction) and distance
bearingRhumb

Rhumbline direction
centroid

Centroid of spherical polygons
daylength

Daylength
bearing

Direction of travel
antipode

Antipodes
areaPolygon

Area of a longitude/latitude polygon
alongTrackDistance

Along Track Distance
distHaversine

'Haversine' great circle distance
distCosine

'Law of cosines' great circle distance
distGeo

Distance on an ellipsoid (the geodesic)
gcLon

Longitude on a Great Circle
dist2gc

Cross Track Distance
gcMaxLat

Highest latitude on a great circle
dist2Line

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

Great circle
geosphere-package

Geosphere
distMeeus

'Meeus' great circle distance
distRhumb

Distance along a rhumb line
geodesic

geodesic and inverse geodesic problem
makePoly

Add vertices to a polygon or line
lengthLine

Length of lines
greatCircleBearing

Great circle
intermediate

Intermediate points on a great circle (sphere)
horizon

Distance to the horizon
mercator

Mercator projection
geomean

Mean location of sperhical coordinates
randomCoordinates

Random or regularly distributed coordinates on the globe
distVincentyEllipsoid

'Vincenty' (ellipsoid) great circle distance
refEllipsoids

Reference ellipsoids
distVincentySphere

'Vincenty' (sphere) great circle distance
gcIntersectBearing

Intersections of two great circles
midPoint

Mid-point
onGreatCircle

Is a point on a given great circle?
gcLat

Latitude on a Great Circle
gcIntersect

Intersections of two great circles
distm

Distance matrix
finalBearing

Final direction
perimeter

Compute the perimeter of a longitude/latitude polygon
plotArrows

Plot
span

Span of polygons