alt

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package alt provides methods for formatting Who's On First alternate geometry files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveMultiPointGeometry

func DeriveMultiPointGeometry(ctx context.Context, features ...*WhosOnFirstAltFeature) (orb.MultiPoint, error)

func FormatAltFeature

func FormatAltFeature(f *WhosOnFirstAltFeature) ([]byte, error)

FormatAltFeature formats 'f' and removes any top-level `bbox` properties.

Types

type WhosOnFirstAltFeature

type WhosOnFirstAltFeature struct {
	Id         int64                  `json:"id"`
	Type       string                 `json:"type"`
	Properties map[string]interface{} `json:"properties"`
	Geometry   *geojson.Geometry      `json:"geometry"`
}

WhosOnFirstAltFeature is a struct defining a GeoJSON Feature for alternate geometries.

Jump to

Keyboard shortcuts

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