rawgeos

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Area

func Area(g geom.Geometry) (float64, error)

func AsBinary

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

func AsText

func AsText(g geom.Geometry) (string, error)

func Boundary

func Boundary(g geom.Geometry) (geom.Geometry, error)

func Buffer

func Buffer(g geom.Geometry, opts BufferOptions) (geom.Geometry, error)

func Centroid

func Centroid(g geom.Geometry) (geom.Geometry, error)

func ConcaveHull added in v0.48.0

func ConcaveHull(g geom.Geometry, ratio float64, allowHoles bool) (geom.Geometry, error)

func Contains

func Contains(a, b geom.Geometry) (bool, error)

func ConvexHull

func ConvexHull(g geom.Geometry) (geom.Geometry, error)

func CoverageIsValid added in v0.51.0

func CoverageIsValid(g geom.Geometry, gapWidth float64) (bool, geom.Geometry, error)

func CoverageSimplifyVW added in v0.51.0

func CoverageSimplifyVW(g geom.Geometry, tolerance float64, preserveBoundary bool) (geom.Geometry, error)

func CoverageUnion

func CoverageUnion(g geom.Geometry) (geom.Geometry, error)

func CoveredBy

func CoveredBy(a, b geom.Geometry) (bool, error)

func Covers

func Covers(a, b geom.Geometry) (bool, error)

func Crosses

func Crosses(a, b geom.Geometry) (bool, error)

func Difference

func Difference(a, b geom.Geometry) (geom.Geometry, error)

func Dimension

func Dimension(g geom.Geometry) (int, error)

func Disjoint

func Disjoint(a, b geom.Geometry) (bool, error)

func Distance

func Distance(a, b geom.Geometry) (float64, error)

func Envelope

func Envelope(g geom.Geometry) (geom.Geometry, error)

func Equals

func Equals(a, b geom.Geometry) (bool, error)

func EqualsExact

func EqualsExact(a, b geom.Geometry) (bool, error)

func FromBinary

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

func FromText

func FromText(wkt string) (geom.Geometry, error)

func Intersection

func Intersection(a, b geom.Geometry) (geom.Geometry, error)

func Intersects

func Intersects(a, b geom.Geometry) (bool, error)

func IsEmpty

func IsEmpty(g geom.Geometry) (bool, error)

func IsRing

func IsRing(g geom.Geometry) (bool, error)

func IsSimple

func IsSimple(g geom.Geometry) (bool, error)

func IsValid

func IsValid(g geom.Geometry) (bool, error)

func Length

func Length(g geom.Geometry) (float64, error)

func MakeValid

func MakeValid(g geom.Geometry) (geom.Geometry, error)

func MinimumRotatedRectangle

func MinimumRotatedRectangle(g geom.Geometry) (geom.Geometry, error)

func Overlaps

func Overlaps(a, b geom.Geometry) (bool, error)

func Relate

func Relate(g1, g2 geom.Geometry) (string, error)

func RelatePatternMatch

func RelatePatternMatch(mat, pat string) (bool, error)

func Reverse

func Reverse(g geom.Geometry) (geom.Geometry, error)

func Simplify

func Simplify(g geom.Geometry, tolerance float64) (geom.Geometry, error)

func SymmetricDifference

func SymmetricDifference(a, b geom.Geometry) (geom.Geometry, error)

func TopologyPreserveSimplify added in v0.51.0

func TopologyPreserveSimplify(g geom.Geometry, tolerance float64) (geom.Geometry, error)

func Touches

func Touches(a, b geom.Geometry) (bool, error)

func UnaryUnion

func UnaryUnion(g geom.Geometry) (geom.Geometry, error)

func Union

func Union(a, b geom.Geometry) (geom.Geometry, error)

func Within

func Within(a, b geom.Geometry) (bool, error)

Types

type BufferEndCapStyle

type BufferEndCapStyle string
const (
	BufferEndCapStyleRound  BufferEndCapStyle = "round"
	BufferEndCapStyleFlat   BufferEndCapStyle = "flat"
	BufferEndCapStyleSquare BufferEndCapStyle = "square"
)

type BufferJoinStyle

type BufferJoinStyle string
const (
	BufferJoinStyleRound BufferJoinStyle = "round"
	BufferJoinStyleMitre BufferJoinStyle = "mitre"
	BufferJoinStyleBevel BufferJoinStyle = "bevel"
)

type BufferOptions

type BufferOptions struct {
	Radius       float64
	QuadSegments int
	EndCapStyle  BufferEndCapStyle
	JoinStyle    BufferJoinStyle
	MitreLimit   float64 // Only applicable with BufferJoinStyleMitre.
}

type UnsupportedGEOSVersionError added in v0.51.0

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

func (UnsupportedGEOSVersionError) Error added in v0.51.0

Jump to

Keyboard shortcuts

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