links
stac_fastapi.types.links ¶
Link helpers.
BaseLinks ¶
Create inferred links common to collections and items.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
46 47 48 49 50 51 52 53 54 55 | |
CollectionLinks ¶
Bases: BaseLinks
Create inferred links specific to collections.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | |
create_links ¶
Return all inferred links.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
84 85 86 | |
items ¶
Create the items link.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
75 76 77 78 79 80 81 82 | |
parent ¶
Create the parent link.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
71 72 73 | |
self ¶
Create the self link.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
62 63 64 65 66 67 68 69 | |
ItemLinks ¶
Bases: BaseLinks
Create inferred links specific to items.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
collection ¶
Create the collection link.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
116 117 118 119 120 121 122 123 | |
create_links ¶
Return all inferred links.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
125 126 127 128 129 130 131 132 133 | |
parent ¶
Create the parent link.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
107 108 109 110 111 112 113 114 | |
self ¶
Create the self link.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
95 96 97 98 99 100 101 102 103 104 105 | |
filter_links ¶
Remove inferred links.
Source code in stac_fastapi/types/stac_fastapi/types/links.py
16 17 18 | |
resolve_links ¶
Convert relative links to absolute links while preserving existing absolute URLs.
This function processes links and applies the base_url and proxy path to relative URLs However, it explicitly preserves absolute URLs (starting with http:// or https://) to prevent mangling of external links stored in STAC items (e.g., license URLs, external documentation links).
Source code in stac_fastapi/types/stac_fastapi/types/links.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |