parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedToken          = errors.New("unexpected token")
	ErrUnexpectedEOF            = errors.New("unexpected EOF")
	ErrUnexpectedGeometryType   = errors.New("unexpected geometry type")
	ErrUnexpectedCoordinateType = errors.New("unexpected coordinate type")
)

Functions

This section is empty.

Types

type Parser

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

Parser implements parsing wkt

func New

func New() *Parser

New returns Parser

func (*Parser) ParseWKT

func (p *Parser) ParseWKT(r io.Reader) (geometry.Geometry, error)

ParseWKT detects a geometry object and returns it

Jump to

Keyboard shortcuts

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