stevenliuyi / covid19

an interactive, animated COVID-19 coronavirus map to track the outbreak over time by country and by region for selected countries
MIT License
324 stars 97 forks source link

Possibility to export GeoJson-Files #41

Open smkraus opened 4 years ago

smkraus commented 4 years ago

For a research project we're looking for a full dataset of cov19 cases with locations. Your data looks really excellent, thanks so much for pulling it together. Is there any way you would be able to do a GeoJson export of your data?

erlange commented 4 years ago

Just install mapshaper from GitHub or via NPM or yarn, then it's as easy as

yarn mapshaper ./data/maps/gadm36_CHN_2.shp -simplify 2% -clean -o format=geojson ./data/maps/gadm36_CHN_2.json

Docs: Mapshaper command references

You can even do it online here, just drag and drop the file https://mapshaper.org/

smkraus commented 4 years ago

Thanks for your response. I was referring to a final file with Corona cases matched to their GADM IDs. I haven't figured out how to use the final data, that get displayed in the web app.