Closed latot closed 2 years ago
thanks for reporting; yes I can also reproduce this crash and will look in to it.
Note, the format is wrong, should be:
geojsonsf::geojson_sf("{\"type\": \"Polygon\", \"coordinates\": [[[-70.7355,-33.2402],[-70.7355,-33.2404],[-70.7351,-33.2403],[-70.7351,-33.2401],[-70.7355,-33.2402]]]}")
But the crash above is a little extreme.
Thx!
yes I've just found that too; your Polygon was incorreclty specified, but the crash still needs handling
as of v2.0.3 the array is now correctly validated, as per all the other validation checks (for some reason I forgot to add it for LineStrings arrays)
geojsonsf::geojson_sf("{\"type\": \"Polygon\", \"coordinates\": [[-70.7355,-33.2402],[-70.7355,-33.2404],[-70.7351,-33.2403],[-70.7351,-33.2401],[-70.7355,-33.2402]]}")
Error in rcpp_geojson_to_sf(geojson, expand_geometries) :
Invalid array object
2.0.3 accepted on cran
Thx!
Hi hi, running this we get a super crash, super because need to abort.
All the packages was been installed recently, and the system has no updates, so, it should not be a problem in the libs.
Thx