Data.Stac
- Package
- purescript-stac
- Repository
- jisantuc/purescript-stac
Re-exports from Client.Stac
#getCollections Source
getCollections :: String -> Effect (Promise (Either Error CollectionsResponse))Fetch the /collections route from a STAC API.
Re-exports from Model.Collection
#StacCollection Source
newtype StacCollectionA StacCollection represents a logical grouping of items and other
collections / and catalogs that shares some metadata, namely, temporal
and geographic extents and upstream providers.
Constructors
StacCollection { description :: String, extensionFields :: Object Json, extent :: StacExtent, id :: String, keywords :: Array String, license :: String, links :: Array StacLink, properties :: Json, providers :: Array StacProvider, stacExtensions :: Array String, stacVersion :: String, summaries :: Json, title :: Maybe String }
Instances
Re-exports from Model.CollectionsResponse
#CollectionsResponse Source
newtype CollectionsResponseA CollectionsResponse models the format of responses from the
/collections route
required of STAC APIs.
Constructors
CollectionsResponse { collections :: Array StacCollection, links :: Array StacLink }
Instances
Re-exports from Model.Extent
#TwoDimBbox Source
newtype TwoDimBboxA TwoDimBbox represents a bounding box in two dimensions.
Constructors
TwoDimBbox { llx :: Number, lly :: Number, urx :: Number, ury :: Number }
Instances
#TemporalExtent Source
newtype TemporalExtentA TemporalExtent represents the time span covered by a StacCollection.
It can be open on no more than one side.
Constructors
Instances
#StacExtent Source
type StacExtent = { spatial :: SpatialExtent, temporal :: Interval }A StacExtent represents the combined time and geographic extents
covered by a StacCollection.
#SpatialExtent Source
type SpatialExtent = { bbox :: Array TwoDimBbox }A SpatialExtent represents the collection of two dimensional bboxes covered
by a collection.
#Interval Source
type Interval = { interval :: Array TemporalExtent }An Interval represents the collection of time spans covered by
a StacCollection.
Re-exports from Model.JsonDate
Re-exports from Model.Link
#StacLink Source
newtype StacLinkLinks from one STAC entity to somewhere else. "Somewhere else" can be another STAC entity, for example, a collection linking to a child catalog or an item, or to somewhere else entirely, for example an item could link to a specially formatted metadata file. See the STAC specification
Constructors
StacLink { _type :: Maybe String, extensionFields :: Object Json, href :: String, rel :: StacLinkType, title :: Maybe String }
Instances
Re-exports from Model.Provider
#StacProviderRole Source
data StacProviderRoleA ProviderRole indicates what a provider was responsible for in
the provenance of some data.
Constructors
Instances
#StacProvider Source
type StacProvider = { description :: Maybe String, name :: String, roles :: Array StacProviderRole, url :: Maybe String }A StacProvider indicates the name and responsibilities of entities
responsible for some piece of the data's provenance. More information
can be found in the STAC specification.
Re-exports from Model.StacLinkType
#StacLinkType Source
data StacLinkTypeSTAC link types model many possible STAC link types based on the
Some link relation types are explicitly mentioned in the
STAC specification,
but a more complete list of suggestions can be found in
IANA link relations.
Link types that do not have a specific constructor will be parsed as VendorLinkType linkTypeString.
Constructors
SelfStacRootParentChildItemItemsSourceCollectionLicenseAlternateDescribedByNextPrevServiceDescServiceDocConformanceDataLatestVersionPredecessorVersionSuccessorVersionDerivedFromVendorLinkType String