Documentation ¶
Overview ¶
Package geom provides functions for building geometries.
Index ¶
- Variables
- func LineString(g *geos.Geos, nodes []osm.Node) (*geos.Geom, error)
- func NodesAsEWKBHexLineString(nodes []osm.Node, srid int) ([]byte, error)
- func NodesAsEWKBHexPolygon(nodes []osm.Node, srid int) ([]byte, error)
- func Point(g *geos.Geos, node osm.Node) (*geos.Geom, error)
- func Polygon(g *geos.Geos, nodes []osm.Node) (*geos.Geom, error)
- type Geometry
- type GeometryError
- type PreparedRelation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorOneNodeWay = newGeometryError("need at least two separate nodes for way", 0) ErrorNoRing = newGeometryError("linestrings do not form ring", 0) )
Functions ¶
Types ¶
type GeometryError ¶ added in v0.7.0
type GeometryError struct {
// contains filtered or unexported fields
}
func (*GeometryError) Error ¶ added in v0.7.0
func (e *GeometryError) Error() string
func (*GeometryError) Level ¶ added in v0.7.0
func (e *GeometryError) Level() int
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.