Documentation
¶
Index ¶
- func DecodeExtendedAsset(assetExtension Extension, assetMap map[string]any) error
- func DecodeExtendedItemProperties(itemExtension Extension, itemMap map[string]any) error
- func EncodeAssets(assets map[string]*Asset) (map[string]any, []string, error)
- func EncodeExtendedAsset(assetExtension Extension, assetMap map[string]any) error
- func EncodeExtendedItemProperties(itemExtension Extension, itemMap map[string]any) error
- func GetExtensionUris(data map[string]any) ([]string, error)
- func IsCoreItemProperty(prop string) bool
- func PopulateExtensionFromProperties(extension Extension, properties map[string]any) error
- func RegisterAssetExtension(pattern *regexp.Regexp, provider ExtensionProvider)
- func RegisterCollectionExtension(pattern *regexp.Regexp, provider ExtensionProvider)
- func RegisterItemExtension(pattern *regexp.Regexp, provider ExtensionProvider)
- func SetExtensionUris(data map[string]any, uris []string)
- type Asset
- type Catalog
- type Collection
- type CollectionsList
- type Extension
- type ExtensionProvider
- type Extent
- type Item
- type ItemsList
- type Link
- type Provider
- type SpatialExtent
- type TemporalExtent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeExtendedAsset ¶ added in v0.24.0
func DecodeExtendedItemProperties ¶ added in v0.24.0
func EncodeAssets ¶ added in v0.24.0
func EncodeExtendedAsset ¶ added in v0.24.0
func EncodeExtendedItemProperties ¶ added in v0.24.0
func GetExtensionUris ¶ added in v0.24.0
func IsCoreItemProperty ¶
func RegisterAssetExtension ¶ added in v0.24.0
func RegisterAssetExtension(pattern *regexp.Regexp, provider ExtensionProvider)
func RegisterCollectionExtension ¶ added in v0.24.0
func RegisterCollectionExtension(pattern *regexp.Regexp, provider ExtensionProvider)
func RegisterItemExtension ¶ added in v0.24.0
func RegisterItemExtension(pattern *regexp.Regexp, provider ExtensionProvider)
func SetExtensionUris ¶ added in v0.24.0
Types ¶
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"` Extensions []Extension `json:"-"` }
func (Collection) MarshalJSON ¶
func (collection Collection) MarshalJSON() ([]byte, error)
func (*Collection) UnmarshalJSON ¶ added in v0.24.0
func (collection *Collection) UnmarshalJSON(data []byte) error
type CollectionsList ¶
type CollectionsList struct { Collections []*Collection `json:"collections"` Links []*Link `json:"links"` }
type Extension ¶ added in v0.24.0
func GetAssetExtension ¶ added in v0.24.0
func GetCollectionExtension ¶ added in v0.24.0
func GetItemExtension ¶ added in v0.24.0
type ExtensionProvider ¶ added in v0.24.0
type ExtensionProvider func() Extension
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 []Extension `json:"-"` }
func (Item) MarshalJSON ¶
func (*Item) UnmarshalJSON ¶ added in v0.24.0
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.