Documentation
¶
Index ¶
- Constants
- func LLToMercator(lng, lat float64) (x, y float64)
- func MercatorToLL(x, y float64) (lng, lat float64)
- type Transformer
- func (t *Transformer) TransformGeometry(geom matrix.Steric) (matrix.Steric, error)
- func (t *Transformer) TransformLatLng(lng, lat float64) (float64, float64)
- func (t *Transformer) TransformLine(lineString matrix.LineMatrix) matrix.LineMatrix
- func (t *Transformer) TransformMultiLineString(multiLineString []matrix.LineMatrix) []matrix.LineMatrix
- func (t *Transformer) TransformMultiPoint(multiPoint []matrix.Matrix) []matrix.Matrix
- func (t *Transformer) TransformMultiPolygon(multiPolygon []matrix.PolygonMatrix) []matrix.PolygonMatrix
- func (t *Transformer) TransformPoint(point matrix.Matrix) matrix.Matrix
- func (t *Transformer) TransformPolygon(polygon matrix.PolygonMatrix) matrix.PolygonMatrix
Constants ¶
View Source
const ( MERCATORTOLL = "MERCATORTOLL" LLTOMERCATOR = "LLTOMERCATOR" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transformer ¶
type Transformer struct {
CoordType string
}
func (*Transformer) TransformGeometry ¶
TransformGeometry ...
func (*Transformer) TransformLatLng ¶
func (t *Transformer) TransformLatLng(lng, lat float64) (float64, float64)
TransformLatLng ...
func (*Transformer) TransformLine ¶
func (t *Transformer) TransformLine(lineString matrix.LineMatrix) matrix.LineMatrix
TransformLine ...
func (*Transformer) TransformMultiLineString ¶
func (t *Transformer) TransformMultiLineString(multiLineString []matrix.LineMatrix) []matrix.LineMatrix
TransformMultiLineString ...
func (*Transformer) TransformMultiPoint ¶
func (t *Transformer) TransformMultiPoint(multiPoint []matrix.Matrix) []matrix.Matrix
TransformMultiPoint ...
func (*Transformer) TransformMultiPolygon ¶
func (t *Transformer) TransformMultiPolygon(multiPolygon []matrix.PolygonMatrix) []matrix.PolygonMatrix
TransformMultiPolygon ...
func (*Transformer) TransformPoint ¶
func (t *Transformer) TransformPoint(point matrix.Matrix) matrix.Matrix
TransformPoint ...
func (*Transformer) TransformPolygon ¶
func (t *Transformer) TransformPolygon(polygon matrix.PolygonMatrix) matrix.PolygonMatrix
TransformPolygon ...
Click to show internal directories.
Click to hide internal directories.