gx

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultPlusCodeLength = 10
	FeetPerMeter          = 3.2808399
)

Variables

View Source
var Builtins = map[string]lua.Function{

	"area":       Area,
	"centroid":   Centroid,
	"bbox":       BoundingBox,
	"perimeter":  Perimeter,
	"project":    Project,
	"simplify":   Simplify,
	"pluscode":   EncodePlusCode,
	"unpluscode": DecodePlusCode,
	"ft2m":       Ft2M,
	"m2ft":       M2Ft,
	"sqft2sqm":   Sqft2Sqm,
	"sqm2sqft":   Sqm2Sqft,
}

Functions

func Area

func Area(L *lua.State) int

func BoundingBox

func BoundingBox(L *lua.State) int

func Centroid

func Centroid(L *lua.State) int

func DecodePlusCode

func DecodePlusCode(L *lua.State) int

func EncodePlusCode

func EncodePlusCode(L *lua.State) int

func Ft2M

func Ft2M(L *lua.State) int

func M2Ft

func M2Ft(L *lua.State) int

func Perimeter

func Perimeter(L *lua.State) int

func Project

func Project(L *lua.State) int

func RegisterBuiltins

func RegisterBuiltins(L *lua.State)

func Simplify

func Simplify(L *lua.State) int

func Sqft2Sqm

func Sqft2Sqm(L *lua.State) int

func Sqm2Sqft

func Sqm2Sqft(L *lua.State) int

Types

type XGeoVM

type XGeoVM struct {
	ScriptFilename string
	Output         chan map[string]interface{}
	L              *lua.State
}

func NewVM

func NewVM(filename string) *XGeoVM

func (*XGeoVM) Close

func (vm *XGeoVM) Close()

func (*XGeoVM) Init

func (vm *XGeoVM) Init() error

func (*XGeoVM) RegisterBuiltins

func (vm *XGeoVM) RegisterBuiltins()

func (*XGeoVM) Run

func (vm *XGeoVM) Run(input map[string]interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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