Closed Rafnuss closed 4 years ago
Provide three new functions related to spatial ability:
find_pentad
find_pentad_coordinate
find_pentad_within
Note that I'm not using any pre-existing pentads (e.g. geojson file) but I'm using the name convention.
The symbole between lat and lon is determined with :
lat
lon
if (lat < 0 & lon > 0){ letter <- '_' } else if (lat < 0 & lon < 0) { letter <- 'a' } else if (lat > 0 & lon < 0) { letter <- 'b' } else if (lat > 0 & lon > 0) { letter <- 'c'
I don't know what happen if lon >99 and therefore the functions are not implemented for this yet.
Excellent work @Rafnuss !
Thanks! I found several bug with this set of functions. Happy to submit the corrected version if implmented.
Provide three new functions related to spatial ability:
find_pentad
Find the pentad code of GPS coordinatefind_pentad_coordinate
Find the GPS coordinate of pentad codefind_pentad_within
Find the pentad overlapping a given shapeNote that I'm not using any pre-existing pentads (e.g. geojson file) but I'm using the name convention.
The symbole between
lat
andlon
is determined with :I don't know what happen if
lon
>99 and therefore the functions are not implemented for this yet.