-
Notifications
You must be signed in to change notification settings - Fork 1
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 DerivedRegions from Region Union/Intersection #19
Conversation
a1a3470
to
f7e17fb
Compare
e3a258e
to
2afe417
Compare
@annehaley lmk what you think of |
a86a774
to
7f12799
Compare
Yeah, I like that organization a lot more. However I do notice that the Unless, of course, these changes depend on your vector tile optimization. In that case, would every vector dataset use tiling? |
I see what you mean. I do think they should be handled differently, but I'm confused on how it would work in this scenario. For a dataset that does not have If we don't have a clear answer to the above question, I think it might be okay to just wait until the vector tiles optimization is merged in. In that case, derived regions may be the only "user" of vector layers, since we could just use vector tiles for everything else. We could even use vector tiles for derived regions as well, but that might be overkill. What do you think? |
Also, I'll work to resolve the current conflicts since #20 is now merged. |
For Datasets, I definitely want to get your tiling optimization involved, but this doesn't need to depend on it. I still think the size of the geojson data should be our threshold for determining whether vector data should be tiled (whether that be a vector |
067da3b
to
58d9481
Compare
This has been addressed in |
I think that makes sense, although I'll point out that I think the current threshold for this of 100mb is far too high, as I see lag when rendering datasets even in the single MB range of sizes. So realistically the range of sizes that we can afford not to tile with vector tiles may end up being small, but nonetheless I agree. Regarding creating too many VectorTile objects, I don't think that's a real concern right now. We would have to expand much beyond the scope of the current project to create enough of these tiles to see performance issues, and even if it came to that, indexing / optimization should get us very far in that regard. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a first pass at a review; I haven't checked out the branch to try it yet. But These are just some questions and organization suggestions I had from just looking at the diff.
uvdat/core/migrations/0010_derivedregion_derivedregion_unique-name-per-city.py
Outdated
Show resolved
Hide resolved
4ad5916
to
7764baa
Compare
30bd4c3
to
2e0b8d4
Compare
@AlmightyYakob I tried out the new Active Layers overlay and thought it could use a couple things:
I made these changes in 2e0b8d4, let me know what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for accommodating my suggestions from the previous review :)
The only things I thought of on this pass were minor. I made a few commits for small things, let me know what you think.
web/src/data.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content of this file is good, just wondering if we can give it a more specific name / location? Maybe web/src/map/utils.ts
?
web/src/layers.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this file can go in your new map
directory, rather than at the src
level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both this and the data.ts
file are used in other components outside of the map
directory. Would you be okay leaving this as-is for now, and fixing it through #27?
Just checked it out, looks great! Thanks for those changes. |
f1f86e5
to
41c944c
Compare
Closes #14
This PR adds derived region creation functionality, currently only allowing individual region union as a way to create these derived regions. More functionality will be implemented as part of #25.
This PR is rather bulky, as it involves a large re-work to the web app. Ideally this rework wouldn't be bundled into this PR, but it was done in the pursuit of supporting Derived Regions. The plan is to merge this PR with as little additional changes as possible, now that the bulk of the re-work is done, and derived regions are supported in some fashion. Further iteration can be done in follow up PRs.