GeoServer 2170 Webminar
GeoServer 2170 Webminar
2.17.0?
Andrea Aime
GeoSolutions
Quick overview
GeoServer 2.17.0
⚫ Released April 21st 2020 along with GeoTools 23.0
⚫ First release of the 2.17.x series
⚫ 2.17.x get 5 more releases
⚫ In "stable status" until September 2020, with some new features getting
backported
⚫ In "maintenance" status until March 2021, mostly with bug fixes
https://build.geoserver.org/geoserver/2.17.x/community-latest/
Map rendering news
Mapbox GL Styles plugin
⚫ Can apply Mapbox GL styles server side
⚫ Graduated from community to extension status
⚫ Use cases:
⚫ Re-use existing Mapbox GL styles on the server side
⚫ Edit styles with external editor (e.g., Maputnik)
⚫ Setup a hybrid rendering solution
WMTS/PNG Classic OGC
client
GeoServer
WMTS/MVT
Mapbox
client
Mapbox
Data GL
Mapbox GL Styles plugin
⚫ Received significant QA work, 18 tickets resolved
⚫ Increased rendering fidelity (e.g. better match of
zoom related functions, improved font matching)
⚫ Increased behavior match (e.g. icons and labels
showing up together, or disappearing together)
Mapbox GL Styles plugin
⚫ Example rendering OpenMapTiles GL Bright
Map engine improvements
⚫ The Mapbox GL work required new functionality,
made available in all style languages.
⚫ Other functionalities added as well, independent
of the Mapbox GL work
⚫ In particular:
⚫ Background fill
⚫ Associate symbol with label, make them show either together, or
none
⚫ Automatic font shrinking to fit labels in polygons
⚫ Drape symbol along a line (vs just repeating it)
Background fill
⚫ Specify a "fill" at the SLD UserStyle level, fills the
background of the map
Offset label shield
⚫ Label shield functionality allows to center a label
and a background graphic.
⚫ Meant to be used for road shields
⚫ New "graphicPlacement" vendor option
⚫ "label" centers with the label
⚫ "independent" centers with the original point +
offset/anchor
<VendorOption
name="graphicPlacement">
independent
</VendorOption>
Auto-shrink polygon labels
⚫ Make an effort to fit labels inside polygons
⚫ Shrink them down to a min target size, rather
than making them overflow or disappear
Auto-shrink polygon labels
<TextSymbolizer>
<Label>
<ogc:PropertyName>label</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Bitstream Vera Sans</CssParameter>
<CssParameter name="font-size">16</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
</PointPlacement>
</LabelPlacement>
<VendorOption name="fontShrinkSizeMin">6</VendorOption>
<VendorOption name="goodnessOfFit">1</VendorOption>
</TextSymbolizer>
Drape line symbol along a line
⚫ LineSybolizer allow to repeat a symbol along a line
⚫ The result is normally dis-continuous at line
vertices
markAlongLine=true markAlongLine=false
Drape line symbol along a line
<?xml version="1.0"?>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<WellKnownName>
wkt://LINESTRING (0 0, 0 -0.5, 0.5 -0.5, 0.5 0.5, 1 0.5, 1 0)
</WellKnownName>
<Stroke>
<CssParameter name="stroke">0xFF0000
</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
<CssParameter name="stroke-linecap">round</CssParameter>
</Stroke>
</Mark>
<Size>20</Size>
</Graphic>
</GraphicStroke>
</Stroke>
<VendorOption name="markAlongLine">true</VendorOption>
</LineSymbolizer>
Data sources and formats
Mbtiles + Vector tiles data source
⚫ A MBTiles file is a SQLite tile storage
⚫ One main table called "tiles"
⚫ Elevation
⚫ Custom
⚫ Custom used to be
supported by raster data
only
https://www.geosolutionsgroup.com/contacts/