Open krpaulson opened 1 year ago
@edzer It would be useful to hear your thoughts on this issue if you have time -- thanks again.
Perhaps related to repair=T
option in this maptools function: https://www.rdocumentation.org/packages/maptools/versions/1.1-4/topics/readShapePoly
Did that option in maptools
solve your problem?
maptools
solves this because it comes with its own customized version of shapelib, it seems. sf
uses GDAL, which doesn't seem to be able to handle broken shapefiles of this kind. Since maptools is going to retire this year, my advice is: read it with maptools and repair=TRUE
, convert to sf, save as GPKG, and abandon the source with broken shapefiles (and abandon shapefiles altogether).
Is it possible to fix the inconsistency with Yakima county which
st_read
is complaining about here? We also had some people fail to be able to load these files, and I wonder if that's related to this issue.Created on 2023-01-26 with reprex v2.0.2
The error two other people got was like this, although I haven't been able to reproduce it: