wkb

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 License: MIT, MIT Imports: 7 Imported by: 0

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 tegola.Geometry interface. So, a wkb point is, also, a tegola.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)

Types

type ErrUnknownGeometry

type ErrUnknownGeometry struct {
	Geom geom.Geometry
}

func (ErrUnknownGeometry) Error

func (e ErrUnknownGeometry) Error() string

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