-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
14,411 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
stac-api-validator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# This file was autogenerated by uv via the following command: | ||
# uv pip compile scripts/requirements.in | ||
attrs==23.2.0 | ||
# via | ||
# jsonschema | ||
# referencing | ||
certifi==2022.12.7 | ||
# via | ||
# requests | ||
# stac-api-validator | ||
charset-normalizer==3.3.2 | ||
# via requests | ||
click==8.1.7 | ||
# via | ||
# stac-api-validator | ||
# stac-check | ||
# stac-validator | ||
deepdiff==6.7.1 | ||
# via stac-api-validator | ||
idna==3.7 | ||
# via requests | ||
jsonschema==4.21.1 | ||
# via | ||
# stac-api-validator | ||
# stac-check | ||
# stac-validator | ||
jsonschema-specifications==2023.12.1 | ||
# via jsonschema | ||
more-itertools==8.14.0 | ||
# via stac-api-validator | ||
ordered-set==4.1.0 | ||
# via deepdiff | ||
orjson==3.10.1 | ||
# via pystac | ||
pystac==1.10.0 | ||
# via | ||
# pystac-client | ||
# stac-api-validator | ||
pystac-client==0.6.1 | ||
# via stac-api-validator | ||
python-dateutil==2.9.0.post0 | ||
# via | ||
# pystac | ||
# pystac-client | ||
python-dotenv==1.0.1 | ||
# via stac-check | ||
pyyaml==6.0 | ||
# via | ||
# stac-api-validator | ||
# stac-check | ||
referencing==0.35.0 | ||
# via | ||
# jsonschema | ||
# jsonschema-specifications | ||
requests==2.31.0 | ||
# via | ||
# pystac-client | ||
# stac-api-validator | ||
# stac-check | ||
# stac-validator | ||
rpds-py==0.18.0 | ||
# via | ||
# jsonschema | ||
# referencing | ||
shapely==1.8.4 | ||
# via stac-api-validator | ||
six==1.16.0 | ||
# via python-dateutil | ||
stac-api-validator==0.6.1 | ||
stac-check==1.3.3 | ||
# via stac-api-validator | ||
stac-validator==3.3.2 | ||
# via | ||
# stac-api-validator | ||
# stac-check | ||
urllib3==2.2.1 | ||
# via requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
args="stac-server/data/sentinel-2/*" | ||
build_args="--no-default-features" | ||
|
||
if [ $# -eq 1 ]; then | ||
if [ "$1" = "--pgstac" ]; then | ||
args="$args --pgstac postgres://username:password@localhost/postgis" | ||
build_args="$build_args -F pgstac" | ||
else | ||
echo "Unknown argument: $1" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
cargo build -p stac-cli $build_args | ||
cargo run $build_args -- serve $args & | ||
server_pid=$! | ||
echo "server_pid=$server_pid" | ||
set +e | ||
scripts/wait-for-it.sh localhost:7822 && \ | ||
stac-api-validator \ | ||
--root-url http://localhost:7822 \ | ||
--conformance core \ | ||
--conformance features \ | ||
--conformance item-search \ | ||
--collection sentinel-2-c1-l2a \ | ||
--geometry '{"type":"Point","coordinates":[-105.07,40.08]}' | ||
status=$? | ||
set -e | ||
kill $server_pid | ||
exit $status |
Oops, something went wrong.