Skip to content

Caminantes-del-desierto/inaturalist-datashader-map

 
 

Repository files navigation

iNaturalist Datashader Map

A zoomable map of iNaturalist observations made using Datashader and Leaflet.

iNaturalist observations

More: interactive map, blog post.

How to build the visualization

iNaturalist makes available a full dataset of observations, which is what I used to generate the map.

Go to https://www.inaturalist.org/pages/developers and look for the "GBIF DarwinCore Archive" link. Download and unzip the archive, then move the observations.csv to the data directory.

Create a conda environment with the following (note that conda has a machine optimized version of datashader):

conda env create -f environment.yml

The preprocess the observations.csv file to remove unneeded columns, and to convert the lat/long fields to metres.

python preprocess.py

Generate the tiles as follows:

python generate_tiles.py

Then run a webserver to serve them:

python -m http.server 8008

And open http://localhost:8008/

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.1%
  • HTML 15.3%
  • JavaScript 14.2%
  • CSS 4.4%