-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
[Bug]: Unable to add polygons with holes #425
Comments
Hey @jashanbhullar - thanks for the issue 👍🏻 I can see the issue here, and it is due to lacking documentation/unclear failure message:
As a first step to making this clearer I'll update the docs but I think it probably needs an explicit failure case when Multi features as passed. Sorry for the inconvenience and hope this helps! |
hello @JamesLMilner , I was flattening them using Not sure how one can handle this error but this is it. Maybe the first step is to add a error message that it can't handle polygon with holes and then work towards a solution. 🤔 🤔 🤔 |
Maybe it can now be considered a feature request. |
Describe the bug
Not able to add feature from using
.addFearture
function. The error isNot a valid polygon
even though it passed all the checks (I manually checked the polygons with the repo code). Since it doesn't why it's invalid, I am not able to fix it also.Terra Draw npm version
1.0.0
To Reproduce
https://stackblitz.com/edit/vitejs-vite-si8orurb?file=src%2FApp.tsx
You can copy the polygons from files and paste them on
geojson.io
and they work;Expected behavior
Either add the polygon or give a better error explanation so I can fix the shape.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: