features

package
v0.0.0-...-f143412 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Alert string = "wx:Alert"
	Zone  string = "wx:Zone"

	CollectionName string = "features"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	ID         string           `json:"id" bson:"_id"`
	Geometry   geojson.Geometry `json:"geometry"`
	Properties JSONObject       `json:"properties"`
}

func (*Feature) UnmarshalBSON

func (f *Feature) UnmarshalBSON(data []byte) error

func (*Feature) UnmarshalJSON

func (f *Feature) UnmarshalJSON(data []byte) error

type FeatureCollection

type FeatureCollection struct {
	Features Features `json:"features"`
}

type Features

type Features []Feature

func (Features) Len

func (f Features) Len() int

func (Features) Less

func (f Features) Less(i, j int) bool

func (Features) Swap

func (f Features) Swap(i, j int)

type JSONObject

type JSONObject map[string]any

func (JSONObject) FloatValue

func (j JSONObject) FloatValue(key string) float64

func (JSONObject) IntValue

func (j JSONObject) IntValue(key string) int64

func (JSONObject) StringValue

func (j JSONObject) StringValue(key string) string

Jump to

Keyboard shortcuts

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