-
Notifications
You must be signed in to change notification settings - Fork 301
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
Loop 0 is not valid: Non-empty, non-full loops must have at least 3 vertices #2388
Comments
Yes, but the number of polygons returned is the same. Maybe some grid cells touching the pole become triangles in geographical coordinates, and loose one node, hence the smaller number of coordinates? |
Sorry to ask the very basic question but how to fix this then? Thank you! |
Fix what? |
There is error when applying st_join() on grid4326.
|
Please modify your reproducible example such that it exposes the error; |
I once did it as following, and it works fine, no error.
|
@edzer I am sorry if I misunderstood your idea. I had a mistake in the original code, the final |
I have a sf object created like the following (I need the polygons to be equal size), and in order to accommodate with other downloaded data, I convert these polygons back to 'EPSG:4326'. Both objects have the same number of polygons, but different coordinates. Specifically, the latter sf has some polygons with missing vertices. I noticed this when applying st_join() on the latter polygons (grid4326). There is error: Error in wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, Loop 0 is not valid: Non-empty, non-full loops must have at least 3 vertices'.
The text was updated successfully, but these errors were encountered: