Documentation ¶
Overview ¶
Package geom provides functions for building geometries.
Index ¶
- Variables
- func LineString(g *geos.Geos, nodes []element.Node) (*geos.Geom, error)
- func NodesAsEWKBHexLineString(nodes []element.Node, srid int) ([]byte, error)
- func NodesAsEWKBHexPolygon(nodes []element.Node, srid int) ([]byte, error)
- func Point(g *geos.Geos, node element.Node) (*geos.Geom, error)
- func Polygon(g *geos.Geos, nodes []element.Node) (*geos.Geom, error)
- type GeomError
- type Geometry
- type PreparedRelation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorOneNodeWay = newGeomError("need at least two separate nodes for way", 0) ErrorNoRing = newGeomError("linestrings do not form ring", 0) )
Functions ¶
func NodesAsEWKBHexPolygon ¶
Types ¶
type PreparedRelation ¶
type PreparedRelation struct {
// contains filtered or unexported fields
}
func PrepareRelation ¶
PrepareRelation is the first step in building a (multi-)polygon of a Relation. It builds rings from all ways and returns an error if there are unclosed rings.
func (*PreparedRelation) Build ¶
func (prep *PreparedRelation) Build() (Geometry, error)
Build creates the (multi)polygon Geometry of the Relation.
Directories ¶
Path | Synopsis |
---|---|
Package geojson creates GEOS geometries from GeoJSON files.
|
Package geojson creates GEOS geometries from GeoJSON files. |
Package geos provides a wrapper to the GEOS library.
|
Package geos provides a wrapper to the GEOS library. |
Package limit provides functions to clip geometries at polygon boundaries.
|
Package limit provides functions to clip geometries at polygon boundaries. |
Click to show internal directories.
Click to hide internal directories.