-
Notifications
You must be signed in to change notification settings - Fork 303
EMPTYs with mixed dimension cause error #1941
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
Comments
I can reproduce this; polygon 9 is "XY": when debugging in Browse[3]> sapply(x$geometry, class)
[,1] [,2] [,3] [,4] [,5]
[1,] "XYZ" "XYZ" "XYZ" "XYZ" "XYZ"
[2,] "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON"
[3,] "sfg" "sfg" "sfg" "sfg" "sfg"
[,6] [,7] [,8] [,9] [,10]
[1,] "XYZ" "XYZ" "XYZ" "XY" "XYZ"
[2,] "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON"
[3,] "sfg" "sfg" "sfg" "sfg" "sfg"
[,11] [,12] [,13] [,14] [,15]
[1,] "XYZ" "XYZ" "XYZ" "XYZ" "XYZ"
[2,] "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON"
[3,] "sfg" "sfg" "sfg" "sfg" "sfg"
[,16] [,17] [,18]
[1,] "XYZ" "XYZ" "XYZ"
[2,] "MULTIPOLYGON" "MULTIPOLYGON" "MULTIPOLYGON"
[3,] "sfg" "sfg" "sfg" funny enough, when looking at the output of
and searching for feature 8 (counting starts at 0), it gives a |
Please see my follow-up on paleolimbot/ggspatial#100 ; it looks as though the driver changed at some point. |
And paleolimbot/ggspatial#101 - converting to GPKG resolves problem. |
I'll leave the fix to this for those other two issues! Thanks! |
The error message reported in paleolimbot/ggspatial#100 seems to be a result of mixed-dimension
sfc
objects, where calculating the Z range fails. I think this kind of thing can get generated from EMTPYs that weren't properly dimensioned:I can't seem to replicate the error reported in ggspatial, which occurs when running this:
The files have been the same for a long time and I can't spot anything funky with the shapefile (written using QGIS ages ago). Let me know if I can do any digging to help!
The text was updated successfully, but these errors were encountered: