-
Notifications
You must be signed in to change notification settings - Fork 0
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
first round geometry.voronoi_skeleton()
tests
#27
Conversation
sgeop/geometry.py
Outdated
snap_to : None | gpd.GeoSeries = None | ||
Series of geometries that shall be connected to the skeleton. | ||
max_segment_length: int = 1 | ||
... | ||
distance : float |
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.
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.
Additional vertices will be added so that all line segments are no longer than this value. Must be greater than 0.
@martinfleis Do we think I should:
|
I have no clue where the issue comes from but I'd bump minimum versions to whatever works. We don't need to service legacy code here. |
@@ -1,6 +1,6 @@ | |||
# `sgeop`: Street Geometry Processing Toolkit | |||
|
|||
[![Continuous Integration](https://github.com/uscuni/sgeop/actions/workflows/testing.yml/badge.svg)](https://github.com/uscuni/sgeop/actions/workflows/testing.yml) | |||
[![Continuous Integration](https://github.com/uscuni/sgeop/actions/workflows/testing.yml/badge.svg)](https://github.com/uscuni/sgeop/actions/workflows/testing.yml) [![codecov](https://codecov.io/gh/uscuni/sgeop/branch/main/graph/badge.svg?token=VNn0WR5JWT)](https://codecov.io/gh/uscuni/sgeop) |
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 have requested access to configure codecov.io
for the uscuni/sgeop
repo. Not sure if a notification was sent to you or not @martinfleis ?
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.
approved
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.
Still nothing showing up. 99% sure it's because I am not listed as a member of the uscuni
organization (and that's why we couldn't work it out for simplification
either). Can you add me there and we'll see if that takes care of it?
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.
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 is done. If not, please send me the link where I need to click something.
Something in this PR leads to the following failure:
Need to be running a full |
OK, @martinfleis – this is now ready for review. |
geometry.voronoi_skeleton(
) testsgeometry.voronoi_skeleton()
tests
@@ -1,6 +1,6 @@ | |||
# `sgeop`: Street Geometry Processing Toolkit | |||
|
|||
[![Continuous Integration](https://github.com/uscuni/sgeop/actions/workflows/testing.yml/badge.svg)](https://github.com/uscuni/sgeop/actions/workflows/testing.yml) | |||
[![Continuous Integration](https://github.com/uscuni/sgeop/actions/workflows/testing.yml/badge.svg)](https://github.com/uscuni/sgeop/actions/workflows/testing.yml) [![codecov](https://codecov.io/gh/uscuni/sgeop/branch/main/graph/badge.svg?token=VNn0WR5JWT)](https://codecov.io/gh/uscuni/sgeop) |
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 is done. If not, please send me the link where I need to click something.
sgeop/geometry.py
Outdated
snap_to : None | gpd.GeoSeries = None | ||
Series of geometries that shall be connected to the skeleton. | ||
max_segment_length: int = 1 | ||
... | ||
distance : float |
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.
Additional vertices will be added so that all line segments are no longer than this value. Must be greater than 0.
else: | ||
return _poly | ||
else: | ||
return shapely.polygonize(collection).buffer(0) |
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.
Same here
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.
See above.
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.
shapely.make_valid()
is not fixing the problem locally (perhaps solution in current dev) -- still need .buffer(0)
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.
Without .buffer(0)
still seeing:
FAILED sgeop/tests/test_geometry.py::TestVoronoiSkeleton::test_square[array-True-0.1] - AttributeError: 'GeometryCollection' object has no attribute 'exterior'
FAILED sgeop/tests/test_geometry.py::TestVoronoiSkeleton::test_square_snap_to[list-True-0.001] - AttributeError: 'GeometryCollection' object has no attribute 'exterior'
FAILED sgeop/tests/test_geometry.py::TestVoronoiSkeleton::test_square[list-True-0.001] - AttributeError: 'GeometryCollection' object has no attribute 'exterior'
FAILED sgeop/tests/test_geometry.py::TestVoronoiSkeleton::test_square_snap_to[array-True-0.1] - AttributeError: 'GeometryCollection' object has no attribute 'exterior'
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.
Alright, let's give this a go.
This PR:
geometry.voronoi_skeleton(
) testsgeometry.voronoi_skeleton()
#26geometry.voronoi_skeleton()
? #25