Serverless Rasters on the Web: The MapLibre COG Protocol extension
In recent years, the approach to loading vector data in web browsers has shifted from traditional WMS/OGC methods to vector tiles, allowing for more efficient rendering and processing. With increasing bandwidth and more powerful CPU/GPU capabilities, handling data directly in the browser has become the preferred choice. The same evolution should apply to raster data: instead of preprocessing it on the server, a more efficient alternative is to load it directly as a Cloud-Optimized GeoTIFF (COG).
The MapLibre COG Protocol extension is a powerful tool for visualizing COGs directly in MapLibre GL JS. By leveraging HTTP range requests, it efficiently loads only the necessary portions of large raster datasets, reducing bandwidth usage and improving performance. This makes it ideal for handling high-resolution satellite imagery, elevation models, and other geospatial data. Since it enables direct cloud access from MapLibre, organizations can serve large datasets without expensive infrastructure, making it a cost-effective and scalable solution.
Additionally, the library supports dynamic adjustments, such as color manipulation and band mixing directly on the browser, providing greater flexibility for dynamic data visualization. As an open-source, community-driven project, it aligns with other open geospatial tools, standards and practices ensuring adaptability to future scenarios.
By combining efficiency, scalability, and ease of integration, the MapLibre COG Protocol simplifies the use of COGs in web mapping applications, making it an essential tool for developers, researchers, and GIS professionals working with cloud-based geospatial data.
Custom protocol to load Cloud Optimized GeoTIFFs (COG) in Maplibre GL JS
Github: https://github.com/geomatico/maplibre-cog-protocol
NPM: https://www.npmjs.com/package/@geomatico/maplibre-cog-protocol