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

Creating complex styles

Next, let's create some complex styling to visualize our main roads similar to the visualization we created in QGIS:

  1. Create a new style. Name it accordingly, and limit it to our workspace.
  2. Select the CSS option in the Format field.
  3. Generate a line template, save the style, reopen it, and preview it on our roads layer.
  4. Rewrite the rule as follows to show secondary roads, as they had a simple symbolizer:
        /* @title Important roads */        [fclass LIKE 'secondary%'] {         stroke: #8f9593;         stroke-width: 1;        }
  1. It's time to create the complex line styles. In SLD, we would have to create multiple <FeatureTypeStyle> elements to have multiple lines drawn on each other. In CSS, however, we can define multiple styles in a single definition ...
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