geo

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EncodingWKB = "WKB"
	EncodingWKT = "WKT"
)

Variables

This section is empty.

Functions

func DecodeGeometry

func DecodeGeometry(value any, encoding string) (*orbjson.Geometry, error)

Types

type DatasetStats added in v0.15.0

type DatasetStats struct {
	// contains filtered or unexported fields
}

func NewDatasetStats added in v0.15.0

func NewDatasetStats(concurrent bool) *DatasetStats

func (*DatasetStats) AddBounds added in v0.15.0

func (i *DatasetStats) AddBounds(name string, bounds *orb.Bound)

func (*DatasetStats) AddCollection added in v0.15.0

func (i *DatasetStats) AddCollection(name string)

func (*DatasetStats) AddTypes added in v0.15.0

func (i *DatasetStats) AddTypes(name string, types []string)

func (*DatasetStats) Bounds added in v0.15.0

func (i *DatasetStats) Bounds(name string) *orb.Bound

func (*DatasetStats) HasCollection added in v0.15.0

func (i *DatasetStats) HasCollection(name string) bool

func (*DatasetStats) NumCollections added in v0.15.0

func (i *DatasetStats) NumCollections() int

func (*DatasetStats) Types added in v0.15.0

func (i *DatasetStats) Types(name string) []string

type Feature

type Feature struct {
	Id         any            `json:"id,omitempty"`
	Type       string         `json:"type"`
	Geometry   orb.Geometry   `json:"geometry"`
	Properties map[string]any `json:"properties"`
}

func (*Feature) MarshalJSON

func (f *Feature) MarshalJSON() ([]byte, error)

func (*Feature) UnmarshalJSON

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

type FeatureCollection added in v0.15.0

type FeatureCollection struct {
	Type     string     `json:"type"`
	Features []*Feature `json:"features"`
}

func (*FeatureCollection) MarshalJSON added in v0.15.0

func (c *FeatureCollection) MarshalJSON() ([]byte, error)

type GeometryStats added in v0.15.0

type GeometryStats struct {
	// contains filtered or unexported fields
}

func NewGeometryStats added in v0.15.0

func NewGeometryStats(concurrent bool) *GeometryStats

func (*GeometryStats) AddBounds added in v0.15.0

func (i *GeometryStats) AddBounds(bounds *orb.Bound)

func (*GeometryStats) AddType added in v0.15.0

func (i *GeometryStats) AddType(typ string)

func (*GeometryStats) AddTypes added in v0.15.0

func (i *GeometryStats) AddTypes(types []string)

func (*GeometryStats) Bounds added in v0.15.0

func (i *GeometryStats) Bounds() *orb.Bound

func (*GeometryStats) Types added in v0.15.0

func (i *GeometryStats) Types() []string

Jump to

Keyboard shortcuts

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