Krzysztof Dyba

Results 222 comments of Krzysztof Dyba

I can recommend the interesting [blogpost](https://dewey.dunnington.ca/post/2022/building-bridges-arrow-parquet-and-geospatial-computing/) from @paleolimbot about using [geoarrow](https://github.com/paleolimbot/geoarrow) and GeoParquet file format to fast loading vector data. In `readr::read_csv()` you should use `num_threads = 1` because `{terra}`...

Here I made some reproducible benchmark. I hope it is helpful. Code ```r library("sf") library("terra") library("readr") tmp = tempfile(fileext = ".gpkg") url = "https://github.com/paleolimbot/geoarrow-data/releases/download/v0.0.1/nshn_water_line.gpkg" download.file(url, tmp, mode = "wb") ##...

> a default value for the density needs to be chosen. What does raster do here? I noted that the number of points is not identical. **raster** takes all pixels...

Here is the result from `Rprof`: Profiler output ``` $by.self self.time self.pct total.time total.pct ".Call" 528.44 67.35 528.44 67.35 "lapply" 102.50 13.06 781.14 99.56 "[[" 44.48 5.67 44.48 5.67 "FUN"...

Thanks, I tried to test this on all polygons but I get an error. This is probably a regression as it works in `stars 0.5-2`. ```r library(sf) library(stars) # v....

> With 0.5-2 this shouldn't work I didn't write it precise. I meant `aggregate()` by polygon worked in 0.5-2, but the same error occurred in `aggregate()` and `st_extract()` by polygon...

Here is another interesting thing. It seems that the fastest way is convert `stars` to `data.frame` and rasterize buffers. Probably this can be faster using `data.table`, but the biggest overhead...

I wanted to revisit this issue. While the performance of plotting raster objects in `{stars}`, `{terra}` and `{tmap}` is similar, `{tmap}` is several times slower than the others for vector...

Out of curiosity, I also checked `{terra}` and it seems there is no overhead for the logical type. ```r library("sf") library("terra") n = 50000 df = data.frame(x = runif(n), y...

@RikFerreira, this is fixed in version 1.0.10, so the update should fix this problem.