geometry

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPointIfNotExist added in v0.0.10

func AddPointIfNotExist(points []orb.Point, new orb.Point) []orb.Point

AddPointIfNotExist adds 'new' to 'points' unless it is already present.

func DeriveMultiPointFromIds

func DeriveMultiPointFromIds(ctx context.Context, r reader.Reader, ids ...int64) (*geojson.Geometry, error)

DeriveMultiPointFromIds generates a new `geojson.Geometry` MultiPoint instance derived from the (planar) centroids of the geometries associated with 'ids'.

If a feature associated with an ID has a 'MultiPoint' geometry each of those points will be assign to the final geometry (rather than deriving a centroid).

If a feature associated with an ID has either "lbl:" or "geotag:" latitude and longitude properties those will be used in place of a centroid derived from the features geometry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL