-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli_workflows.sh
More file actions
37 lines (29 loc) · 968 Bytes
/
cli_workflows.sh
File metadata and controls
37 lines (29 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# CLI Workflows — Common abovepy command-line patterns.
#
# Demonstrates:
# 1. Search with feet-based buffers
# 2. Provenance output for documentation
# 3. Download with concurrent workers
# 4. Estimate before download
# 5. Generate tile URLs for web maps
set -e
echo "=== Search with 500ft buffer ==="
abovepy search --point=-84.87,38.20 --buffer-feet 500 -p dem_phase3
echo ""
echo "=== Provenance metadata (JSON) ==="
abovepy search --county Franklin -p dem_phase3 --format provenance
echo ""
echo "=== Estimate download size ==="
abovepy estimate --county Franklin -p ortho_phase3
echo ""
echo "=== Download DEM tiles ==="
abovepy download --county Franklin -p dem_phase3 -o ./output/franklin_dem --workers 8
echo ""
echo "=== Generate hillshade tile URL ==="
abovepy tile-url --bbox=-84.9,38.15,-84.8,38.25 --algorithm hillshade
echo ""
echo "=== Preview image URL ==="
abovepy preview --county Franklin -p ortho_phase3
echo ""
echo "Done!"