Skip to content

Commit 316c9eb

Browse files
#671 Upgrade to stac-fastapi-pgstac v4.0.3 (#674)
1 parent 8ef0be6 commit 316c9eb

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

API/Backend/Stac/routes/stac.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ const Utils = require("../../../utils.js");
1313

1414
// Wraps /stac/collections to include occurrences
1515
router.get("/collections", function (req, res, next) {
16+
// Pass a query parameters along
17+
const queryString = req.originalUrl.split("?")[1] || "";
18+
const fullQueryString = queryString ? `?${queryString}` : "";
19+
1620
fetch(
1721
`http://${
1822
process.env.IS_DOCKER === "true" ? "stac-fastapi" : "localhost"
19-
}:${process.env.STAC_PORT || 8881}/collections`,
23+
}:${process.env.STAC_PORT || 8881}/collections${fullQueryString}`,
2024
{
2125
method: "GET",
2226
headers: { "content-type": "application/json" },

configure/src/pages/STAC/STAC.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ export default function STAC() {
314314
const querySTAC = () => {
315315
calls.api(
316316
"stac_collections",
317-
{},
317+
{
318+
limit: 2000,
319+
},
318320
(res) => {
319321
if (res?.body?.collections != null)
320322
dispatch(setStacCollections(res.body.collections));

docker-compose.sample.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
- ./ssl:/usr/src/app/ssl
3030

3131
stac-fastapi:
32-
image: ghcr.io/stac-utils/stac-fastapi-pgstac:3.0.0
32+
image: ghcr.io/stac-utils/stac-fastapi-pgstac:4.0.3
3333
ports:
3434
- 8881
3535
environment:

python-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- python-dotenv[cli]==1.0.1
1616
- uvicorn==0.30.6
1717
- psycopg[binary,pool]==3.2.1
18-
- stac-fastapi-pgstac==3.0.0
18+
- stac-fastapi-pgstac==4.0.3
1919
- tipg==0.7.2
2020
- titiler.application==0.18.6
2121
- titiler-pgstac==1.4.0

0 commit comments

Comments
 (0)