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

Issue with this polygon: #52

Open
TextTL opened this issue Mar 6, 2023 · 1 comment
Open

Issue with this polygon: #52

TextTL opened this issue Mar 6, 2023 · 1 comment

Comments

@TextTL
Copy link

TextTL commented Mar 6, 2023

I'm having problem with this polygon with the example codes:

[
[ 902.955, 1272.35 ],
[ 905.23864, 1272.35 ],
[ 905.23864, 1434.2848399999998 ],
[ 902.955, 1434.2848399999998 ],
[ 902.955, 1272.35 ]
]

var margined = offset.data(coordinates).margin(10);

Edges of the same polygon overlap [ 900.23864, 1442.9450940378442 ] [ 910.23864, 1442.9450940378442 ] [ 900.6344919243114, 1442.9450940378442 ] [ 910.23864, 1442.9450940378442 ]
brute
node_modules\martinez-polygon-clipping\src\index.js:418
    if (data === event) {
                 ^

ReferenceError: event is not defined
@lukas-reining
Copy link

lukas-reining commented Jun 29, 2023

Same for me with:

[
  [
    -53.919065229236296,
    1.6555128287945204
  ],
  [
    -51.919065229236296,
    1.6555128287945204
  ],
  [
    -51.919065229236296,
    -0.34448717120547945
  ],
  [
    -53.919065229236296,
    -0.34448717120547945
  ],
  [
    -53.919065229236296,
    1.6555128287945204
  ]
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants