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.

Source Files