-
Notifications
You must be signed in to change notification settings - Fork 7
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
geojsonsf::geojson_sf add NA_character_ in "input" field of "crs" which make the object unusable by sf package #83
Comments
Thanks for reporting this. However, there's a couple of things going on here, notably with the update to
So I'm updating Could you you do me a favour and test the latest dev version of remotes::install_github("SymbolixAU/geojsonsf") And tell me if you still get this error? |
I just tried the exact same code and I now get the following error : Error: C stack usage 7970148 is too close to the limit As you mentioned using a |
For you information the C stack usage error persists even after installing the last version d845e12 (If I use |
I'm adding an |
Ok but why not make the package handle both version of Also the C stack usage error persists on the new version. |
I am using:
Below is a minimal example:
yields the following error :
Digging down and comparing the dput with a functional one (from
sf::read_sf
) showed that the issue is that the call to_geojsonsf_rcpp_read_sf_file
add two fields "input" and "wkt" to the "crs" attributes in the "geometry" with valuesNA_character_
while (according to what I understood from the error) it should beNA_integer_
.Replacing
NA_character_
withNA_integer_
solve the issue:The error also vanish when importing with default
crs
option such assf_obj <- geojsonsf::geojson_sf(geojson, crs=4326)
since no fields "input" and "wkt" are created in crs attributes (and then no inappropriateNA_character_
values).The text was updated successfully, but these errors were encountered: