Documentation
¶
Index ¶
- func IsCoreItemProperty(prop string) bool
- func PopulateExtensionFromProperties(extension ItemExtension, properties map[string]any) error
- type Asset
- type AssetExtension
- type Catalog
- type Collection
- type CollectionsList
- type Extent
- type Item
- type ItemExtension
- type ItemsList
- type Link
- type Provider
- type SpatialExtent
- type TemporalExtent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCoreItemProperty ¶
func PopulateExtensionFromProperties ¶
func PopulateExtensionFromProperties(extension ItemExtension, properties map[string]any) error
Types ¶
type Asset ¶
type Asset struct { Type string `json:"type,omitempty"` Href string `json:"href"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Created string `json:"created,omitempty"` Roles []string `json:"roles,omitempty"` Extensions []AssetExtension `json:"-"` }
func (Asset) MarshalJSON ¶
type AssetExtension ¶
type Catalog ¶
type Catalog struct { Version string `json:"stac_version"` Id string `json:"id"` Title string `json:"title,omitempty"` Description string `json:"description"` Links []*Link `json:"links"` ConformsTo []string `json:"conformsTo,omitempty"` }
func (Catalog) MarshalJSON ¶
type Collection ¶
type Collection struct { Version string `json:"stac_version"` Id string `json:"id"` Title string `json:"title,omitempty"` Description string `json:"description"` Keywords []string `json:"keywords,omitempty"` License string `json:"license"` Providers []*Provider `json:"providers,omitempty"` Extent *Extent `json:"extent"` Summaries map[string]any `json:"summaries,omitempty"` Links []*Link `json:"links"` Assets map[string]*Asset `json:"assets,omitempty"` }
func (Collection) MarshalJSON ¶
func (collection Collection) MarshalJSON() ([]byte, error)
type CollectionsList ¶
type CollectionsList struct { Collections []*Collection `json:"collections"` Links []*Link `json:"links"` }
type Extent ¶
type Extent struct { Spatial *SpatialExtent `json:"spatial,omitempty"` Temporal *TemporalExtent `json:"temporal,omitempty"` }
type Item ¶
type Item struct { Version string `json:"stac_version"` Id string `json:"id"` Geometry any `json:"geometry"` Bbox []float64 `json:"bbox,omitempty"` Properties map[string]any `json:"properties"` Links []*Link `json:"links"` Assets map[string]*Asset `json:"assets"` Collection string `json:"collection,omitempty"` Extensions []ItemExtension `json:"-"` }
func (Item) MarshalJSON ¶
type ItemExtension ¶
type Link ¶
type Link struct { Href string `mapstructure:"href"` Rel string `mapstructure:"rel"` Type string `mapstructure:"type,omitempty"` Title string `mapstructure:"title,omitempty"` AdditionalFields map[string]any `mapstructure:",remain"` }
func (*Link) MarshalJSON ¶ added in v0.20.0
func (*Link) UnmarshalJSON ¶ added in v0.20.0
type SpatialExtent ¶
type SpatialExtent struct {
Bbox [][]float64 `json:"bbox"`
}
type TemporalExtent ¶
type TemporalExtent struct {
Interval [][]any `json:"interval"`
}
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
stac
The stac program is a command line tool for working with STAC resources.
|
The stac program is a command line tool for working with STAC resources. |
Package crawler implements a STAC resource crawler.
|
Package crawler implements a STAC resource crawler. |
extensions
|
|
internal
|
|
Package validator implements a STAC resource validation.
|
Package validator implements a STAC resource validation. |
Click to show internal directories.
Click to hide internal directories.