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

Issue using the Clip tool on polygons with holes #366

Open
csmemoe-aquaveo opened this issue Jul 20, 2023 · 0 comments
Open

Issue using the Clip tool on polygons with holes #366

csmemoe-aquaveo opened this issue Jul 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@csmemoe-aquaveo
Copy link

Hi,

I have a minor issue when using the clip tool on polygons with holes. When using the clip tool, I have an input polygon shapefile with 3 polygons. One of the polygons has a hole in the center. The other two polygons do not have holes. The polygon I'm using for clipping actually falls completely outside the boundary of these three polygons, so nothing should be clipped. When I run the clip tool, all the 3 polygons are preserved, but I get an additional polygon where the hole was located. So the output shapefile has 4 polygons. I have not tried the clip tool with the same input shapefile with 3 polygons and a clipping shapefile that actually clips some of the polygons, but I'd expect I'd get the same issue. Maybe this is how the tool is expected to work though?

Here's the command line you can use to duplicate this issue:

.\whitebox_tools.exe --run="Clip" --input='C:\temp\whitebox_test\clip_polys\polygons_with_holes.shp' --clip='C:\temp\whitebox_test\clip_polys\clip_boundary.shp' --output='C:\temp\whitebox_test\clip_polys\clipped_polygons.shp' -v

Here are the input files I'm using:

clip_polys.zip

I haven't looked into the code to try to fix this issue, but it's not a major show stopper for me.

Thanks,

Chris

@Afrancioni Afrancioni added the bug Something isn't working label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants