Documentation ¶
Overview ¶
Package geom provides functions for building geometries.
Index ¶
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 ¶
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. It also merges the Relation.Tags with the Tags of the outer way.
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.