package
0.11.1
Repository: https://github.com/paulmach/orb.git
Documentation: pkg.go.dev

# Functions

GeomLength helps to do preallocation during a marshal.
Marshal encodes the geometry with the given byte order.
MustMarshal will encode the geometry and panic on error.
NewDecoder will create a new (E)WKB decoder.
NewEncoder creates a new Encoder for the given writer.
Scan will scan the input []byte data into a geometry.
ScanCollection takes binary wkb and decodes it into a collection.
ScanLineString takes binary wkb and decodes it into a line string.
ScanMultiLineString takes binary wkb and decodes it into a multi-line string.
ScanMultiPoint takes binary wkb and decodes it into a multi-point.
ScanMultiPolygon takes binary wkb and decodes it into a multi-polygon.
ScanPoint takes binary wkb and decodes it into a point.
ScanPolygon takes binary wkb and decodes it into a polygon.
Unmarshal will decode the type into a Geometry.

# Constants

No description provided by the author
limits so that bad data can't come in and preallocate tons of memory.

# Variables

DefaultByteOrder is the order used for marshalling or encoding is none is specified.
ErrIncorrectGeometry is returned when unmarshalling WKB data into the wrong type.
ErrNotWKB is returned when unmarshalling WKB and the data is not valid.
ErrNotWKBHeader is returned when unmarshalling first few bytes and there is an issue.
ErrUnsupportedDataType is returned by Scan methods when asked to scan non []byte data from the database.
ErrUnsupportedGeometry is returned when geometry type is not supported by this lib.

# Structs

Decoder can decoder (E)WKB geometry off of the stream.
An Encoder will encode a geometry as (E)WKB to the writer given at creation time.