Documentation
¶
Index ¶
- func Area(g geom.Geometry) (float64, error)
- func AsBinary(g geom.Geometry) ([]byte, error)
- func AsText(g geom.Geometry) (string, error)
- func Boundary(g geom.Geometry) (geom.Geometry, error)
- func Buffer(g geom.Geometry, opts BufferOptions) (geom.Geometry, error)
- func Centroid(g geom.Geometry) (geom.Geometry, error)
- func ConcaveHull(g geom.Geometry, ratio float64, allowHoles bool) (geom.Geometry, error)
- func Contains(a, b geom.Geometry) (bool, error)
- func ConvexHull(g geom.Geometry) (geom.Geometry, error)
- func CoverageIsValid(g geom.Geometry, gapWidth float64) (bool, geom.Geometry, error)
- func CoverageSimplifyVW(g geom.Geometry, tolerance float64, preserveBoundary bool) (geom.Geometry, error)
- func CoverageUnion(g geom.Geometry) (geom.Geometry, error)
- func CoveredBy(a, b geom.Geometry) (bool, error)
- func Covers(a, b geom.Geometry) (bool, error)
- func Crosses(a, b geom.Geometry) (bool, error)
- func Difference(a, b geom.Geometry) (geom.Geometry, error)
- func Dimension(g geom.Geometry) (int, error)
- func Disjoint(a, b geom.Geometry) (bool, error)
- func Distance(a, b geom.Geometry) (float64, error)
- func Envelope(g geom.Geometry) (geom.Geometry, error)
- func Equals(a, b geom.Geometry) (bool, error)
- func EqualsExact(a, b geom.Geometry) (bool, error)
- func FromBinary(wkb []byte) (geom.Geometry, error)
- func FromText(wkt string) (geom.Geometry, error)
- func Intersection(a, b geom.Geometry) (geom.Geometry, error)
- func Intersects(a, b geom.Geometry) (bool, error)
- func IsEmpty(g geom.Geometry) (bool, error)
- func IsRing(g geom.Geometry) (bool, error)
- func IsSimple(g geom.Geometry) (bool, error)
- func IsValid(g geom.Geometry) (bool, error)
- func Length(g geom.Geometry) (float64, error)
- func MakeValid(g geom.Geometry) (geom.Geometry, error)
- func MinimumRotatedRectangle(g geom.Geometry) (geom.Geometry, error)
- func Overlaps(a, b geom.Geometry) (bool, error)
- func Relate(g1, g2 geom.Geometry) (string, error)
- func RelatePatternMatch(mat, pat string) (bool, error)
- func Reverse(g geom.Geometry) (geom.Geometry, error)
- func Simplify(g geom.Geometry, tolerance float64) (geom.Geometry, error)
- func SymmetricDifference(a, b geom.Geometry) (geom.Geometry, error)
- func TopologyPreserveSimplify(g geom.Geometry, tolerance float64) (geom.Geometry, error)
- func Touches(a, b geom.Geometry) (bool, error)
- func UnaryUnion(g geom.Geometry) (geom.Geometry, error)
- func Union(a, b geom.Geometry) (geom.Geometry, error)
- func Within(a, b geom.Geometry) (bool, error)
- type BufferEndCapStyle
- type BufferJoinStyle
- type BufferOptions
- type UnsupportedGEOSVersionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcaveHull ¶ added in v0.48.0
func CoverageIsValid ¶ added in v0.51.0
func CoverageSimplifyVW ¶ added in v0.51.0
func RelatePatternMatch ¶
func TopologyPreserveSimplify ¶ added in v0.51.0
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
func (e UnsupportedGEOSVersionError) Error() string
Click to show internal directories.
Click to hide internal directories.