State of GeoRasterLayer: A LeafletJS Plugin for Visualizing GeoTIFFs (and soon other rasters)
GeoRasterLayer is a LeafletJS Plugin for visualizing GeoTIFFs. This presentation will show live demos of new features and discuss the roadmap for the next couple of years.
Features
- Support for nearly all projections, thanks to proj4-fully-loaded (https://github.com/danieljdufour/proj4-fully-loaded) and epsg.io (https://epsg.io/)
- Super faster rendering thanks to a simple nearest neighbor interpolation
- Use of web workers means seamless integration that doesn't block main thread
- Loads large geotiffs greater than a hundred megabytes
- Supports custom rendering including custom colors, directional arrows, and context drawing
- Doesn't depend on WebGL
Videos
- Edge Compute: Cool Stuff You Can Do With COGs in the Browser (https://www.youtube.com/watch?v=XTkNhGpfmB8&t=4190s)
- 2019 - Algorithm Walk-through: How to Visualize a Large GeoTIFF on Your Web Map (https://www.youtube.com/watch?v=K47JvCL99w0)
Examples
- Loading the georaster-layer-for-leaflet library along with GeoBlaze via a script tag. You can view the source code here (https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/master/examples/load-via-script-tag-with-geoblaze.html) and the live demo here (https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/load-via-script-tag-with-geoblaze.html).
- Combining two Cloud Optimized GeoTIFFs together to create an NDVI map. You can view the source code here (https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/master/examples/ndvi.html) and the live demo here (https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/ndvi.html).
- Identifying Wildfires from a Landsat 8 Scene. You can view the source code here (https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/master/examples/identifying-wildfires-with-landsat.html) and the live demo here (https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/identifying-wildfires-with-landsat.html).
- Visualizing Population COG. You can view the source code here (https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/master/examples/population.html) and the live demo here (https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/population.html).
- Display a COG that represents only one band of a Landsat scene. You can view the source code here (https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/master/examples/cog-with-only-one-band.html) and the live demo here (https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/cog-with-only-one-band.html).
- Display a COG with YCbCr Photometric Interpretation. You can view the source code here (https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/master/examples/ycbcr.html) and the live demo here (https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/ycbcr.html).
Daniel J. Dufour
https://talks.osgeo.org/foss4g-2022/talk/M7PHE7/
#foss4g2022 #generaltrack #UsecasesAndapplications