block by pbogden 821cb9ab0951e9c1cc75

Raster Reprojection II

Full Screen

This adaption of Mike Bostock’s Raster Reprojection differs in 3 ways:

  1. In this demo, the source image is larger than the target canvas element. To extract the data from the image, the image must be drawn into a canvas element that’s large enough to hold it. That element is removed from the DOM so it doesn’t appear on the screen.
  2. The gray-scale source image is assigned a custom colormap.
  3. Country borders are drawn as an SVG vector layer on top of the canvas.

Data sources:

Made with Natural Earth. Free vector and raster map data @ naturalearthdata.com.

FAO/IIASA, 2011. Global Agro-ecological Zones (GAEZ v3.0). FAO Rome, Italy and IIASA, Laxenburg, Austria. Annual precipitation (future period 2020s Hadley CM3 A1FI). Downloaded from http://gaez.fao.org/Main.html Oct 2014.

index.html

Makefile

index1.html

index2.html

index3.html

index4.html

res01_prc_h3a12020.tif

topojson.js