Skip to content

Commit

Permalink
Merge pull request #170 from OpenDRR/update_hexbin1km_feb2022
Browse files Browse the repository at this point in the history
Update hexbin1km feb2022
  • Loading branch information
wkhchow authored Feb 9, 2022
2 parents 8371831 + c62364f commit 59a8d02
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/add_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,12 @@ read_github_token() {
# from the OpenDRR/model-factory repository
get_model_factory_scripts() {
# TODO: Make this more robust
curl -L -o model-factory.tar.gz https://github.com/OpenDRR/model-factory/archive/refs/tags/v1.3.1.tar.gz
curl -L -o model-factory.tar.gz https://github.com/OpenDRR/model-factory/archive/refs/tags/v1.3.2.tar.gz
tar -xf model-factory.tar.gz

# Copy model-factory scripts to working directory
# TODO: Find ways to keep these scripts in their place without copying them all to WORKDIR
RUN cp model-factory-1.3.1/scripts/*.* .
RUN cp model-factory-1.3.2/scripts/*.* .
#rm -rf model-factory
}

Expand Down Expand Up @@ -498,7 +498,9 @@ import_census_boundaries() {
RUN run_ogr2ogr "Geometry_$i"
done

for i in HexGrid_5km HexGrid_10km HexGrid_25km HexGrid_50km HexGrid_GlobalFabric SAUID_HexGrid SAUID_HexGrid_5km_intersect SAUID_HexGrid_10km_intersect SAUID_HexGrid_25km_intersect SAUID_HexGrid_50km_intersect SAUID_HexGrid_100km_intersect SAUID_HexGrid_GlobalFabric_intersect; do
for i in HexGrid_1km_AB HexGrid_1km_BC HexGrid_1km_MB HexGrid_1km_NB HexGrid_1km_NL HexGrid_1km_NS HexGrid_1km_NT HexGrid_1km_NU HexGrid_1km_ON HexGrid_1km_PE HexGrid_1km_QC HexGrid_1km_SK HexGrid_1km_YT HexGrid_5km \
HexGrid_10km HexGrid_25km HexGrid_50km HexGrid_GlobalFabric SAUID_HexGrid SAUID_HexGrid_1km_intersect SAUID_HexGrid_5km_intersect SAUID_HexGrid_10km_intersect SAUID_HexGrid_25km_intersect \
SAUID_HexGrid_50km_intersect SAUID_HexGrid_100km_intersect SAUID_HexGrid_GlobalFabric_intersect; do
RUN run_ogr2ogr "hexbin_4326/$i"
done

Expand Down

0 comments on commit 59a8d02

Please sign in to comment.