Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 542 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 542 Bytes

TWKB Go Library

Build Status

A small GO parser for the TWKB specification

Usage

go get github.com/devork/twkb

data, _ := hex.DecodeString("01000204")
geom, err := Decode(bytes.NewReader(data))

if err != nil {
		t.Fatalf("Failed to decode point geometry: err = %s", err)
}

// Do something magical with the geometry returned

The library is usable, but could do with some optimisations.