Learn R Programming

⚠️There's a newer version (1.1.8) of this package.Take me there.

s2 (version 0.4-0)

Google's S2 Library for Geometry on the Sphere

Description

R bindings for Google's s2 library for geometric calculations on the sphere.

Copy Link

Version

Install

install.packages('s2')

Monthly Downloads

304,898

Version

0.4-0

License

Apache License (== 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Ege Rubak

Last Published

April 21st, 2018

Functions in s2 (0.4-0)

S2Point_interpolate

Interpolation of points on unit sphere
S2Polygons_area

compute areas for a list of s2polygons
S2CapFromAxisHeight

Construct a S2Cap using axis and height
S2Cap_Contains

Test of Containment in S2Cap
S2Cell

Make a list of S2Cells
S2CellIdFromPoint

Make a Vector of S2CellIds From Points on the Sphere
S2Cap_GetRectBound

Bounding latitude and longitude rectangle for spherical cap
S2Covering

Approximate a Region on the Sphere by a Covering of S2Cells
S2Cap_area

Area of s2cap
S2Polygons_centroid

compute centroids for a list of s2polygons
S2Polygons_intersect

for two sets of s2polygons, which ones intersect?
S2Polygon_Contains

Test of Containment in S2Polygon
S2Polygon

Construct a S2Polygon
S2CellId_ToPoint

Convert S2CellId to a S2Point
S2CellId_ToString

Make a vector of S2CellId strings
S2LatLngRect

Create a rectangle of latitude and longitude on the sphere
S2LatLngRect_area

Area of s2latlngrect
S2Polygons_intersection

intersection of sets of s2polygons
S2Polyline_dist

Distance from points to line on sphere
S2Polygon_union

Union and intersection of two s2polygons
s2-package

s2: Google's S2 Library for Geometry on the Sphere