Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clip has some problems with edges #68

Closed
nspringer opened this issue Feb 7, 2015 · 3 comments
Closed

Clip has some problems with edges #68

nspringer opened this issue Feb 7, 2015 · 3 comments

Comments

@nspringer
Copy link

Clip leaves out some polygons that share vertices with the clip poly.
image

You can see missing bits of the resulting clipped file (green) along the left edge represented by the yellow squares (original data) that are visible. The red line is the clip boundary.

The clip poly was created from a dissolve of the original data so the topology should be the same.

The test files can be found here:
Data to be clipped
Clipping polygon

@nspringer
Copy link
Author

Just to confirm QGIS was able to clip correctly using the same data
image

@mbloch
Copy link
Owner

mbloch commented Feb 7, 2015

Thanks for the bug report... I'll look into this.

mbloch added a commit that referenced this issue Feb 14, 2015
@mbloch
Copy link
Owner

mbloch commented Feb 14, 2015

Just published version 0.2.16, which includes a fix for this issue.

(Before the fix, mapshaper was failing to detect when some clipped shapes contained segments that were collinear with segments in the clipping shape).

@mbloch mbloch closed this as completed Feb 14, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants