Using transparency creatively

A common task in producing maps is to mix different layers in a single output. This causes some masking of the overlapping objects, as we explored in the previous recipe. When you work with the raster data, of course, masking is an issue as the top raster layer could totally hide the bottom layers.

In this recipe, we'll explore how to use transparency to avoid masking and merge several raster layers in a single map.

Getting ready

In the Rendering transformations for raster data recipe of Chapter 3, Advanced Styling, we downloaded a dataset from USGS to explore how rendering works for raster data. We will now use the same dataset, producing a complementary dataset.

Note

If you didn't read Chapter 3, Advanced Styling, you ...

Get GeoServer Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.