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: 2 Imported by: 0

Documentation

Overview

Package must provides helpers to decode wkt geometries to be used in tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsLines

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

AsLines will panic if g can not be coerced into a set of lines

func AsMultiPolygon

func AsMultiPolygon(g geom.Geometry) geom.MultiPolygon

AsMultiPolygon will panic if g is not a geom.MultiPolygon or geom.Polygon if it is a geom.Polygon, it will return a multipolygon containing just that polygon

func AsPolygon

func AsPolygon(g geom.Geometry) geom.Polygon

AsPolygon will panic if g is not a geom.Polygon

func Decode

func Decode(g geom.Geometry, err error) geom.Geometry

Decode will panic if err is not nil otherwise return the geometry

Types

This section is empty.

Jump to

Keyboard shortcuts

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