Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedType = errors.New("unsupported geometry type") ErrUnsupportedLayout = errors.New("unsupported geometry layout") )
Functions ¶
func Contains ¶
func Contains(polygon *geom.Polygon, containedBy *geom.Polygon) bool
Contains checks if polygon is contained by the polygon containedBy
func ContainsPoint ¶
func ContainsPoint(pt geom.Coord, ring *geom.LinearRing) bool
ContainsPoint checks if the point pt is within the linear ring
func Cut ¶
Cut divides a geometry at the antimeridian and the poles. A multi-geometry is returned with the cut portions of the original geometry.
By default Cut attempts to fix improperly wound geometries Howevever, there are instances where the polygon may be correctly but antimeridian cannot determine this to be so; for example, when the polygon extends over both the north and south pole. For these instances, pass fixWinding = false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.