Open rajadain opened 1 week ago
@rajadain, thanks for creating this issue and highlighting the code with the rendering rules presently used for the NHD flow lines, based on map zoom levels.
We've done some thinking about this and are prepared to help, if you would like, but might need to exchange some info to be most effective. In particular, I'm thinking that we might want a few more levels of rendering than we use for NHD. Also, a TDX-hydro strmOrder=1
is equivalent to NHD stream_order=2
, etc., so we'll want to take that into account.
cc: @kieranbartels & @ptomasula
I was able to use a script like this to bake static vector tiles that are restricted to certain stream orders: ingest-vector-tiles-2.sh. You can see the cutoffs in the file, but they are:
Zoom Levels | Stream Orders |
---|---|
0-5 | 5+ |
6-8 | 4+ |
9-11 | 3+ |
12 | 2+ |
13 | 1+ |
This is what the results look like in MMW:
@aufdenkampe please let me know if I should use different cutoffs.
There is one intermediate zoom with a strange artifact that needs to be addressed, and I don't have zoom-specific stream order specific widths figured out yet, but it seems to be moving in the direction we want.
Also, I'm currently using uncompressed vector tiles, which for this subset is about 400 MB when made upto zoom level 13. We should look into compression as well to reduce hosting costs.
Currently, the TDX streams look very dense when zoomed out:
Compare this with US Medium Resolution Streams, of which only the higher order streams are shown at low zoom levels:
This communicates the relationships and importance of streams very clearly.
This information is in the dataset:
The
strmOrder
column has an equivalent in NHD flowlines that is used for styling currently:https://github.com/WikiWatershed/model-my-watershed/blob/878a4aa53845279a21dd2dcd8bdc8bacaf4d4ebf/src/tiler/styles/streams.mss#L17-L39
Make it so that: