clip

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: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default dclipper
View Source
var ErrUnsupportedGeometry = errors.New("Unsupported Geometry")

Functions

func Geometry

func Geometry(ctx context.Context, geo geom.Geometry, clipbox *geom.Extent) (geom.Geometry, error)

Geometry will return the clipped version of the given geometry.

func LineStringer

func LineStringer(ctx context.Context, linestringer geom.LineStringer, clipbox *geom.Extent) (mls geom.MultiLineString, err error)

LineString will clip the give linestring to the the given clipbox, breaking it up into multiple linestring as needed.

func MultiLineStringer

func MultiLineStringer(ctx context.Context, multils geom.MultiLineStringer, clipbox *geom.Extent) (nmls geom.MultiLineString, err error)

func MultiPointer

func MultiPointer(ctx context.Context, pts geom.MultiPointer, clipbox *geom.Extent) (geom.MultiPoint, error)

MultiPoint will filter out points that are not contained by the clipbox.

Types

This section is empty.

Jump to

Keyboard shortcuts

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