Closed kadyb closed 1 year ago
Thanks! This is an issue with class assignment that I didn't fully fix after a large refactor.
When did you install the package? I fixed a version of this issue quite recently.
I installed it today using remotes::install_github("josiahparry/rsgeo")
.
Thanks! I apologize for the inconvenience. I’m on vacation until tomorrow. I’ll review as soon as possible.
On Mon, Jun 26, 2023 at 09:00 Krzysztof Dyba @.***> wrote:
I installed it today using remotes::install_github("josiahparry/rsgeo").
— Reply to this email directly, view it on GitHub https://github.com/JosiahParry/rsgeo/issues/2#issuecomment-1607422158, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHIKLBDO5F7J4N5P3FFHF3XNGBYPANCNFSM6AAAAAAZT7ARTU . You are receiving this because you commented.Message ID: @.***>
I had forgotten to push just one file! Oops!
This should be working now. Let me know if it isnt. Sent from 25k feet in the air :)
library(sf)
#> Linking to GEOS 3.11.0, GDAL 3.5.3, PROJ 9.1.0; sf_use_s2() is TRUE
library(rsgeo)
#>
#> Attaching package: 'rsgeo'
#> The following object is masked from 'package:base':
#>
#> within
n = 100
df = data.frame(x = runif(n, 0, 1), y = runif(n, 0, 1))
pts_sf = st_as_sf(df, coords = c("x", "y"), crs = "epsg:2180")
pts_rs = as_rsgeom(st_as_sfc(pts_sf))
euclidean_distance_matrix(pts_rs, pts_rs)
#> [,1] [,2] [,3] [,4] [,5] [,6]
#> [1,] 0.00000000 0.63483894 0.254187648 0.37472173 0.73889613 0.54648472
#> [2,] 0.63483894 0.00000000 0.425019439 0.31895817 0.88416374 0.36036759
Thank you very much, now it works!
Thank you very much for making an issue and not giving up quietly :)
if you run into any other bugs or have other questions please make another issue
Good to see this activity, keep us posted on benchmarking findings :pray:
I wanted to test this package, but probably the objects conversion from
{sf}
doesn't work or something?