Skip to content

links

link helpers.

Create inferred links common to collections and items.

base_url property

base_url

Get the base url.

url property

url

Get the current request url.

create_links() -> List[Dict[str, Any]]

Return all inferred links.

get_links(extra_links: Optional[List[Dict[str, Any]]] = None) -> List[Dict[str, Any]]

Generate all the links.

Get the links object for a stac resource by iterating through available methods on this class that start with link_.

link_root() -> Dict

Return the catalog root.

link_self() -> Dict

Return the self link.

resolve

resolve(url)

Resolve url to the current request url.

Bases: CollectionLinksBase

Create inferred links specific to collections.

link_items() -> Dict

Create the item link.

link_parent() -> Dict

Create the parent link.

link_self() -> Dict

Return the self link.

CollectionLinksBase

Bases: BaseLinks

Create inferred links specific to collections.

collection_link(rel: str = value) -> Dict

Create a link to a collection.

Bases: BaseLinks

link_next() -> Optional[Dict[str, Any]]

Create link for next page.

Bases: CollectionLinksBase

Create inferred links specific to collections.

link_collection() -> Dict

Create the collection link.

link_parent() -> Dict

Create the parent link.

link_self() -> Dict

Return the self link.

Bases: CollectionLinksBase

Create inferred links specific to items.

link_collection() -> Dict

Create the collection link.

link_parent() -> Dict

Create the parent link.

link_self() -> Dict

Create the self link.

Bases: BaseLinks

Create links for paging.

link_next() -> Optional[Dict[str, Any]]

Create link for next page.

link_prev() -> Optional[Dict[str, Any]]

Create link for previous page.

Bases: BaseLinks

Create inferred links specific to collections.

link_self() -> Dict

Return the self link.

filter_links(links: List[Dict]) -> List[Dict]

Remove inferred links.

merge_params

merge_params(url: str, newparams: Dict) -> str

Merge url parameters.