s2_point | R Documentation |
In S2 terminology, a "point" is a 3-dimensional unit vector representation
of an s2_point()
. Internally, all s2 objects are stored as
3-dimensional unit vectors.
s2_point(x, y, z)
s2_point_crs()
as_s2_point(x, ...)
## Default S3 method:
as_s2_point(x, ...)
## S3 method for class 'wk_xy'
as_s2_point(x, ...)
## S3 method for class 'wk_xyz'
as_s2_point(x, ...)
x , y , z |
Vectors of latitude and longitude values in degrees. |
... |
Unused |
An object with class s2_point
point <- s2_lnglat(-64, 45) # Halifax, Nova Scotia!
as_s2_point(point)
as.data.frame(as_s2_point(point))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.