Package: geosphere 1.6-7

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.6-7.tar.gz
geosphere_1.6-7.zip(r-4.7)geosphere_1.6-7.zip(r-4.6)geosphere_1.6-7.zip(r-4.5)
geosphere_1.6-7.tgz(r-4.6-x86_64)geosphere_1.6-7.tgz(r-4.6-arm64)geosphere_1.6-7.tgz(r-4.5-x86_64)geosphere_1.6-7.tgz(r-4.5-arm64)
geosphere_1.6-7.tar.gz(r-4.7-arm64)geosphere_1.6-7.tar.gz(r-4.7-x86_64)geosphere_1.6-7.tar.gz(r-4.6-arm64)geosphere_1.6-7.tar.gz(r-4.6-x86_64)
geosphere_1.6-7.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
geosphere/json (API)

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

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:

Conda:

cpp

13.62 score 41 stars 118 packages 7.8k scripts 36k downloads 112 mentions 46 exports 1 dependencies

Last updated from:614c1e525a. Checks:11 WARNING, 1 ERROR, 1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING163
linux-devel-x86_64WARNING139
source / vignettesERROR3147
linux-release-arm64WARNING141
linux-release-x86_64WARNING137
macos-release-arm64WARNING91
macos-release-x86_64WARNING339
macos-oldrel-arm64WARNING156
macos-oldrel-x86_64WARNING220
windows-develWARNING136
windows-releaseWARNING139
windows-oldrelWARNING152
wasm-releaseOK117

Exports:alongTrackDistanceantipodalantipodeareaPolygonbearingbearingRhumbcentroiddaylengthdestPointdestPointRhumbdist2gcdist2LinedistCosinedistGeodistHaversinedistmdistMeeusdistRhumbdistVincentyEllipsoiddistVincentySpherefinalBearinggcIntermediategcIntersectgcIntersectBearinggcLatgcLongcMaxLatgeodesicgeodesic_inversegeomeangreatCirclegreatCircleBearinghorizonlengthLinemakeLinemakePolymercatormidPointonGreatCircleOSGBperimeterplotArrowsrandomCoordinatesrefEllipsoidsregularCoordinatesspan

Dependencies:Rcpp

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,sf-method areaPolygon,SpatialPolygons-method areaPolygon,SpatVector-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,sf-method span,SpatialPolygons-method span,SpatVector-method
World countriesmerc wrld