Skip to Content
Practical GIS
book

Practical GIS

by Gábor Farkas
June 2017
Beginner
428 pages
10h 2m
English
Packt Publishing
Content preview from Practical GIS

Styling raster layers

As a final task, let's style our suitability raster layer. We should use the same color ramp that QGIS calculated for us. That is, we have five breakpoints: 0, 0.25, 0.5, 0.75, and 1. The color ramp is red to green, with the colors #ff0000, #fdae61, #ffffc0, #a6d96a, and #1a9641 at the breakpoints:

  1. Create a new CSS style restricted to our workspace with an automatically generated raster template. Save the style, reopen it, and preview it on our suitability layer.

 

  1. Single-band rasters can be styled in CSS just like in SLD--with a color map. The syntax of the color map is a bit unusual, though. The property is raster-color-map, while the value is a set of color-map-entry functions separated by whitespaces. As a one ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

GIS For Dummies®

GIS For Dummies®

Michael N. DeMers
Advanced Surveying: Total Station, GIS and Remote Sensing

Advanced Surveying: Total Station, GIS and Remote Sensing

Satheesh Gopi, R. Sathikumar, N. Madhu
GIS, 2nd Edition

GIS, 2nd Edition

Patrick McHaffie, Sungsoon Hwang, Cassie Follett

Publisher Resources

ISBN: 9781787123328Supplemental Content