Usually, the examples show how to place points or polygons on a map. Those examples are working with vectorial data. But many datasets are rasters, so the lack of examples and libraries made difficult to use d3js with meteorological data, DEM data, etc.
Some common representations could be easily done with existing libraries, others didn’t have available tools. This tutorial will show how to use:
- geotiff: Reading the GeoTIFF data (not the projectiopn, which would be cool)
- raster-streamlines: Drawing streamlines from vectorial fields
- raster-marching-squares: Creating the isobands with the wind speed
- reproject: Reprojecting the generated GeoJSON
- proj4js: Reprojecting points
And examples for all the common raster visualizations covered by the Basemap library. All the examples have the Canvas and the SVG version so it’s easy to use the most convenient.
I will add more examples in the future, if I find that some cases were not covered.
Some of the examples are listed below:
|Wind arrows||Wind barbs|
|Raster interpolation||Raster original pixels|
|Isolines||Isolines with labels|
|Projected GeoTIFF||Projected raster interpolation|