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

Comments #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Comments #7

wants to merge 2 commits into from

Conversation

martinfleis
Copy link
Collaborator

Not to be merged but it contains my comments and questions.

So far for primary characters generation pipeline. All characters look correct!

Copy link
Contributor

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?
Copy link
Contributor

Choose a reason for hiding this comment

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

identical id

Copy link
Collaborator Author

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?
Copy link
Contributor

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

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