Module

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 StacCollection

A 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

Instances

Re-exports from Model.CollectionsResponse

Re-exports from Model.Extent

#TwoDimBbox Source

newtype TwoDimBbox

A TwoDimBbox represents a bounding box in two dimensions.

Constructors

Instances

#TemporalExtent Source

newtype TemporalExtent

A 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.

#OneOrBoth Source

data OneOrBoth a

Predicate requiring at least one non-Nothing item in a list of two items. The implementation implies SizeEqualTo D2 but I don't know how to express that predicate as a dependency.

Instances

#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

Re-exports from Model.Provider

#StacProviderRole Source

data StacProviderRole

A 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 StacLinkType

STAC 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

Instances

Re-exports from Model.Testing

#maybe Source

maybe :: forall a. Gen a -> Gen (Maybe a)

#alphaStringGen Source