Slide 1

Slide 1 text

Andrea Aime GeoSolutions Styling Natural Earth with GeoServer CSS

Slide 2

Slide 2 text

GeoSolutions Enterprise Support Services Deployment Subscription Professional Training Customized Solutions GeoNode • Offices in Italy & US, Global Clients/Team • 40+ collaborators, 30+ Engineers • Our products • Our Offer

Slide 3

Slide 3 text

Affiliations We strongly support Open Source, it Is in our core We actively participate in OGC working groups and get funded to advance new open standards We support standards critical to GEOINT

Slide 4

Slide 4 text

Intro: Natural Earth and GeoCSS

Slide 5

Slide 5 text

Natural Earth • Natural Earth is a public domain map dataset available at 1:10m, 1:50m, and 1:110 million scales. • Featuring tightly integrated vector and raster data

Slide 6

Slide 6 text

GeoServer CSS (GeoCSS) • CSS inspired language for map styling • Compact, powerful, human readable, human writable * { stroke: blue; fill: #7EB5D3; label: [name]; label-anchor: 0.5 0.5; font-fill: black; font-family: "Arial"; font-size: 14; halo-radius: 2; halo-color: #7EB5D3; halo-opacity:0.8; }

Slide 7

Slide 7 text

The challenge • Wanted to have a significant, yet not too complicated, base map, in CSS, for our training package • What about osm-styles? • Nice, but too complicated!

Slide 8

Slide 8 text

The political map

Slide 9

Slide 9 text

Political map of the world

Slide 10

Slide 10 text

Political map of the world

Slide 11

Slide 11 text

Political map of the world

Slide 12

Slide 12 text

Political map of the world

Slide 13

Slide 13 text

The layer group

Slide 14

Slide 14 text

One sample style: countries /* @title Countries */ [@sd > 20M][@sd < 70M] { stroke: darken(darkgray, 5%); stroke-width: 0.1; /* https://colorbrewer2.org/#type=qualitative&scheme=Pastel1&n=7 */ fill: [Recode(MAPCOLOR7, 1, '#fbb4ae', 2, lighten('#b3cde3', '5%'), 3, '#ccebc5', 4, lighten('#decbe4', '5%'), 5, '#fed9a6', 6, '#ffffcc', 7, '#e5d8bd')]; label: [NAME]; label-anchor: 0.5 0.5; font-family: 'Noto Sans'; font-size: 14; font-fill: lighten(black, 20%); halo-color: white; halo-radius: 1; halo-opacity: 70%; label-priority: [POP_EST]; label-auto-wrap: 100; label-max-displacement: 50; }

Slide 15

Slide 15 text

How about a physical map?

Slide 16

Slide 16 text

Physical map of the world

Slide 17

Slide 17 text

Physical map of the world

Slide 18

Slide 18 text

Ok, how can I get it?

Slide 19

Slide 19 text

But on GitHub, of course! • GeoSolution’s Natural Earth styles repository • https://github.com/geosolutions-it/ne-styles • The physical map is in a branch right now: • https://github.com/geosolutions-it/ne-styles/tree /physical

Slide 20

Slide 20 text

That’s all folks! Questions? [email protected] [email protected]