featurecollection

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	MultiPolygonType = "MultiPolygon"
	PolygonType      = "Polygon"
	FeatureType      = "Feature"
)

Variables

This section is empty.

Functions

func Do

func Do[T any](input *BoundaryFile[T]) (*polyf.F[T], error)

Types

type BoundaryFile

type BoundaryFile[T any] struct {
	Features []*Feature[T] `json:"features"`
}

type Feature

type Feature[T any] struct {
	Geometry struct {
		Coordinates interface{} `json:"coordinates"`
		Type        string      `json:"type"`
	} `json:"geometry"`
	Properties T      `json:"properties"`
	Type       string `json:"type"`
}

type MultiPolygonCoordinates

type MultiPolygonCoordinates []PolygonCoordinates

type PolygonCoordinates

type PolygonCoordinates [][][2]float64

Jump to

Keyboard shortcuts

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