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 41 42 43 44 45 46 47 48 49

Source: golanggithubgolanggeo
Section: devel
Priority: extra
Maintainer: Debian Go Packaging Team <pkggomaintainers@lists.alioth.debian.org>
Uploaders: Michael Stapelberg <stapelberg@debian.org>
BuildDepends: debhelper (>= 10),
dhgolang,
golangany
StandardsVersion: 3.9.8
Homepage: https://github.com/golang/geo
VcsBrowser: https://anonscm.debian.org/cgit/pkggo/packages/golanggithubgolanggeo.git
VcsGit: https://anonscm.debian.org/git/pkggo/packages/golanggithubgolanggeo.git
XSGoImportPath: github.com/golang/geo
Package: golanggithubgolanggeodev
Architecture: all
Depends: ${shlibs:Depends},
${misc:Depends}
Description: S2 geometry library in Go
S2 is a library for manipulating geometric shapes. Unlike many geometry
libraries, S2 is primarily designed to work with spherical geometry, i.e.,
shapes drawn on a sphere rather than on a planar 2D map. (In fact, the name S2
is derived from the mathematical notation for the unit sphere.) This makes it
especially suitable for working with geographic data.
.
The library consists of:
* Basic representations of angles, intervals, latitudelongitude points, unit
3D vectors, and conversions among them.
* Various shapes over the unit sphere, such as spherical caps ("discs"),
latitudelongitude rectangles, polylines, and polygons. These are
collectively known as "regions".
* Support for spatial indexing of collections of geometry, and algorithms for
testing containment, finding nearby objects, finding intersections, etc.
* A hierarchical decomposition of the sphere into regions called "cells". The
hierarchy starts with the six faces of a projected cube and recursively
subdivides them in a quadtreelike fashion.
* The ability to approximate arbitrary regions as a collection of cells. This
is useful for building inverted indexes that allow queries over arbitrarily
shaped regions. The implementations attempt to be precise both in terms of
mathematical definitions (e.g. whether regions include their boundaries,
representations of empty and full regions) and numerical accuracy (e.g.
avoiding cancellation error).
.
Note that the intent of this library is to represent geometry as a
mathematical abstraction. For example, although the unit sphere is
obviously a useful approximation for the Earth's surface, functions that
are specifically related to geography are not part of the core library
(e.g. easting/northing conversions, ellipsoid approximations, geodetic
vs. geocentric coordinates, etc).
