Skip to content

Conversation

@lindsayplatt
Copy link
Contributor

Shows basins by HUCs and then rivers. Specific to the IWS-basins viz, but we may end up merging some of the workflow over to the main branch at some point. Still waiting for this to build locally before calling it complete, but thought I'd put this up now.

p1_huc4s_simp_sf,
p1_huc4s_sf %>%
st_intersection(p1_conus_sf) %>%
rmapshaper::ms_simplify(0.01)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add a st_buffer(0) before st_intersection to bypass a self-intersection topology error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I add that in here? I didn't have to do that :(

Comment on lines 111 to +114
tar_target(
# Returns a list so that each river can be a separate SVG path
p2_river_coords,
sf_to_coords_by_id(needs_a_solution,
sf_to_coords_by_id(p2_rivers_all_sf,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having separate SVG paths for each comid is probably more resolution than is needed for most projects. It might reduce file sizes to combine all separate paths that are the same style. Instead of having streams grouped by comid they could be grouped by basin and streamorder, so we can select by basin and style by streamorder. If streams are not connected we can draw a jump in a line by adding zm between path d's .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we did want it by comid, the map will probably be much more local map

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If streams are not connected we can draw a jump in a line by adding zm between path d's .

I'd love to hear more about this. The main reason I did it this way was so they wouldn't be connected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants