Learn R Programming

geosphere (version 1.2.1)

gcIntermediate: Intermediate points on a great circle

Description

Get intermediate points on a Great Circle inbetween the two points used to define the Great Circle

Usage

gcIntermediate(p1, p2, n=50)

Arguments

p1
Longitude/latitude of a single point, in degrees; can be a vector of two numbers, a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPoints* object
p2
As above
n
The requested number of points on the Great Circle

Value

  • a matrix of points

References

http://williams.best.vwh.net/avform.htm#Intermediate

Examples

Run this code
gcIntermediate(c(5,52), c(-120,37), n=10)

Run the code above in your browser using DataLab