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

RangeError: Maximum call stack size exceeded #65

Closed
mfogel opened this issue Jan 22, 2019 · 1 comment
Closed

RangeError: Maximum call stack size exceeded #65

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

Comments

@mfogel
Copy link
Owner

mfogel commented Jan 22, 2019

Performing a union() on these shapes results the following error being thrown.

RangeError: Maximum call stack size exceeded
    at Segment._ringsAfter (webpack://polygon-clipping/./src/segment.js?:475:32)
    at Segment.ringsAfter (webpack://polygon-clipping/./src/segment.js?:470:77)
    at Segment._ringsBefore (webpack://polygon-clipping/./src/segment.js?:464:50)
    at Segment.ringsBefore (webpack://polygon-clipping/./src/segment.js?:457:77)
    at Segment._ringsAfter (webpack://polygon-clipping/./src/segment.js?:476:24)
    at Segment.ringsAfter (webpack://polygon-clipping/./src/segment.js?:470:77)
    ...
@mfogel mfogel added the bug Something isn't working label Jan 22, 2019
@mfogel mfogel self-assigned this Jan 22, 2019
@mfogel mfogel added this to the v0.11.2 milestone Jan 22, 2019
@mfogel
Copy link
Owner Author

mfogel commented Jan 22, 2019

Simplified set of coordinates that triggers the error:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": null,
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [-46.654032, -0.8788341],
            [-46.654008761408086, -0.87880625],
            [-46.65402, -0.878806],
            [-46.654032, -0.8788341]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": null,
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [-46.654032, -0.8788341],
            [-46.654, -0.87883],
            [-46.653968, -0.8787574],
            [-46.654032, -0.8788341]
          ]
        ]
      }
    }
  ]
}
Loading

@mfogel mfogel closed this as completed in ae82c45 Jan 22, 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