We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Styling Natural Earth with GeoServer and GeoCSS

00:00

Formale Metadaten

Titel
Styling Natural Earth with GeoServer and GeoCSS
Serientitel
Anzahl der Teile
156
Autor
Lizenz
CC-Namensnennung 3.0 Unported:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen.
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
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, with Natural Earth one can build a variety of visually pleasing, well-crafted maps with cartography or GIS software. GeoServer GeoCSS is a CSS inspired language allowing you to build maps without consuming fingertips in the process, while providing all the same abilities as SLD. In this presentation we'll show how we have built a world political map and a world geographic map based on Natural Earth, using CSS, and shared the results on GitHub. We'll share with you how simple, compact styles can be used to prepare a multiscale map, including: * Leveraging CSS cascading. * Building styles that respond to scales in ways that go beyond simple scale dependencies. * Various types of labeling tricks (conflict resolution and label priority, controlling label density, label placement, typography, labels in various scripts, label shields and more). * Quickly controlling colors with LessCSS inspired functions. * Building symbology using GeoServer large set of well known marks. Join this presentation for a relaxing introduction to simple and informative maps.
Schlagwörter
127
Formale SpracheNatürliche ZahlPublic-domain-SoftwareZentrische StreckungServer
SoftwareQuellcodeTextur-MappingProgrammierumgebungNatürliche ZahlMereologieInternetworkingServerZahlenbereichMailing-ListeTranscodierungProjektive EbeneFormale SpracheArbeit <Physik>GamecontrollerBitMinimumGraphfärbungFokalpunktWellenpaketGeradeOrtsoperatorVerzeichnisdienstSechseckVersionsverwaltungOffene MengeZoomDatenfeldGenerator <Informatik>VerschlingungFunktionalVerzweigendes ProgrammTypentheorieBenutzerbeteiligungVektorraumStellenringZentrische StreckungKategorie <Mathematik>SchnittmengeGruppenoperationMAPDatenstrukturMehrschichten-PerzeptronBitmap-GraphikPhysikalismusElektronisches MarketingVorlesung/KonferenzComputeranimationTabelle
RohdatenComputeranimation
Transkript: Englisch(automatisch erzeugt)
Ok, so just quickly, we prepared a full style for a political map using natural Earth data and the GeoCSS language in GeoServer. Natural Earth is a public domain map data set for low-scale mapping, which you can use as a base map for any low-scale endeavor. It features tightly integrated
vector data and raster data, and it's free to use. GeoServer CSS, or for short the GeoCSS, is a CSS-inspired language for map styling. It's compact, powerful, human-readable and human-writeable. You can see a few examples. The structure is the same syntactically as a HTML CSS, but it
talks about properties that, well, evidently come from SLD. All the properties that you see there, the names come from SLD. So we are talking about cartography, not paragraphs, not divs, not a number list, so the focus is different.
The challenge, we wanted to have a significant, yet not too complicated base map in CSS for our training package. We already have, and it's linked there, OSM styles, which is a reproduction of OpenStreetMap with GeoServer that you can use to generate OpenStreetMap in your local
production, with your local restriction and whatever, maybe to run a local GeoServer which is in a sealed environment that doesn't access the internet. It was great. The problem is that it was way too complicated. Some of the styles in OSM styles are 1,000 lines of CSS, because, well, OSM is that complicated, and it
was not useful for teaching how to use CSS. So we wanted to have something simpler, and I wanted to have something that reminded me of the old political atlases that I had as a kid printed to explore. So we took the natural alert dataset and we prepared this type of map. I'm going to show you a few
examples. You can probably see they are reminiscent of an old printed political map. And this is the highest zoom level with all the roads and so on. And one more.
So, as you can see, it's a large layer group with all the datasets starting from the 110 millions, and then the 50 millions, and then the 10 millions, selected a number of layers from natural alert. The download is easy. You can just take the natural alert quick start package, stick it into the GeoServer data directory in a well-known
position, and there you go. You have GeoServer running and serving this base map. One example style picked among the many, because it has a few interesting bits. If we look at the first stroke, you can see that I'm using named colours such as dark grey rather than a hex colour, which is nice, and I'm using a function
inspired from less CSS to darken that dark grey another 5%. The second field that you see there, it's colouring the map using seven colours. The natural alert country map has a number in a column that guarantees that if you assign a
different colour to each value, no two countries will share the same colour. I'm there using a recode to associate the various colours, then there is a lightning,
and at the bottom we have a control of the labour priority based on the population of the country, so that I'm sure that I'm displaying China first and then, you know, all the other countries and not, for example, Republic of San Marino in Italy rather than Italy itself. How about physical map? It's in the works, it's in a branch, it's basically
base raster map plus labels. It's been sitting there for a while and I'm looking for someone that would be interested to complete the work and merge it into the official version of the map. How can I get it? This is the link and the link of
the physical map version of it, and if you are ready for the strong stuff, then there is also a link to the OSM styles, which I'm displaying as the typical web marketer over Bologna, but also as an orthographic projection, as you can see, part of the globe being displayed over the same data
with the same styles. And that's it.