media

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMediaFeature

func NewMediaFeature(ctx context.Context, rsp *gather.GatherImagesResponse, depicts geojson.Feature, opts *NewMediaFeatureOptions) (geojson.Feature, error)

func NewMediaFeatureWithProvider added in v0.0.3

func NewMediaFeatureWithProvider(ctx context.Context, pr id.Provider, rsp *gather.GatherImagesResponse, depicts geojson.Feature, opts *NewMediaFeatureOptions) (geojson.Feature, error)

Types

type Coordinates

type Coordinates []float64

type Feature

type Feature struct {
	Type       string     `json:"type"`
	Properties Properties `json:"properties"`
	Geometry   Geometry   `json:"geometry"`
}

type Geometry

type Geometry struct {
	Type        string      `json:"type"`
	Coordinates Coordinates `json:"coordinates"`
}

type NewMediaFeatureNameFunc

type NewMediaFeatureNameFunc func(string) (string, error)

type NewMediaFeatureOptions

type NewMediaFeatureOptions struct {
	SourceBucket     *blob.Bucket
	Repo             string
	NameFunction     NewMediaFeatureNameFunc
	DepictsPlacetype string
	CustomProperties map[string]interface{}
}

type Properties

type Properties map[string]interface{}

Jump to

Keyboard shortcuts

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