metadata

package
v0.0.0-...-c41dffb Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	Type  string
	Value string
}

type Geometry

type Geometry struct {
	Type        string         `json:"type"`
	Coordinates [][][2]float64 `json:"coordinates"`
}

func (*Geometry) Bounds

func (g *Geometry) Bounds() [4]float64
type Link struct {
	Name        string `json:"name,omitempty"`
	Type        string `json:"type,omitempty"`
	Description string `json:"description,omitempty"`
	Protocol    string `json:"protocol,omitempty"`
	URL         string `json:"url,omitempty"`
}

Link describes link constructs

type ProductInfo

type ProductInfo struct {
	Collection        string     `json:"collection,omitempty"`
	Platform          string     `json:"platform,omitempty"`
	ProductIdentifier string     `json:"product_id,omitempty"`
	SceneIdentifier   string     `json:"scene_id,omitempty"`
	Path              uint64     `json:"path,omitempty"`
	Row               uint64     `json:"row,omitempty"`
	CloudCover        float64    `json:"cloud_cover,omitempty"`
	AcquisitionDate   *time.Time `json:"acquisition_date,omitempty"`
	ProcessingLevel   string     `json:"processing_level,omitempty"`
	SensorIdentifier  string     `json:"sensor_id,omitempty"`
}

ProductInfo describes product specific metadata for example EO data

type Properties

type Properties struct {
	Title          string       `json:"title,omitempty"`
	Type           string       `json:"type,omitempty"`
	Created        *time.Time   `json:"created,omitempty"`
	Modified       *time.Time   `json:"modified,omitempty"`
	Abstract       string       `json:"abstract,omitempty"`
	KeywordsSets   []keywords   `json:"keywords,omitempty"`
	Contacts       []Contact    `json:"contact,omitempty"`
	Dates          []date       `json:"dates,omitempty"`
	License        string       `json:"license,omitempty"`
	Language       string       `json:"language,omitempty"`
	TemporalExtent *Temporal    `json:"temporal_extent,omitempty"`
	ProductInfo    *ProductInfo `json:"product_info,omitempty"`
	Datetime       *time.Time   `json:"datetime,omitempty"`
	Collection     string       `json:"collection,omitempty"`
}

type Record

type Record struct {
	Identifier  string     `json:"id"`
	Type        string     `json:"type"`
	BoundingBox [4]float64 `json:"bbox"`
	Geometry    Geometry   `json:"geometry"`
	Properties  Properties `json:"properties"`
	Links       []Link     `json:"links,omitempty"`
	Assets      []Link     `json:"assets,omitempty"`
}

Record describes a generic metadata record

type Temporal

type Temporal struct {
	Begin *time.Time `json:"begin,omitempty"`
	End   *time.Time `json:"end,omitempty"`
}

Temporal describes temporal bounds

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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