Skip to content

purtato/wkt-s2-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wkt-s2-decoder

Library that converts wkt into S2 datatypes, relies mostly on https://github.com/IvanZagoskin/wkt

Install

go get -u github.com/purtato/wkt-s2-decoder

Example

package main

import (
	"bytes"
	"fmt"
	decoder "github.com/purtato/wkt-s2-decoder"
)

func main() {
	d := decoder.New()
	poly, _ := d.ParseLinestring(bytes.NewReader([]byte("LINESTRING (30 10, 10 30, 40 40)")))
	fmt.Printf("%+v", poly)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages