This class represents a latitude and longitude on the Earth's surface.
Most calculations in S2 convert this to a as_s2_point()
, which is a
unit vector representation of this value.
Usage
s2_lnglat(lng, lat)
as_s2_lnglat(x, ...)
# Default S3 method
as_s2_lnglat(x, ...)
# S3 method for class 'wk_xy'
as_s2_lnglat(x, ...)
# S3 method for class 'wk_xyz'
as_s2_lnglat(x, ...)
Examples
s2_lnglat(45, -64) # Halifax, Nova Scotia!
#> <wk_xy[1] with CRS=OGC:CRS84>
#> [1] (45 -64)
as.data.frame(s2_lnglat(45, -64))
#> x y
#> 1 45 -64