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

Geometry causes "Unable to pop() SweepEvent" error to be thrown #58

Closed
mfogel opened this issue Jan 9, 2019 · 0 comments
Closed

Geometry causes "Unable to pop() SweepEvent" error to be thrown #58

mfogel opened this issue Jan 9, 2019 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mfogel
Copy link
Owner

mfogel commented Jan 9, 2019

The performing a union() on the following polygons results in the library crashing with a "Unable to pop() SweepEvent ... from queue" error.

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": null,
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [-85.635, 34.546],
            [-85.64162299941661, 34.546027776790396],
            [-85.64157326850268, 34.53498609425157],
            [-85.635, 34.546]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": null,
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [-85.644, 34.55],
            [-85.64162299941658, 34.54602777678346],
            [-85.64157326850268, 34.53498609425157],
            [-85.643, 34.54],
            [-85.635, 34.546],
            [-85.644, 34.55]
          ]
        ]
      }
    }
  ]
}

One of those polygons is a bit ugly in that it has a self-crossing ring, but polygon-clipping should be able to handle that just fine.

@mfogel mfogel added the bug Something isn't working label Jan 9, 2019
@mfogel mfogel self-assigned this Jan 9, 2019
@mfogel mfogel changed the title Geometry that causes "Unable to pop() SweepEvent" Geometry that causes "Unable to pop() SweepEvent" error to be thrown Jan 9, 2019
@mfogel mfogel changed the title Geometry that causes "Unable to pop() SweepEvent" error to be thrown Geometry causes "Unable to pop() SweepEvent" error to be thrown Jan 10, 2019
@mfogel mfogel added this to the v0.11 milestone Jan 10, 2019
@mfogel mfogel closed this as completed in a54cdf2 Jan 10, 2019
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

1 participant