update all rivers from the new data source
This commit is contained in:
@@ -75,7 +75,7 @@ test-rivers: .faux_test-rivers ## Rivers tests (slow)
|
|||||||
slides: $(SLIDES)
|
slides: $(SLIDES)
|
||||||
|
|
||||||
.PHONY: refresh-rivers
|
.PHONY: refresh-rivers
|
||||||
refresh-rivers: rivers.sql rivers-50.sql rivers-250.sql ## Refresh river data from national datasets
|
refresh-rivers: rivers-10.sql rivers-50.sql rivers-250.sql ## Refresh river data from national datasets
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
# The report, quick version
|
# The report, quick version
|
||||||
@@ -217,8 +217,8 @@ salvis-wm-overlaid-250k-zoom_1COLOR = orange
|
|||||||
bash db -f init.sql
|
bash db -f init.sql
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
.faux_db: .faux_db_pre rivers.sql
|
.faux_db: .faux_db_pre rivers-10.sql
|
||||||
bash db -f rivers.sql
|
bash db -f rivers-10.sql
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
.faux_test: test.sql wm.sql .faux_db
|
.faux_test: test.sql wm.sql .faux_db
|
||||||
@@ -313,6 +313,6 @@ $(1): aggregate-rivers.sql gdr2pgsql .faux_db_pre
|
|||||||
./gdr2pgsql "$$($(2))" "$(3)" "$(RIVERFILTER)" "$(1)"
|
./gdr2pgsql "$$($(2))" "$(3)" "$(RIVERFILTER)" "$(1)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call rivers_template,rivers.sql,GDB10LT,wm_rivers))
|
$(eval $(call rivers_template,rivers-10.sql,GDB10LT,wm_rivers))
|
||||||
$(eval $(call rivers_template,rivers-50.sql,GDR50LT,wm_rivers_50))
|
$(eval $(call rivers_template,rivers-50.sql,GDR50LT,wm_rivers_50))
|
||||||
$(eval $(call rivers_template,rivers-250.sql,GDR250LT,wm_rivers_250))
|
$(eval $(call rivers_template,rivers-250.sql,GDR250LT,wm_rivers_250))
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ It contains a few supporting files, notably:
|
|||||||
- `aggregate-rivers.sql` combines multiple river objects (linestrings or
|
- `aggregate-rivers.sql` combines multiple river objects (linestrings or
|
||||||
multilinestrings) to a single one.
|
multilinestrings) to a single one.
|
||||||
- `init.sql` initializes PostGIS database for running the tests.
|
- `init.sql` initializes PostGIS database for running the tests.
|
||||||
- `rivers.sql` is an OpenStreetMap snapshot of select rivers (`Makefile`
|
- `rivers-*.sql` are national dataset snapshots of rivers (`Makefile`
|
||||||
contains code to update them).
|
contains code to update them).
|
||||||
- ... and a few more files necessary to build the paper.
|
- ... and a few more files necessary to build the paper.
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ clean Clean the current working directory
|
|||||||
clean-tables Remove tables created during unit or rivers tests
|
clean-tables Remove tables created during unit or rivers tests
|
||||||
help Print this help message
|
help Print this help message
|
||||||
wc Character and page count
|
wc Character and page count
|
||||||
refresh-rivers Refresh rivers.sql from Open Street Maps
|
refresh-rivers Refresh rivers-*.sql from Open Street Maps
|
||||||
```
|
```
|
||||||
|
|
||||||
To execute the algorithm, run:
|
To execute the algorithm, run:
|
||||||
|
|||||||
54
IV/rivers-10.sql
Normal file
54
IV/rivers-10.sql
Normal file
File diff suppressed because one or more lines are too long
52
IV/rivers-250.sql
Normal file
52
IV/rivers-250.sql
Normal file
File diff suppressed because one or more lines are too long
54
IV/rivers-50.sql
Normal file
54
IV/rivers-50.sql
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user