Closed hyperknot closed 4 years ago
@hyperknot this is way out of my wheelhouse, I will defer to whatever you determine is the best way to do it. Thanks for doing the hard work!
@hyperknot We have permission for GADM; we'll just need to add the conditions below to our license.
On Mon, Mar 23, 2020 at 9:58 AM Herb Caudill herb@devresults.com wrote: Hi, Robert. I'm volunteering with an open-source effort to scrape data on Coronavirus cases from publicly available sources and make it available to researchers, journalists, etc.
https://coronadatascraper.com https://github.com/lazd/coronadatascraper/
One of the outputs of this effort is GeoJSON file. So far we've cobbled the subnational boundaries together from various sources. We were hoping we might be able to use GADM data for this purpose, but weren't sure if it would be permitted with GADM's non-commercial license: This effort is of course non-commercial, but we're hoping that the outputs will be reused by many other organizations, possibly including media and other for-profit entities.
Let me know what you think -
Thanks Herb
On Mon, Mar 23, 2020 at 8:13 PM Robert J. Hijmans r.hijmans@gmail.com wrote:
Hi Herb, I do not object if you add license information stating that the admin boundaries are from GADM and cannot be used for other purposes than the for mapping corona / covid-19. Does that work for you? Robert
I've written to Statoids to see if they'll donate the data to the project - it would save us a lot of effort, and scraping their website would probably be a violation of their terms of use anyway.
I'm working on an OSM + Wikidata based solution, hopefully I can publish it very soon and then we can migrate over.
I will finish the new system today, based on ISO codes, using OpenStreetMaps.
We'll have two internal codes: iso1:ES
and iso2:ES-CL
.
About FIPS, can someone explain me a bit more? What would be the best internal system? fips:06085
is good?
Is there any system existing for cities?
I manage to get ISO code based extracts from OpenStreetMap, I've just finished rewriting country levels: https://github.com/hyperknot/country-levels
Tomorrow I'll update my PR with this system.
@DavidGeeraerts thanks. Do you know any similar system for city level? Actually I think if we can move international areas to ISO1 and ISO2 and US counties to FIPS, that'd already be a huge improvement.
I see there are actually perfect code systems in that file for city, etc. subdivision levels.
Yeah, the "all-geocodes-v2016" has the city codes.
Thanks I found it. For me right now I'm concentrating on international ISO1 and ISO2 codes, as well as US counties. But US cities can be added in the future as well.
Moving to iso1, iso2, fips codes in #527
So HASC codes seem to be the best way to refer to international regions. They look like
ES.CL
for the Castile and León (CL) region within Spain (ES). For US we have FIPS codes.I've looked more and more into this one and I see that GADM really is the highest quality geospatial dataset out there, and that HASC codes are clearly the best for our use case.
There are some critical questions:
Can we use GADM? It has a restrictive license but we can ask for a permission to use it. Important point: we have to make sure that it covers all of our users, let them be commercial entities: newspapers, etc. @HerbCaudill can you ask the owner?
I can process the shapefiles into small GeoJSONs that's not a problem.
Getting the population data via HASC codes will need scraping though. This project happens to has amazing experts for scraping, can someone write it? We'd need a JSON for HASC > population for all pages from this website: http://www.statoids.com/
For example: http://www.statoids.com/ufr.html would have
It can be a one-off script, returning a JSON, that's it really. Only for non-US regions.
@lazd @camjc @qgolsteyn @ryanblock @HerbCaudill