Versions in this module Expand all Collapse all v1 v1.0.0 Apr 6, 2023 Changes in this version + const BigEndian + const ByteOrderSize + const CountSize + const Float64Size + const GeomCollection + const GeomLineString + const GeomMultiLineString + const GeomMultiPoint + const GeomMultiPolygon + const GeomPoint + const GeomPolygon + const GeomTypeSize + const HeaderSize + const LittleEndian + const PointSize + var ErrInvalidStorage = errors.New("Invalid storage type or size") + var ErrUnsupportedValue = errors.New("Unsupported value") + type ByteOrder byte + type Geometry interface + ByteSize func() int + Write func(*bytes.Buffer) + func New(b []byte) (Geometry, error) + func ReadGeometry(b []byte) ([]byte, Geometry, error) + type GeometryCollection []Geometry + func ReadGeometryCollection(b []byte) ([]byte, GeometryCollection, error) + func (gc *GeometryCollection) Scan(src interface{}) error + func (gc GeometryCollection) ByteSize() int + func (gc GeometryCollection) Value() (driver.Value, error) + func (gc GeometryCollection) Write(buf *bytes.Buffer) + type Kind uint32 + type LineString Points + func ReadLineString(b []byte) ([]byte, LineString, error) + func (ls *LineString) Scan(src interface{}) error + func (ls LineString) ByteSize() int + func (ls LineString) Value() (driver.Value, error) + func (ls LineString) Write(buf *bytes.Buffer) + type LinearRing Points + type MultiLineString []LineString + func ReadMultiLineString(b []byte) ([]byte, MultiLineString, error) + func (mls *MultiLineString) Scan(src interface{}) error + func (mls MultiLineString) ByteSize() int + func (mls MultiLineString) Value() (driver.Value, error) + func (mls MultiLineString) Write(buf *bytes.Buffer) + type MultiPoint Points + func ReadMultiPoint(b []byte) ([]byte, MultiPoint, error) + func (mp *MultiPoint) Scan(src interface{}) error + func (mp MultiPoint) ByteSize() int + func (mp MultiPoint) Value() (driver.Value, error) + func (mp MultiPoint) Write(buf *bytes.Buffer) + type MultiPolygon []Polygon + func ReadMultiPolygon(b []byte) ([]byte, MultiPolygon, error) + func (mp *MultiPolygon) Scan(src interface{}) error + func (mp MultiPolygon) ByteSize() int + func (mp MultiPolygon) Value() (driver.Value, error) + func (mp MultiPolygon) Write(buf *bytes.Buffer) + type Point struct + X float64 + Y float64 + func ReadPoint(b []byte) ([]byte, Point, error) + func (p *Point) Scan(src interface{}) error + func (p Point) ByteSize() int + func (p Point) Equal(other Point) bool + func (p Point) Value() (driver.Value, error) + func (p Point) Write(buf *bytes.Buffer) + type Points []Point + type Polygon []LinearRing + func ReadPolygon(b []byte) ([]byte, Polygon, error) + func (p *Polygon) Scan(src interface{}) error + func (p Polygon) ByteSize() int + func (p Polygon) Value() (driver.Value, error) + func (p Polygon) Write(buf *bytes.Buffer)