Open hdrs opened 3 months ago
OK, replying to my own comment here.
It seems yes, this is possibly related to the fact that the input is a simple one segment linestring. The convex hull is obviously thin, which means that the negative buffering is a problem.
This loop is what hangs
while (rows == 0) {
new_buf <- st_buffer(sf_poly, bufdist)
crs_sub <- crs_type[new_buf, ]
rows <- nrow(crs_sub)
bufdist <- bufdist/2
}
I extracted this feature from OSM as GeoJSON
https://www.openstreetmap.org/way/1289170894
and saved it to file way_1289170894.geojson for this test.
Read it in a look at it
Now run the key code
crsuggest::suggest_crs(test)
This just hangs. I have not dug super deeply into why that is, but can do if it would be helpful.
I do note that the convex hull of two points is problematic, though this might not be the issue.
I am on a macbook:
and also on a linux machine
It hangs on both.
Thanks.