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

Error: Unable to pop() SweepEvent ... from queue. #68

Closed
mfogel opened this issue Feb 1, 2019 · 1 comment
Closed

Error: Unable to pop() SweepEvent ... from queue. #68

mfogel opened this issue Feb 1, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mfogel
Copy link
Owner

mfogel commented Feb 1, 2019

Performing a union on these 7 shapes results in the following error being thrown:

Error: Unable to pop() SweepEvent #4904 [18.1054406, 60.4686654] from queue. Please file a bug report.
    at Operation.run (/Users/mfogel/polygon-clipping/dist/polygon-clipping.cjs.js:1830:17)
    at Object.union (/Users/mfogel/polygon-clipping/dist/polygon-clipping.cjs.js:1861:20)
@mfogel mfogel added the bug Something isn't working label Feb 1, 2019
@mfogel mfogel added this to the v0.12.3 milestone Feb 1, 2019
@mfogel mfogel self-assigned this Feb 1, 2019
@mfogel
Copy link
Owner Author

mfogel commented Feb 4, 2019

Here's a simplified version of those shapes that still reproduces the error:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": null,
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [18.1054406, 60.4686654],
              [18.1052796, 60.4687447],
              [18.10553, 60.4685],
              [18.1054406, 60.4686654]
            ]
          ],
          [
            [
              [18.1054406, 60.4686654],
              [18.10536875, 60.46870078947205],
              [18.10542, 60.4685],
              [18.1054406, 60.4686654]
            ]
          ],
          [
            [
              [18.1054406, 60.4686654],
              [18.10557, 60.4687],
              [18.1052796, 60.4687447],
              [18.1054406, 60.4686654]
            ]
          ]
        ]
      }
    }
  ]
}

screen shot 2019-02-04 at 18 19 07

@mfogel mfogel closed this as completed in c4e3b85 Feb 6, 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