dependencies
titiler.pgstac.dependencies ¶
titiler-pgstac dependencies.
BackendParams
dataclass
¶
Bases: DefaultDependency
backend parameters.
Source code in titiler/pgstac/dependencies.py
212 213 214 215 216 217 218 219 220 221 222 223 224 |
|
__init__ ¶
__init__(request: Request)
Initialize BackendParams
Note: Because we don't want pool
to appear in the documentation we use a dataclass with a custom __init__
method.
FastAPI will use the __init__
method but will exclude Request in the documentation making pool
an invisible dependency.
Source code in titiler/pgstac/dependencies.py
218 219 220 221 222 223 224 |
|
PgSTACParams
dataclass
¶
Bases: DefaultDependency
PgSTAC parameters.
Source code in titiler/pgstac/dependencies.py
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
|
AssetIdParams ¶
AssetIdParams(request: Request, collection_id: Annotated[str, Path(description='STAC Collection Identifier')], item_id: Annotated[str, Path(description='STAC Item Identifier')], asset_id: Annotated[str, Path(description='STAC Asset Identifier')]) -> str
STAC Asset dependency.
Source code in titiler/pgstac/dependencies.py
307 308 309 310 311 312 313 314 315 316 317 318 319 |
|
CollectionIdParams ¶
CollectionIdParams(request: Request, collection_id: Annotated[str, Path(description='STAC Collection Identifier')], ids: Annotated[Optional[str], Query(description='Array of Item ids', json_schema_extra={example: (item1, item2)})] = None, bbox: Annotated[Optional[str], Query(description='Filters items intersecting this bounding box', json_schema_extra={example: (-175.05, -85.05, 175.05, 85.05)})] = None, datetime: Annotated[Optional[str], Query(description='Filters items that have a temporal property that intersects this value.\n\nEither a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots.', openapi_examples={datetime: {value: '2018-02-12T23:20:50Z'}, closed - interval: {value: '2018-02-12T00:00:00Z/2018-03-18T12:31:12Z'}, 'open-interval-from': {value: '2018-02-12T00:00:00Z/..'}, open - interval - to: {value: '../2018-03-18T12:31:12Z'}})] = None) -> str
Collection endpoints Parameters
Source code in titiler/pgstac/dependencies.py
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
|
ItemIdParams ¶
ItemIdParams(request: Request, collection_id: Annotated[str, Path(description='STAC Collection Identifier')], item_id: Annotated[str, Path(description='STAC Item Identifier')]) -> Item
STAC Item dependency.
Source code in titiler/pgstac/dependencies.py
295 296 297 298 299 300 301 302 303 304 |
|
SearchIdParams ¶
SearchIdParams(search_id: Annotated[str, Path(description='PgSTAC Search Identifier (Hash)')]) -> str
search_id
Source code in titiler/pgstac/dependencies.py
30 31 32 33 34 35 36 37 |
|
SearchParams ¶
SearchParams(body: RegisterMosaic) -> Tuple[PgSTACSearch, Metadata]
Search parameters.
Source code in titiler/pgstac/dependencies.py
200 201 202 203 204 205 206 207 208 209 |
|
TmsTileParams ¶
TmsTileParams(z: Annotated[int, Path(description='Identifier (Z) selecting one of the scales defined in the TileMatrixSet and representing the scaleDenominator the tile.')], x: Annotated[int, Path(description='Column (X) index of the tile on the selected TileMatrix. It cannot exceed the MatrixHeight-1 for the selected TileMatrix.')], y: Annotated[int, Path(description='Row (Y) index of the tile on the selected TileMatrix. It cannot exceed the MatrixWidth-1 for the selected TileMatrix.')]) -> Tile
TileMatrixSet Tile parameters.
Source code in titiler/pgstac/dependencies.py
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
|
get_collection_id ¶
get_collection_id(pool: ConnectionPool, collection_id: str, ids: Optional[List[str]] = None, bbox: Optional[BBox] = None, datetime: Optional[str] = None) -> str
Get Search Id for a Collection.
Source code in titiler/pgstac/dependencies.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 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 87 88 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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
|
get_stac_item ¶
Get STAC Item from PGStac.
Source code in titiler/pgstac/dependencies.py
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
|