Robert Hijmans

Results 183 comments of Robert Hijmans

file level tags can now be set with `metags

I could add a wrap/unwrap for SpatExtent. It seems unnecessary since `as.vector(ext)` and similar as you show is so easy. But perhaps it is good for completeness sake; and to...

This works for a similar case ``` library(terra) pnt

This also works for me on windows with GEOS 3.9.3 and on Ubuntu with 3.10.2. It fails on windows with ``` gdal(lib="geos") [1] "3.11.2" ``` So I am thinking that...

To get the version of GEOS that is used by terra: ``` terra::gdal(lib="geos") #[1] "3.11.2" ``` On windows, I use whichever version comes with RTools. Not trivial to change that,...

@dbaston thank you for having a look. The first column of `crds` should be ignored or set to a constant to avoid that it serves as a geometry ID. For...

I have added a R and C++ `terra:::.buffer2` method that is the same as `buffer` but with no options or other fluff. It still crashes. It may help in debugging...

Also of note is that reducing the number of nodes in the offending polygon fixes the problem: ``` library(terra) f

The below suggests that the binary representation, as expected, is the same in "sf" and "terra" ``` hexsf sf::st_geometry() |> sf::st_as_binary() |> sf::rawToHex() hexterra

I have added *exactly the same* C++ GEOS buffer function to my fork of "sf" and to the *test* branch of "terra". Here is the [code in terra](https://github.com/rspatial/terra/blob/20232412f7011c1e9a9adf61d6f435a624936bb2/src/geos_cpp.cpp#L38-L57) and [here...