libgeos

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NonEmptyGeometryCollectionNotSupportedError = errors.New(
		"non-empty GeometryCollection not supported")
	LibgeosCrashError = errors.New(
		"libgeos would crash with this input")
)

Functions

This section is empty.

Types

type Handle

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

Handle is a handle into the libgeos C library. Handle is not threadsafe. If libgeos needs to be used in a concurrent fashion, then multiple handles can be used.

func NewHandle

func NewHandle() (*Handle, error)

NewHandle creates a new handle.

func (*Handle) Area

func (h *Handle) Area(g geom.Geometry) (float64, error)

func (*Handle) AsBinary

func (h *Handle) AsBinary(g geom.Geometry) ([]byte, error)

func (*Handle) AsText

func (h *Handle) AsText(g geom.Geometry) (string, error)

func (*Handle) Boundary

func (h *Handle) Boundary(g geom.Geometry) (geom.Geometry, bool, error)

func (*Handle) Centroid

func (h *Handle) Centroid(g geom.Geometry) (geom.Geometry, error)

func (*Handle) Close

func (h *Handle) Close()

Close cleans up memory resources associated with the handle. If Close is not called, then a memory leak will occurr.

func (*Handle) ConvexHull

func (h *Handle) ConvexHull(g geom.Geometry) (geom.Geometry, error)

func (*Handle) Dimension

func (h *Handle) Dimension(g geom.Geometry) (int, error)

func (*Handle) Envelope

func (h *Handle) Envelope(g geom.Geometry) (geom.Envelope, bool, error)

func (*Handle) EqualsExact

func (h *Handle) EqualsExact(g1, g2 geom.Geometry) (bool, error)

func (*Handle) FromBinary

func (h *Handle) FromBinary(wkb []byte) (geom.Geometry, error)

func (*Handle) FromText

func (h *Handle) FromText(wkt string) (geom.Geometry, error)

func (*Handle) Intersects

func (h *Handle) Intersects(g1, g2 geom.Geometry) (bool, error)

func (*Handle) IsEmpty

func (h *Handle) IsEmpty(g geom.Geometry) (bool, error)

func (*Handle) IsRing

func (h *Handle) IsRing(g geom.Geometry) (bool, error)

func (*Handle) IsSimple

func (h *Handle) IsSimple(g geom.Geometry) (isSimple bool, defined bool, err error)

func (*Handle) IsValid

func (h *Handle) IsValid(g geom.Geometry) (bool, error)

func (*Handle) Length

func (h *Handle) Length(g geom.Geometry) (float64, error)

func (*Handle) Reverse

func (h *Handle) Reverse(g geom.Geometry) (geom.Geometry, error)

Jump to

Keyboard shortcuts

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