Skip to content

warrenwyf/go-geos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-geos

It is a Go binding for GEOS

CI Status

Install

Requirements

  • GEOS Library installed
  • Get source code with command go get github.com/warrenwyf/go-geos/geos
  • (Optional) Change CFLAGS and LDFLAGS in source code to your library path if necessary

Install GEOS library on Mac

$ brew install geos

Install GEOS library on Ubuntu

$ sudo apt-add-repository -y ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install libgeos-dev libgeos-3.4.2

Quick Start

package main

import (
	"github.com/warrenwyf/go-geos/geos"
)

func main() {
	geom := geos.CreatePoint(0, 0)
	wkt := geom.Buffer(10).ToWKT()
}

About

Go Binding for GEOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages