wkt

package
v0.2.0-mixed Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Separator
	LeftParen tokenType = iota
	RightParen
	Comma

	// Keyword
	Empty
	Z
	M
	ZM

	// Geometry type
	PointEnum
	Linestring
	PolygonEnum
	Multipoint
	MultilineString
	MultiPolygonEnum

	// Values
	Float

	EOF
)

const ...

Variables

This section is empty.

Functions

func MarshalString

func MarshalString(geom space.Geometry) string

MarshalString decode to string

func UnmarshalString

func UnmarshalString(s string) (space.Geometry, error)

UnmarshalString encode to geom

Types

type Lexer

type Lexer struct {
	// contains filtered or unexported fields
}

Lexer ...

func NewLexer

func NewLexer(reader io.Reader) *Lexer

NewLexer ...

type Parser

type Parser struct {
	*Lexer
}

Parser ...

func (*Parser) Parse

func (p *Parser) Parse() (space.Geometry, error)

Parse ...

type Token

type Token struct {
	// contains filtered or unexported fields
}

Token ...

Jump to

Keyboard shortcuts

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