ropensci / CoordinateCleaner

Automated flagging of common spatial and temporal errors in biological and palaeontological collection data, for the use in conservation, ecology and palaeontology.
https://docs.ropensci.org/CoordinateCleaner/
79 stars 21 forks source link

Should consider adding GeoLocate centroids to countryref.rda #37

Closed jhnwllr closed 4 years ago

jhnwllr commented 4 years ago

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

azizka commented 4 years ago

yes, good idea. Can you provide the missing centroids as .rda or .txt file with the respective ISO3 code? Thanks!

jhnwllr commented 4 years ago

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

azizka commented 4 years ago

Thanks! the file is not working for me for some obscure reason. Could you provide them as a .txt?

jhnwllr commented 4 years ago

try with readRDS

MattBlissett commented 4 years ago

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

azizka commented 4 years ago

Finally implemented in v2.0.17. Thanks to @jhnwllr and @MattBlissett.