Closed jhnwllr closed 4 years ago
yes, good idea. Can you provide the missing centroids as .rda or .txt file with the respective ISO3 code? Thanks!
I put centroids from geolocate here: https://github.com/jhnwllr/gbif_shapefile_geocoder/blob/master/shapefile_making_R_scripts/data/geolocate_centroids.rda
I got the centroids by running this script on the geolocate look up service: https://github.com/jhnwllr/gbif_shapefile_geocoder/blob/master/shapefile_making_R_scripts/shapefile_generator.r#L3-L102
Thanks! the file is not working for me for some obscure reason. Could you provide them as a .txt?
try with readRDS
I converted them into basic SQL, which I'm sure you can change with a quick search-replace into whatever you need: https://github.com/gbif/geocode/blob/master/database/geolocate_centroids.sql
Finally implemented in v2.0.17. Thanks to @jhnwllr and @MattBlissett.
I have found that the webservice geolocate is a large source of centroids on GBIF. https://github.com/gbif/portal-feedback/issues/2428
Not all of these centroids are found within countryref.rda https://github.com/jhnwllr/gbif_shapefile_geocoder/blob/master/shapefile_making_R_scripts/plots/centroids/combined.pdf