Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyToPoints(geometry geom.Geometry, f func(coords ...float64) ([]float64, error)) (geom.Geometry, error)
- func CloneGeometry(geometry geom.Geometry) (geom.Geometry, error)
- func FromWebMercator(SRID uint64, geometry geom.Geometry) (geom.Geometry, error)
- func ToWebMercator(SRID uint64, geometry geom.Geometry) (geom.Geometry, error)
Constants ¶
Variables ¶
View Source
var ( WebMercatorBounds = &webmercator.Extent WGS84Bounds = &geom.Extent{-180.0, -85.0511, 180.0, 85.0511} )
Functions ¶
func ApplyToPoints ¶
func ApplyToPoints(geometry geom.Geometry, f func(coords ...float64) ([]float64, error)) (geom.Geometry, error)
ApplyToPoints applys the given function to each point in the geometry and any sub geometries, return a new transformed geometry.
func CloneGeometry ¶
CloneGeomtry returns a deep clone of the Geometry.
func FromWebMercator ¶
FromWebMercator takes a geometry encoded with WebMercator, and returns a Geometry encodes to the given srid.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package webmercator does the translation to and from WebMercator and WGS84 Gotten from: http://wiki.openstreetmap.org/wiki/Mercator#C.23
|
Package webmercator does the translation to and from WebMercator and WGS84 Gotten from: http://wiki.openstreetmap.org/wiki/Mercator#C.23 |
Click to show internal directories.
Click to hide internal directories.