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
• 30+ collaborators, 25+ 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
• Featuring tightly integrated vector and raster
data
Slide 6
Slide 6 text
Natural Earth, datasets
• Data available at 1:10m, 1:50m, and 1:110
million scales.
Slide 7
Slide 7 text
Natural Earth, some 10m data
Slide 8
Slide 8 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 9
Slide 9 text
A basemap for training purposes
• Wanted to have a significant, yet not too
complicated, base map, in CSS, for
GeoSolutions’ training package
• What about
osm-styles?
Slide 10
Slide 10 text
osm-styles is too big
• Nice, comprehensive,
used in
geoserver.org too
• But way too big
roads.css
Slide 11
Slide 11 text
Setting up for a simpler map
• Let’s do Natural Earth instead
• With simple, yet interesting, styles
• Inspiration: the printed maps found in atlases
when I was a kid
Using external tools: color brewer
• Color countries so that no two neighbouring
share the same color
• MAPCOLOR7 attribute supports use case
• colorbrewer2.org to pick colors
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