You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stream order - add parent/max and a function for filtering MVT (#123)
* fix#122
* parent table no longer exists
* uncomment, drop temp stream order tables
* remove obsolete refs
* add the files
* remove parent order from docs script
* add function to server streams as MVT, filtering on max order of blueline, based on zoom level
* add missing file
* note new function in changes
* document new function
# load data per group so inserts are in managable chunks
225
-
forwsgin$(GROUPS);do \
226
-
$(PSQL) -v wsg=$$wsg -f $<;\
227
-
done
228
-
# comment and index after load
229
-
$(PSQL) -c "COMMENT ON TABLE whse_basemapping.fwa_stream_order_parent IS 'Streams (as blue_line_key) and the stream order of the stream they flow into';"
230
-
$(PSQL) -c "COMMENT ON COLUMN whse_basemapping.fwa_stream_order_parent.blue_line_key IS 'FWA blue_line_key';"
231
-
$(PSQL) -c "COMMENT ON COLUMN whse_basemapping.fwa_stream_order_parent.stream_order_parent IS 'The stream_order of the stream the blue_line_key flows into';"
232
-
touch $@
233
-
234
228
# USA (lower 48) watersheds - USGS HU12 polygons
235
229
# note that this is possbile to download via /vsizip/vsicurl but a direct download seems faster
Return FWA streams as MVT, filtering by `stream_order_max` (the maximum order of a given stream / `blue_line_key`) based on the provided zoom level.
327
+
Enables fast display of source 1:20,000 streams at all zoom levels (show full length of higher order streams at lower zooms), using `pg_tileserv`.
328
+
329
+
Note: for databases with modest resources, tiles at low zoom levels may be slow to render. The function should still be speedy enough for general use if [pg_tileserv is behind a cache](https://github.com/CrunchyData/pg_tileserv#basic-operation).
-- Birkenhead River, coding problem due to distributary
2
+
UPDATEwhse_basemapping.fwa_stream_networks_sp
3
+
SET local_watershed_code = fwa_watershed_code
4
+
WHERE linear_feature_id IN (701704850,701705120,701705172,701705231,701704801,701705079,701705158,701704795,701704635,701705099);
5
+
6
+
-- Scar Creek
7
+
UPDATEwhse_basemapping.fwa_stream_networks_sp
8
+
SET local_watershed_code = fwa_watershed_code
9
+
WHERE linear_feature_id =66063417;
10
+
11
+
-- Kaouk River
12
+
UPDATEwhse_basemapping.fwa_stream_networks_sp
13
+
SET local_watershed_code ='930-665189-814505-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000'
14
+
WHERE linear_feature_id IN (710531051, 710530976, 710530984);
15
+
16
+
UPDATEwhse_basemapping.fwa_stream_networks_sp
17
+
SET local_watershed_code ='930-665189-862690-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000'
18
+
WHERE linear_feature_id =710530993;
19
+
20
+
-- Memekay
21
+
UPDATEwhse_basemapping.fwa_stream_networks_sp
22
+
SET local_watershed_code ='920-722273-347291-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000-000000'
23
+
WHERE linear_feature_id IN (710445801, 710446876);
0 commit comments