Documentation ¶
Overview ¶
Package geos provides a wrapper to the GEOS library.
Index ¶
- Variables
- type Bounds
- type CoordSeq
- type CreateError
- type Error
- type Geom
- type Geos
- func (this *Geos) AsEwkbHex(geom *Geom) []byte
- func (this *Geos) AsWkb(geom *Geom) []byte
- func (this *Geos) AsWkt(geom *Geom) string
- func (this *Geos) BoundsPolygon(bounds Bounds) *Geom
- func (this *Geos) Buffer(geom *Geom, size float64) *Geom
- func (this *Geos) Clone(geom *Geom) *Geom
- func (this *Geos) Contains(a, b *Geom) bool
- func (this *Geos) CreateCoordSeq(size, dim uint32) (*CoordSeq, error)
- func (this *Geos) CreateIndex() *Index
- func (this *Geos) Destroy(geom *Geom)
- func (this *Geos) DestroyCoordSeq(coordSeq *CoordSeq)
- func (this *Geos) DestroyLater(geom *Geom)
- func (this *Geos) Equals(a, b *Geom) bool
- func (this *Geos) ExteriorRing(geom *Geom) *Geom
- func (this *Geos) Finish()
- func (this *Geos) FromWkb(wkb []byte) *Geom
- func (this *Geos) FromWkt(wkt string) *Geom
- func (this *Geos) Geoms(geom *Geom) []*Geom
- func (this *Geos) IndexAdd(index *Index, geom *Geom)
- func (this *Geos) IndexQuery(index *Index, geom *Geom) []int
- func (this *Geos) IndexQueryGeoms(index *Index, geom *Geom) []IndexGeom
- func (this *Geos) Intersection(a, b *Geom) *Geom
- func (this *Geos) Intersects(a, b *Geom) bool
- func (this *Geos) IsEmpty(geom *Geom) bool
- func (this *Geos) IsSimple(geom *Geom) bool
- func (this *Geos) IsValid(geom *Geom) bool
- func (this *Geos) LineMerge(lines []*Geom) []*Geom
- func (g *Geos) MakeValid(geom *Geom) (*Geom, error)
- func (this *Geos) MultiLineString(lines []*Geom) *Geom
- func (this *Geos) MultiPolygon(polygons []*Geom) *Geom
- func (this *Geos) NumCoordinates(geom *Geom) int32
- func (this *Geos) NumGeoms(geom *Geom) int32
- func (this *Geos) Point(x, y float64) *Geom
- func (this *Geos) Polygon(exterior *Geom, interiors []*Geom) *Geom
- func (this *Geos) Prepare(geom *Geom) *PreparedGeom
- func (this *Geos) PreparedContains(a *PreparedGeom, b *Geom) bool
- func (this *Geos) PreparedDestroy(geom *PreparedGeom)
- func (this *Geos) PreparedIntersects(a *PreparedGeom, b *Geom) bool
- func (this *Geos) SetHandleSrid(srid int)
- func (this *Geos) SimplifyPreserveTopology(geom *Geom, tolerance float64) *Geom
- func (this *Geos) Type(geom *Geom) string
- func (this *Geos) UnionPolygons(polygons []*Geom) *Geom
- type Index
- type IndexGeom
- type PreparedGeom
Constants ¶
This section is empty.
Variables ¶
View Source
var NilBounds = Bounds{1e20, 1e20, -1e20, -1e20}
Functions ¶
This section is empty.
Types ¶
type CreateError ¶
type CreateError string
func (CreateError) Error ¶
func (e CreateError) Error() string
type Geos ¶
type Geos struct {
// contains filtered or unexported fields
}
func (*Geos) BoundsPolygon ¶
func (*Geos) CreateIndex ¶
func (*Geos) DestroyCoordSeq ¶
func (*Geos) DestroyLater ¶
func (*Geos) ExteriorRing ¶
func (*Geos) IndexQuery ¶
IndexQuery queries the index for intersections with geom.
func (*Geos) IndexQueryGeoms ¶
IndexQueryGeoms queries the index for intersections with geom.
func (*Geos) Intersection ¶
func (*Geos) Intersects ¶
func (*Geos) LineMerge ¶
LineMerge tries to merge lines. Returns slice of LineStrings. Destroys lines and returns new allocated LineString Geoms.
func (*Geos) MultiLineString ¶
func (*Geos) MultiPolygon ¶
func (*Geos) NumCoordinates ¶
func (*Geos) Prepare ¶
func (this *Geos) Prepare(geom *Geom) *PreparedGeom
func (*Geos) PreparedContains ¶
func (this *Geos) PreparedContains(a *PreparedGeom, b *Geom) bool
func (*Geos) PreparedDestroy ¶
func (this *Geos) PreparedDestroy(geom *PreparedGeom)
func (*Geos) PreparedIntersects ¶
func (this *Geos) PreparedIntersects(a *PreparedGeom, b *Geom) bool
func (*Geos) SetHandleSrid ¶
func (*Geos) SimplifyPreserveTopology ¶
func (*Geos) UnionPolygons ¶
UnionPolygons tries to merge polygons. Returns a single (Multi)Polygon. Destroys polygons and returns new allocated (Multi)Polygon as necessary.
type IndexGeom ¶
type IndexGeom struct {
Geom *Geom
}
IndexGeom is a struct for indexed geometries used by Index and returned by IndexQuery.
type PreparedGeom ¶
type PreparedGeom struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.