Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional 'Basin / area' spatial table #1200

Merged
merged 5 commits into from
Mar 1, 2024
Merged

Add optional 'Basin / area' spatial table #1200

merged 5 commits into from
Mar 1, 2024

Conversation

visr
Copy link
Member

@visr visr commented Mar 1, 2024

Fixes #960
It looks like this when loaded in QGIS:

image

The color is still random as I didn't implement a renderer yet, though that can be a follow up.
I did have to take special care to make sure these polygons were not plotted on top, hiding the model.

MultiPolygons and missing polygons also work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Since this schema is not defined in Julia, I had to add it to the template here. The other two spatial schemas, Node and Edge, are also not defined there. It is slightly different in that it has a GeoSeries.

Copy link
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

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

Looks good to me!

## Basin / area

The optional area table is not used during computation, but provides a place to associate areas in the form of polygons to Basins.
Using this makes it easier to recognize which water or land surfaces are represented by Basins.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Using this makes it easier to recognize which water or land surfaces are represented by Basins.
Using this makes it easier to recognize which water or land surfaces are represented by basins.

Was this intentionally capitalized?

Copy link
Member Author

@visr visr Mar 1, 2024

Choose a reason for hiding this comment

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

Yeah I prefer to use capitals when referring to particular node types, to distinguish from a general drainage basin.

@Hofer-Julian Hofer-Julian merged commit 8fa48b6 into main Mar 1, 2024
21 checks passed
@Hofer-Julian Hofer-Julian deleted the basin-area branch March 1, 2024 16:13
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.

Add 'Basin / area' polygon layer with the geometric area of the basin
2 participants