Documentation ¶
Overview ¶
Package wkb is for decoding ESRI's Well Known Binary (WKB) format for OGC geometry (WKBGeometry) sepcification at http://edndoc.esri.com/arcsde/9.1/general_topics/wkb_representation.htm There are a few types supported by the specification. Each general type is in it's own file. So, to find the implementation of Point (and MultiPoint) it will be located in the point.go file. Each of the basic type here adhere to the geom.Geometry interface. So, a wkb point is, also, a geom.Point
Index ¶
- Constants
- func Decode(r io.Reader) (geo geom.Geometry, err error)
- func DecodeBytes(b []byte) (geo geom.Geometry, err error)
- func Encode(w io.Writer, g geom.Geometry) error
- func EncodeBytes(g geom.Geometry) (bs []byte, err error)
- func EncodeWithByteOrder(byteOrder binary.ByteOrder, w io.Writer, g geom.Geometry) error
- type ErrUnknownGeometryType
Constants ¶
View Source
const ( Point = consts.Point LineString = consts.LineString Polygon = consts.Polygon MultiPoint = consts.MultiPoint MultiLineString = consts.MultiLineString MultiPolygon = consts.MultiPolygon Collection = consts.Collection )
geometry types
http://edndoc.esri.com/arcsde/9.1/general_topics/wkb_representation.htm
Variables ¶
This section is empty.
Functions ¶
func DecodeBytes ¶
DecodeBytes will attempt to decode a geometry encoded as WKB into a geom.Geometry.
Types ¶
type ErrUnknownGeometryType ¶
type ErrUnknownGeometryType struct {
Typ uint32
}
func (ErrUnknownGeometryType) Error ¶
func (e ErrUnknownGeometryType) Error() string
Click to show internal directories.
Click to hide internal directories.