utils

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: BSD-3-Clause Imports: 10 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureProperties

func EnsureProperties(body []byte, properties []string) error

func EnsurePropertiesAny

func EnsurePropertiesAny(body []byte, properties []string) error

func GeohashFeature

func GeohashFeature(f geojson.Feature) (string, error)

func HashFeature

func HashFeature(f geojson.Feature) (string, error)

func HashGeometry

func HashGeometry(geom []byte) (string, error)

func Int64Property

func Int64Property(body []byte, possible []string, d int64) int64

func NewCoordinateFromLatLons

func NewCoordinateFromLatLons(lat float64, lon float64) (geom.Coord, error)

func NewPolygonFromCoords

func NewPolygonFromCoords(coords []geom.Coord) (geom.Polygon, error)

func NewRectFromLatLons

func NewRectFromLatLons(minlat float64, minlon float64, maxlat float64, maxlon float64) (geom.Rect, error)

func StringProperty

func StringProperty(body []byte, possible []string, d string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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