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
Various: Simpler default geometries #1139
Conversation
@nvkelso @thisisaaronland - any thoughts on where to store the existing geometry in the ~120MB New Zealand file? I could store it as an alt geometry, though |
The original, super detailed New Zealand geometry came from Quattroshapes so someone can always just go find it again there. I'm fine removing it completely from WOF by not storing it as an alt-geom (and not even stashing it on S3 somewhere). |
It is late and I am tired so something something something... but: Fundamentally the issue is that there will always be geometries (or records) that will bump up against the limits of service X, or at least the potential will always exist so in that regard things like NZ because they force us to think about how to reconcile things. My preference would be to create an But like I said, I am tired... |
Proposal:
|
I'm fine with that proposal. Right now we have two geometries over 50MB -- one for Australia, and one for New Zealand. If we go this route, I'll double check all records' file sizes before moving anything to a new repo and update this PR accordingly. |
I'm fine with this at first blush. I'd like a couple hours to think through any possible issues with the naming conventions. |
Sorry this fell through the cracks. I had a think about this over the weekend. I think the correct way to deal with this is to create a new set of
Calling stuff
It also means that its easy to create/check/work with "alt" directories since it's a simple, consistent check on the repo name ( |
Sounds like a plan.. two questions:
|
To the first point: I don't think so. There will always file limits somewhere and ground truth geometries will always get bigger as sensors/measurements get more precise. To the second point: The plan here is to move all alt geometries in to |
I like this approach. In terms of workflow, suggest merging existing PRs that are in-flight first as they have alt-geom changes that will be easier to deal with once than 2ce. |
PR is ready for review. I've opened #1297 to track moving all alt-geometry files to a new repository.. this PR swaps geometries around within existing directories. I've also opened #1296 as a follow-up PIP task. This PR swaps around geometries for records with large file sizes, cleans up properties (current=1, names, etc), alt-geometry files, and updated the /cc @nvkelso |
Please fixup New Zealand – it looks like a bad dissolve that left interior holes as stipples along the interior admin1 boundaries. Please also run the same validity checks as the last PR to make sure these new geoms don't have any problems. |
This includes the dozen+ feature changes I expected to see. I've spot checked file size and they seem reasonable to me. Spot checked property changes is is reasonable. The .gitignore file change LGTM. Will review again once NZ geom is cleaned up and shapes are validated. |
The most recent commit validates all geometries (three were caught as invalid).. I also swapped the bunk NZ ( |
So one last thing... Please set all the simplified records so they include a revgeo property that points to the revgeo alt geometry that contains the high res original shape. |
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.
LGTM, this one was a long time in the making!
Add the revgeo property pointer and then we're good to go.
Most recent commit adds the reversegeo pointer to the more precise quattroshapes geometry. |
Where is the repo with the large geometries? |
This PR moves the large geometries to alt files.. I'll track the new repo in #1297. This will be done as soon as I clear out the last of the open PRs. I think we are all in agreement that alt-geometry files will be moved to a new |
Fixes #1072. Fixes #834.
Work performed in this PR:
src:geom
andsrc:geom_alt
properties.1158869063.geojson
,1158869033.geojson
,1158869045.geojson
,1158869069.geojson
) that were recently added via Canada: Update counties #1235..gitattributes
file to remove New Zealand default file and add New Zealand alt file.