JosiahParry / rsgeo

R bindings to the geo Rust crate
https://rsgeo.josiahparry.com/
Other
47 stars 5 forks source link

replicating readme on Windows #3

Closed joshualerickson closed 1 year ago

joshualerickson commented 1 year ago

Hey @JosiahParry, great stuff as usual. All this above my head but thought I'd give a shot and run through the readme. Ran into some errors trying to reproduce and seems to be with a few functions: closest_point(), haversine_destination() , haversine_intermediate(), and a plot() method with rs_polys[[1]].

update

Went back and ran the plot(x) and plot(x_simple, add = TRUE) with Error in geom_to_r(x) : object 'wrap__geom_to_r' not found and only works with plot(rs_polys[37]) instead of plot(rs_polys[[37]]; however, you still get an error with x_simple regardless of how you index rs_polys.

version ``` $platform [1] "x86_64-w64-mingw32" $arch [1] "x86_64" $os [1] "mingw32" $crt [1] "ucrt" $system [1] "x86_64, mingw32" $status [1] "" $major [1] "4" $minor [1] "2.2" $year [1] "2022" $month [1] "10" $day [1] "31" $`svn rev` [1] "83211" $language [1] "R" $version.string [1] "R version 4.2.2 (2022-10-31 ucrt)" $nickname [1] "Innocent and Trusting" ```

I'll be referring to the lines in the readme and associated errors. If I don't mention a line it means that it ran without error.

Lines 95-100

errors on both plot(x) and plot(x_simple, add = TRUE) with Error in geom_to_r(x) : object 'wrap__geom_to_r' not found

Lines 121-127

error with closest_point() Error in closest_point(rs_polys[[1]], geom_point(8e+05, 2090000)) : closest_point panicked.

Then same 'wrap__geom_to_r' not foundwithplot(rs_polys([[1]])and can't plotclose_pnt` bc not successful.

Lines 133-137

haversine_destination() function errored Error in haversine_destination(geom_point(10, 10), 45, 10000) : haversine_destination panicked.

geosphere::destPoint() worked

Line 144

Same as above with haversine_destination()

Lines 153-164

Same as above but with haversine_intermediate() and error with plot(chaikin_smoothing(region,5)) with Error in geom_to_r(x) : object 'wrap__geom_to_r' not found

Robinlovelace commented 1 year ago

I can try reproducing this on work laptop if that would help.

JosiahParry commented 1 year ago

Thank you! I can reproduce :)

On Sun, Jul 9, 2023 at 10:35 Robin Lovelace @.***> wrote:

I can try reproducing this on work laptop if that would help.

— Reply to this email directly, view it on GitHub https://github.com/JosiahParry/rsgeo/issues/3#issuecomment-1627779585, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHIKLGEJNAR7VVSTFSD7YTXPLTXHANCNFSM6AAAAAA2DS3AP4 . You are receiving this because you were mentioned.Message ID: @.***>