AWF-GAUG / fisim

Forest Inventory Simulator (fisim) is a package for simulating response and samplign designs common in forest inventories
0 stars 2 forks source link

Convert Geo-Stuff from `sp` to `sf` #6

Open rnuske opened 4 years ago

rnuske commented 4 years ago

Just replaced the calls to sp-functions with sf-functions. Tried to change as little as possible.

This pull request builds on the changes in #5 and thus appears larger than it actually is.

I created testthat unit test for all functions doing geo processing to ensure identical result after conversion.

The transformation of an sf-object to owin leads to a different order of tiles and subsequentially to different sample points due to a different state of the RNG. Thus I took a detour over SpatialPolygons to owin to make the unit test happy. This should be cut out later.