-
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.
move dump of modelled xings to a release job, standardize naming
- Loading branch information
Showing
10 changed files
with
126 additions
and
148 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
File renamed without changes.
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
File renamed without changes.
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 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
#------- | ||
# release modelled crossings | ||
#------- | ||
|
||
ogr2ogr \ | ||
-f GPKG \ | ||
modelled_stream_crossings.gpkg.zip \ | ||
PG:$DATABASE_URL \ | ||
-nlt PointZM \ | ||
-nln modelled_stream_crossings \ | ||
-FID modelled_crossing_id \ | ||
-sql "select \ | ||
modelled_crossing_id, \ | ||
modelled_crossing_type, \ | ||
array_to_string(modelled_crossing_type_source, '; ') as modelled_crossing_type_source, \ | ||
transport_line_id, \ | ||
ften_road_section_lines_id, \ | ||
og_road_segment_permit_id, \ | ||
og_petrlm_dev_rd_pre06_pub_id, \ | ||
railway_track_id, \ | ||
linear_feature_id, \ | ||
blue_line_key, \ | ||
downstream_route_measure, \ | ||
wscode_ltree, \ | ||
localcode_ltree, \ | ||
watershed_group_code, \ | ||
geom \ | ||
from bcfishpass.modelled_stream_crossings" | ||
aws s3 cp modelled_stream_crossings.gpkg.zip s3://bcfishpass/modelled_stream_crossings.gpkg.zip | ||
echo "Latest modelled crossings data now available at:" | ||
echo "https://bcfishpass.s3.us-west-2.amazonaws.com/modelled_stream_crossings.gpkg.zip" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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