digivet-consortium / movenet

Generating network representations for livestock movement (and associated) data
https://digivet-consortium.github.io/movenet/
GNU General Public License v3.0
2 stars 3 forks source link

create geographic coarsening functions #20

Open CarlijnB opened 2 years ago

CarlijnB commented 2 years ago

Functions for network privacy - geographic coarsening (pseudocode from @magicicada w input from @mdenwood) :

get_convex_hull(locations, number, central): generate convex hull that contains central and number other points (closest number locations to central?)

choose_within_shape(hull): chooses uniformly at random a point within the hull (optionally using spatial / land usage data provided via HexScape / corine as a mask for farmland or eurostat for country borders)

CarlijnB commented 2 years ago

might be needed: helper function(s) to deal with country-specific grid systems