geosegmentize

package
v0.0.0-...-1dc08c0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SegmentizeGeom

func SegmentizeGeom(
	geometry geom.T,
	segmentMaxAngleOrLength float64,
	segmentizeCoords func(geom.Coord, geom.Coord, float64) []float64,
) (geom.T, error)

SegmentizeGeom returns a modified geom.T having no segment longer than the given maximum segment length. segmentMaxAngleOrLength represents two different things depending on the object, which is about to segmentize as in case of geography it represents maximum segment angle whereas, in case of geometry it represents maximum segment distance. segmentizeCoords represents the function's definition which allows us to segmentize given two-points. We have to specify segmentizeCoords explicitly, as the algorithm for segmentization is significantly different for geometry and geography.

Types

This section is empty.

Jump to

Keyboard shortcuts

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