limit

package
v0.0.0-...-85720d3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package limit provides functions to clip geometries at polygon boundaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitPolygonAtAutoGrid

func SplitPolygonAtAutoGrid(g *geos.Geos, geom *geos.Geom) ([]*geos.Geom, error)

func SplitPolygonAtGrid

func SplitPolygonAtGrid(g *geos.Geos, geom *geos.Geom, gridWidth, currentGridWidth float64) ([]*geos.Geom, error)

Types

type Limiter

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

func NewFromGeoJson

func NewFromGeoJson(source string) (*Limiter, error)

func NewFromGeoJsonWithBuffered

func NewFromGeoJsonWithBuffered(source string, buffer float64) (*Limiter, error)

func (*Limiter) Clip

func (l *Limiter) Clip(geom *geos.Geom) ([]*geos.Geom, error)

func (*Limiter) IntersectsBuffer

func (c *Limiter) IntersectsBuffer(g *geos.Geos, x, y float64) bool

Jump to

Keyboard shortcuts

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