File: s2_lnglat.Rd

package info (click to toggle)
r-cran-s2 1.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,540 kB
  • sloc: cpp: 124,506; ansic: 2,639; pascal: 1,495; python: 354; sh: 139; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s2-lnglat.R
\name{s2_lnglat}
\alias{s2_lnglat}
\alias{as_s2_lnglat}
\alias{as_s2_lnglat.default}
\alias{as_s2_lnglat.wk_xy}
\alias{as_s2_lnglat.wk_xyz}
\title{Create an S2 LngLat Vector}
\usage{
s2_lnglat(lng, lat)

as_s2_lnglat(x, ...)

\method{as_s2_lnglat}{default}(x, ...)

\method{as_s2_lnglat}{wk_xy}(x, ...)

\method{as_s2_lnglat}{wk_xyz}(x, ...)
}
\arguments{
\item{lat, lng}{Vectors of latitude and longitude values in degrees.}

\item{x}{A \code{\link[=s2_lnglat]{s2_lnglat()}} vector or an object that can be coerced to one.}

\item{...}{Unused}
}
\value{
An object with class s2_lnglat
}
\description{
This class represents a latitude and longitude on the Earth's surface.
Most calculations in S2 convert this to a \code{\link[=as_s2_point]{as_s2_point()}}, which is a
unit vector representation of this value.
}
\examples{
s2_lnglat(45, -64) # Halifax, Nova Scotia!
as.data.frame(s2_lnglat(45, -64))

}