-
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
Comments #7
base: main
Are you sure you want to change the base?
Comments #7
Conversation
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.
yea and the buffer we use for the fuzzy contiguity is set to be higher than the simplification tolerance
|
||
### drop any remaining duplicates | ||
## sometimes -1s have multiple tesselation cells | ||
tessellation = tessellation[~tessellation.index.duplicated()].sort_index() | ||
# are they identical or have identical id? |
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.
identical id
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.
Then we should keep all geoms and remap ids, no?
|
||
# drop empty spaces with no buildings and a positive index, | ||
# leave negatives in the geodataframe | ||
tessellation = tessellation.explode() | ||
inp, res = buildings.geometry.centroid.sindex.query(tessellation.geometry) | ||
to_keep = np.append(np.unique(inp), np.where(tessellation.index.values < 0)[0]) | ||
tessellation = tessellation.iloc[to_keep] | ||
# why does this happen? |
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 means that a tessellation cell can potentially span across two enclosures? doesn't it break stuff?
yes, I think i put it there because sometimes it happens due to weird enclosure shapes, so I try to drop the parts that dont have buildings in them otherwise it results in a werid topology where two ETCs that are far away from each other might be neighbours
i'll have to find a specific example
Not to be merged but it contains my comments and questions.
So far for primary characters generation pipeline. All characters look correct!