cropField not clipping to the boundary

30 views
Skip to first unread message

Todd Peterson

unread,
Mar 14, 2023, 5:51:03 PM3/14/23
to cleanRfield: A tool for cleaning and filtering spatial data points
As the title says cropField is not working as it has in the past. The data points are not being clipped by the boundary but instead appears to be clipped by an invisible box that contains the boundary shape (see attached image from plot viewing pane). In addition, a warning message appears in the console when the command is executed. The warning is as follows:
Warning messages: 1: GEOS support is provided by the sf and terra packages among others 2: In RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false, : spgeom1 and spgeom2 have different proj4 strings

I initially thought the issue may have been caused by the data I was using but when the issue still occurs when using the example data provided on GitHub. I have included screenshots of the code I executed (copied from the tutorial) and the outputs that show the problem. I also recently got a new computer and updated to the newest version of R (4.2.2) and RStudio (RStudio 2022.12.0+353) so I'm not sure if that is causing this problem or not.

Any help would be appreciated!clipField.jpegScreenshot of code.jpg

Emma Grace Matcham

unread,
Mar 15, 2023, 12:52:20 PM3/15/23
to cleanRfield: A tool for cleaning and filtering spatial data points
Hi Todd-- thanks for reaching out. Are you clicking in the integrated viewing pane in RStudio, or are you using a separate window for the whole process? We had issues with the primary viewing pane the last time RStudio updated, but using the separate window has worked well for most users (see first google forum post)
-EGM

Todd Peterson

unread,
Mar 15, 2023, 1:01:09 PM3/15/23
to cleanRfield: A tool for cleaning and filtering spatial data points
I get the same results whether I use the integrated viewing pane or a separate window. I also get the same result when I use my own data and try and clip it with a boundary imported from SMS.
Reply all
Reply to author
Forward
0 new messages