must

package
v0.0.0-...-3cd2f5a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsLines

func AsLines(g geom.Geometry) []geom.Line

AsLines will try and interpet the geom as a set of lines

func AsPoints

func AsPoints(g geom.Geometry) [][2]float64

AsPoints

func MPPointer

func MPPointer(mp geom.MultiPolygon) *geom.MultiPolygon

func Parse

func Parse(content []byte) geom.Geometry

func ParseLines

func ParseLines(content []byte) []geom.Line

ParseLines decodes the lines in the wkt format. It will use the AsLines to convert the geometry into lines

func ParseMultiPolygon

func ParseMultiPolygon(content []byte) geom.MultiPolygon

func ParsePoints

func ParsePoints(content []byte) [][2]float64

ParsePoints decodes points

func Read

func Read(filename string) geom.Geometry

func ReadLines

func ReadLines(filename string) []geom.Line

ReadLines reads the lines out of the file the lines are expected to be in wkt format. It will use the AsLines to convert the geometry into lines

func ReadMultiPolygon

func ReadMultiPolygon(filename string) geom.MultiPolygon

func ReadPoints

func ReadPoints(filename string) [][2]float64

ReadPoints reads the points out of a file. the points are expected to

Types

This section is empty.

Jump to

Keyboard shortcuts

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