Styles for OpenStreetMap layers
SLD 1.0 styles for the layers that tests/fixtures/tools/osm_to_layers.py makes from OpenStreetMap data: roads, waterways, water, landuse, buildings. The look is a light real-map style in the spirit of the standard OpenStreetMap map.
The .sld files here carry the layer keys as names. An SLD must name the layer by its WMS name in Loka Server, so either write them again with the real names:
python make_sld.py <out-dir> roads=<wms name> waterways=… water=… landuse=… buildings=…or paste a file into the layer’s style editor and change the <Name> there. Then Validate, Save Draft, Preview, Publish.
What the styles use, and no more: rules with an ogc:Filter on one attribute, scale limits, polygon fills, line strokes with a casing. No labels and no icons.
Known limits: MapServer draws the features of a layer in data order, so a casing can lie over a neighbouring road at junctions, and a minor road can cross over a major one. A layer per road class would fix that and is not done.
OpenStreetMap data is © OpenStreetMap contributors (ODbL); show that attribution wherever these layers are shown.