Documentation
¶
Index ¶
- Constants
- func EncodeEWKB(g STGeometry, xdr bool, srid int32) ([]byte, error)
- func EncodeWKB(g STGeometry, xdr bool) ([]byte, error)
- func EncodeWKT(g STGeometry) (string, error)
- func NaN() float64
- type Dim
- type Point
- type Points
- type STGeometry
- type STGeometryCollection
- type STLineString
- type STMultiLineString
- type STMultiPoint
- type STMultiPolygon
- type STPoint
- type STPolygon
Constants ¶
View Source
const ( XDR byte = 0x00 // Big endian NDR = 0x01 // Little endian )
Byte orders
Variables ¶
This section is empty.
Functions ¶
func EncodeEWKB ¶
func EncodeEWKB(g STGeometry, xdr bool, srid int32) ([]byte, error)
EncodeEWKB encodes a geometry to the "extended well known binary" format.
func EncodeWKB ¶
func EncodeWKB(g STGeometry, xdr bool) ([]byte, error)
EncodeWKB encodes a geometry to the "well known binary" format.
func EncodeWKT ¶
func EncodeWKT(g STGeometry) (string, error)
EncodeWKT encodes a geometry to the "well known text" format.
Types ¶
type Point ¶
type Point struct{ X, Y, Z, M float64 }
Point represents whether a 2d, Z, M or ZM dimensional point.
type STGeometry ¶
type STGeometry interface {
// contains filtered or unexported methods
}
STGeometry is the interface representing a spatial type.
type STGeometryCollection ¶
type STGeometryCollection struct {
Dim Dim
Geometries []STGeometry
}
STGeometryCollection is the spatial type for a geometry collection.
type STLineString ¶
STLineString is the spatial type for a linestring.
type STMultiLineString ¶
type STMultiLineString struct {
Dim Dim
LineStrings []STLineString
}
STMultiLineString is the spatial type for a multi line string.
type STMultiPoint ¶
STMultiPoint is the spatial type for a multipoint.
type STMultiPolygon ¶
STMultiPolygon is the spatial type for a multi polygon.
Click to show internal directories.
Click to hide internal directories.