Package: geosphere 1.5-20

Robert J. Hijmans

geosphere: Spherical Trigonometry

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

Authors:Robert J. Hijmans [cre, aut], Charles Karney [ctb], Ed Williams [ctb], Chris Vennes [ctb]

geosphere_1.5-20.tar.gz
geosphere_1.5-20.zip(r-4.5)geosphere_1.5-20.zip(r-4.4)geosphere_1.5-20.zip(r-4.3)
geosphere_1.5-20.tgz(r-4.4-x86_64)geosphere_1.5-20.tgz(r-4.4-arm64)geosphere_1.5-20.tgz(r-4.3-x86_64)geosphere_1.5-20.tgz(r-4.3-arm64)
geosphere_1.5-20.tar.gz(r-4.5-noble)geosphere_1.5-20.tar.gz(r-4.4-noble)
geosphere_1.5-20.tgz(r-4.4-emscripten)geosphere_1.5-20.tgz(r-4.3-emscripten)
geosphere.pdf |geosphere.html
geosphere/json (API)

# Install 'geosphere' in R:
install.packages('geosphere', repos = c('https://rspatial.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rspatial/geosphere/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • merc - World countries
  • wrld - World countries

On CRAN:

46 exports 34 stars 13.68 score 3 dependencies 106 dependents 112 mentions 4.9k scripts 36.3k downloads

Last updated 11 days agofrom:b215d4e569. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 03 2024
R-4.5-win-x86_64OKOct 03 2024
R-4.5-linux-x86_64OKOct 03 2024
R-4.4-win-x86_64OKOct 03 2024
R-4.4-mac-x86_64OKOct 03 2024
R-4.4-mac-aarch64OKOct 03 2024
R-4.3-win-x86_64OKOct 03 2024
R-4.3-mac-x86_64OKOct 03 2024
R-4.3-mac-aarch64OKOct 03 2024

Exports:alongTrackDistanceantipodalantipodeareaPolygonbearingbearingRhumbcentroiddaylengthdestPointdestPointRhumbdist2gcdist2LinedistCosinedistGeodistHaversinedistmdistMeeusdistRhumbdistVincentyEllipsoiddistVincentySpherefinalBearinggcIntermediategcIntersectgcIntersectBearinggcLatgcLongcMaxLatgeodesicgeodesic_inversegeomeangreatCirclegreatCircleBearinghorizonlengthLinemakeLinemakePolymercatormidPointonGreatCircleOSGBperimeterplotArrowsrandomCoordinatesrefEllipsoidsregularCoordinatesspan

Dependencies:latticeRcppsp

Introduction to the geosphere package

Rendered fromgeosphere.Rnwusingutils::Sweaveon Oct 03 2024.

Last update: 2018-08-20
Started: 2018-08-20

Readme and manuals

Help Manual

Help pageTopics
Geospheregeosphere-package geosphere
Along Track DistancealongTrackDistance
Antipodesantipodal antipode
Area of a longitude/latitude polygonareaPolygon areaPolygon,data.frame-method areaPolygon,matrix-method areaPolygon,SpatialPolygons-method
Direction of travelbearing
Rhumbline directionbearingRhumb
Centroid of spherical polygonscentroid centroid,data.frame-method centroid,matrix-method centroid,SpatialPolygons-method
Daylengthdaylength
Destination given bearing (direction) and distancedestPoint
Destination along a rhumb linedestPointRhumb
Cross Track Distancedist2gc
Distance between points and lines or the border of polygons.dist2Line
'Law of cosines' great circle distancedistCosine
Distance on an ellipsoid (the geodesic)distGeo
'Haversine' great circle distancedistHaversine
Distance matrixdistm
'Meeus' great circle distancedistMeeus
Distance along a rhumb linedistRhumb
'Vincenty' (ellipsoid) great circle distancedistVincentyEllipsoid
'Vincenty' (sphere) great circle distancedistVincentySphere
Final directionfinalBearing
Intersections of two great circlesgcIntersect
Intersections of two great circlesgcIntersectBearing
Latitude on a Great CirclegcLat
Longitude on a Great CirclegcLon
Highest latitude on a great circlegcMaxLat
geodesic and inverse geodesic problemgeodesic geodesic_inverse
Mean location of sperhical coordinatesgeomean
Great circlegreatCircle
Great circlegreatCircleBearing
Distance to the horizonhorizon
Intermediate points on a great circle (sphere)gcIntermediate
Length of lineslengthLine
Add vertices to a polygon or linemakeLine makePoly
Mercator projectionmercator
Mid-pointmidPoint
Is a point on a given great circle?onGreatCircle
Ordnance Survey for Great Britain grid reference systemOSGB
Compute the perimeter of a longitude/latitude polygonperimeter perimeter,data.frame-method perimeter,matrix-method perimeter,SpatialLines-method perimeter,SpatialPolygons-method
PlotplotArrows
Random or regularly distributed coordinates on the globerandomCoordinates regularCoordinates
Reference ellipsoidsrefEllipsoids
Span of polygonsspan span,matrix-method span,SpatialPolygons-method
World countriesmerc wrld