wkb

package
v0.0.0-...-3cd2f5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 8 Imported by: 12

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

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 Decode

func Decode(r io.Reader) (geo geom.Geometry, err error)

Decode will attempt to decode a geometry encoded as WKB into a geom.Geometry.

func DecodeBytes

func DecodeBytes(b []byte) (geo geom.Geometry, err error)

DecodeBytes will attempt to decode a geometry encoded as WKB into a geom.Geometry.

func Encode

func Encode(w io.Writer, g geom.Geometry) error

func EncodeBytes

func EncodeBytes(g geom.Geometry) (bs []byte, err error)

func EncodeWithByteOrder

func EncodeWithByteOrder(byteOrder binary.ByteOrder, w io.Writer, g geom.Geometry) error

Types

type ErrUnknownGeometryType

type ErrUnknownGeometryType struct {
	Typ uint32
}

func (ErrUnknownGeometryType) Error

func (e ErrUnknownGeometryType) Error() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL