You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered: