Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Certified GeoServer/KoboToolbox User Level Three ยท Lesson 4 of 12

Module Three

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
4
Module 3: Raster Data, Image Mosaics & Caching
Level Three ยท Module 3

Raster Data, Image Mosaics & Caching

Publish, mosaic, and cache raster data efficiently in GeoServer, leveraging coverage stores, image mosaics, GeoWebCache, and WMTS for high-performance raster services.

Duration: 5 hours Format: Theory + Hands-on Lab Prerequisites: Modules 1 & 2

Module Overview

Raster data powers many geospatial applications, from satellite imagery to digital elevation models. This module focuses on how GeoServer publishes and optimizes raster data through coverage stores, image mosaics, and tile caching. Learners will explore the internal handling of GeoTIFF and other raster formats, the construction of multi-temporal image mosaics, and the configuration of GeoWebCache and WMTS to deliver performant, scalable map tiles.

Performance tuning is a central theme: correct configuration of caching, tile grids, and mosaics can transform a slow raster service into a responsive, production-grade one.

Learning Objectives

  • Publish raster data using coverage stores in GeoServer.
  • Construct and manage image mosaics for time-series and large-scale raster datasets.
  • Configure GeoWebCache to cache and serve tiles efficiently.
  • Set up WMTS with appropriate grid sets and tile layers.
  • Apply performance tuning techniques for raster services.
  • Diagnose common raster publishing and caching issues.

Topics Covered

3.1 Coverage Stores

  • Supported raster formats
  • GeoTIFF publishing
  • Coverage parameters and metadata
  • Nodata and transparency handling

3.2 Image Mosaics

  • Purpose of mosaics
  • Creating mosaics from multiple rasters
  • Time-series and multi-band datasets
  • Granule indexing and harvesting

3.3 GeoWebCache

  • How tile caching works
  • Cache configuration and storage
  • Cache seeding and truncation
  • Integration with WMS and WMTS

3.4 WMTS & Tile Grids

  • WMTS request and response model
  • Grid sets and zoom levels
  • Tile matrix configuration
  • Client integration patterns

3.5 Raster Performance

  • Internal versus external overviews
  • Compression strategies
  • Tile caching impact
  • Memory and rendering considerations

3.6 Troubleshooting Rasters

  • Misaligned or blank tiles
  • CRS and nodata issues
  • Cache invalidation
  • Log-based diagnosis

Detailed Content

3.1 Coverage Stores

A coverage store connects GeoServer to a raster data source. Coverage stores support many formats, with GeoTIFF being the most common. Once a store is created, individual raster resources are published as coverage layers.

  • Supported formats: GeoTIFF, ECW, MrSID, Image Mosaic, and others via GDAL extensions.
  • GeoTIFF: Widely used, well-supported, and compatible with most spatial tools.
  • Coverage parameters: Native CRS, bounding box, resolution, and band structure.
  • Nodata: Configure nodata values to ensure transparent rendering where data is absent.
# Example: publishing a GeoTIFF via the admin UI
Workspace: env-utilities
Store type: GeoTIFF
Coverage: elevation_2026.tif
Declared CRS: EPSG:4326
Best practice Always check the native CRS and bounding box after publishing. Incorrect CRS declaration is a common cause of misaligned or invisible rasters.

3.2 Image Mosaics

An image mosaic combines multiple raster images into a single logical layer. This is essential for time-series imagery, large-area coverage, and datasets split across tiles or scenes.

  • Granule index: A shapefile or database table that tracks the footprints and metadata of individual images.
  • Harvesting: The process of scanning a directory or index and registering granules with the mosaic.
  • Time-series: Mosaics can expose a time dimension, enabling temporal WMS/WMTS requests.
  • Multi-band: Combine multiple bands (e.g., RGB, NIR) into a single multiband coverage.
Mosaic FeatureBenefitTypical Use
Granule indexingEfficient spatial lookupLarge-area satellite imagery
Time dimensionTemporal queriesTime-series analysis
Multiband supportColor and analysis bandsRGB/NIR composites

3.3 GeoWebCache

GeoWebCache is GeoServer's built-in tile caching system. It stores pre-rendered tiles so repeated requests can be served quickly without reprocessing the source data.

  • Caching: Tiles are generated on demand or through seeding and stored in a cache directory.
  • Seeding: Pre-render tiles for a defined area and zoom range to ensure fast first access.
  • Truncation: Clear stale tiles when data or styles change.
  • Integration: GeoWebCache works transparently with WMS and serves WMTS tiles.
# Example: seeding a layer via REST API
POST /geoserver/gwc/rest/seed/workspace:layer
Content-Type: application/json
{
  "seedRequest": {
    "name": "workspace:layer",
    "gridSetId": "EPSG:900913",
    "zoomStart": 0,
    "zoomStop": 10,
    "type": "seed"
  }
}
Warning Seeding large areas at high zoom levels can generate a large number of tiles and consume significant disk space and CPU. Plan seeding ranges carefully.

3.4 WMTS & Tile Grids

Web Map Tile Service (WMTS) is an OGC standard for serving pre-rendered map tiles. It uses tile grids that define resolutions and tile matrices for each zoom level.

  • Grid sets: Define the coordinate system and resolutions for tiling (e.g., EPSG:900913 for web mercator).
  • Zoom levels: Each level has a fixed resolution and tile matrix.
  • Clients: Libraries such as OpenLayers and Leaflet consume WMTS tiles for smooth map rendering.
Grid SetCRSTypical Use
EPSG:900913Web MercatorWeb maps and slippy maps
EPSG:4326WGS 84Geographic tiling
GlobalCRS84ScaleWGS 84Scale-based tiling

3.5 Raster Performance

Raster performance depends on many factors, including data size, compression, overviews, and caching. The following techniques improve responsiveness:

  • Overviews: Pre-computed lower-resolution pyramids speed up zoomed-out rendering.
  • Compression: Use DEFLATE or LZW compression in GeoTIFF to reduce I/O.
  • Caching: Enable GeoWebCache for frequently requested layers.
  • Memory: Monitor JVM memory and adjust heap size for large rasters.
Best practice Generate internal or external overviews for large rasters before publishing. This dramatically reduces rendering time at low zoom levels.

3.6 Troubleshooting Rasters

Common raster issues include misaligned tiles, blank output, and stale caches. Systematic diagnosis using logs and preview tools resolves most problems quickly.

  • Misaligned or blank tiles: Check native and declared CRS, bounding box, and nodata values.
  • Cache invalidation: Truncate the cache after updating data or styles.
  • Logs: Enable debug logging to inspect rendering and cache behavior.

Hands-On Lab: Publish a Multi-Temporal Raster Mosaic with WMTS Caching

In this lab, you will build a time-series image mosaic from multiple GeoTIFFs, publish it as a WMTS layer, and configure GeoWebCache for efficient tiled access.

Lab Steps

  1. Prepare a set of GeoTIFFs representing the same area over multiple dates (e.g., monthly imagery).
  2. Create a coverage store of type ImageMosaic in a workspace.
  3. Harvest the GeoTIFFs and verify that granules are registered with timestamps.
  4. Publish the mosaic as a WMS layer and verify time-dimension support via a TIME= parameter.
  5. Enable GeoWebCache for the layer and seed tiles for a limited area and zoom range (0โ€“8).
  6. Publish the layer as a WMTS layer using the EPSG:900913 grid set.
  7. Preview the WMTS layer in a map client and confirm smooth panning and zooming.
  8. Truncate the cache after making a style change and verify the update.
Deliverable: A working multi-temporal image mosaic published as both WMS and WMTS, with GeoWebCache configured and seeded. Include documentation of the grid set, zoom levels, and seeding strategy used, plus evidence of time-dimension support.

Suggested Session Timeline (5 Hours)

  • 0:00 โ€“ 0:45 โ€” Coverage stores and GeoTIFF publishing
  • 0:45 โ€“ 1:30 โ€” Image mosaics and granule indexing
  • 1:30 โ€“ 2:15 โ€” GeoWebCache configuration and seeding
  • 2:15 โ€“ 2:30 โ€” Break
  • 2:30 โ€“ 3:15 โ€” WMTS and tile grids
  • 3:15 โ€“ 3:45 โ€” Raster performance tuning
  • 3:45 โ€“ 4:45 โ€” Hands-on lab
  • 4:45 โ€“ 5:00 โ€” Review, Q&A, and lab debrief

Assessment

CriteriaWeight
Coverage store and raster publishing correctness20%
Image mosaic construction and granule indexing25%
GeoWebCache configuration and seeding20%
WMTS setup and grid set selection20%
Performance and cache management15%

Pass mark for this module: 70%

Resources

  • GeoServer User Manual โ€” Raster data, Image Mosaic, GeoWebCache, WMTS
  • OGC Web Map Tile Service (WMTS) specification
  • GDAL documentation for GeoTIFF and overviews
  • Sample raster datasets (satellite imagery, DEMs, time-series GeoTIFFs)
  • OpenLayers and Leaflet documentation for WMTS clients
© 2026 Certified GeoServer/KoboToolbox User โ€” Level Three ยท Module 3: Raster Data, Image Mosaics & Caching

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’