Publication Date: 2017-06-30

Approval Date: 2017-06-29

Posted Date: 2016-11-27

Reference number of this document: OGC 16-144

Reference URL for this document: http://www.opengis.net/doc/PER/t12-A033

Category: User Guide

Editor: Stephane Fellah

Title: [big]#2D Test Dataset Symbols and Styles User Guide


COPYRIGHT

Copyright © 2017 Open Geospatial Consortium. To obtain additional rights of use, visit http://www.opengeospatial.org/

Important

Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. The Open Geospatial Consortium shall not be held responsible for identifying any or all such patent rights. Recipients of this document are requested to submit, with their comments, notification of any relevant patent claims or other intellectual property rights of which they may be aware that might be infringed by any implementation of the standard set forth in this document, and to provide supporting documentation.

Note

This document is a user guide created as a deliverable in the OGC Innovation Program (formerly OGC Interoperability Program) as a user guide to the work of that initiative and is not an official position of the OGC membership. There may be additional valid approaches beyond what is described in this user guide.


POINTS OF CONTACT

Name

Organization

Stephane Fellah (Editor)

Image Matters LLC


1. Introduction

This User Guide describes the 2D Datasets Symbols and Styles associated with the OpenStreet Map (OSM) Dataset produced for the OGC Testbed 12 as defined in Testbed-12 2D Test Dataset Implementation with Documentation (OGC 16-136). The datasets are composed of 11 features types. Two style sets were produced to present these feature types:

  • OpenStreetMap Style Set: This Style set is based on the style used by the OSM web site that uses the Mapnik CSS styles.

  • LTDS Style Set: This style set is based on on the symbologies defined for the Local Topographic Data Store (LTDS).

The style sets were encoded using the standard Style Layer Description (SLD) specification. One SLD file was produced per feature type. Each FeatureType Style defines rules to portray a given feature type with different symbolizers. The following sections describes each style set in details.

2. References

The following documents are referenced in this document. For dated references, subsequent amendments to, or revisions of, any of these publications do not apply. For undated references, the latest edition of the normative document referred to applies.

  • OGC 16-136, Testbed-12 2D Test Dataset Implementation with Documentation

  • OGC 05-078r4, OpenGIS Styled Layer Descriptor Profile of the Web Map Service Implementation Specification, Version 1.1.0, 2006

  • OGC 05-077r4, OpenGIS® Symbology Encoding Implementation Specification, Version 1.1.0, 2006.

3. OpenStreetMap Style Set

3.1. Overview

The OpenStreetMap (OSM) Style Set is based the symbology defined by Mapnik at https://github.com/openstreetmap/mapnik-stylesheets/tree/master/symbols. It provides ten SLD documents for the following OSM feature types and styles.

Feature Type Style SLD Filename

osm:Aeroway

  • Aerodromes

  • Airports

  • Helipad

  • Terminal

  • Apron

AerowayOSM.xml

osm:Building

  • General Building

BuildingOSM.xml

osm:Emergeny

  • Operation Area and Shelters

EmergencyOSM.xml

osm:Highway

  • Motorway and Trunks

  • Motorway Links

  • Trunk/Trunk Links

  • Residential and Unclassified Highways

  • Traffic Signals

  • Bus Stops

  • Highway Services and Rest Areas

  • Secondary Roads and Secondary Links

HighwayOSM.xml

osm:Landuse

  • Military

  • Quarries

  • Vineyards

  • Orchards

  • Industrial Zones

  • Reservoirs

  • Cemeteries and Graveyards

  • Residentials Zones

  • Meadows/Grass

  • Allotments

  • Forest

  • Farmyards

  • Farms and Farmlands

  • Recreation Grounds and Conservations

  • Retail

  • Commercial

  • Village Green

  • Landfills and Construction Areas

  • Wood

  • Basin

  • Water

LanduseOSM.xml

osm:Leisure

  • Playgrounds

  • Sports Centre and Stadium

  • Swimming Pools

  • Gardens

  • Golf Courses

  • Nature Reserves

  • National Parks

  • Park and Recreation Grounds

LeisureOSM.xml

osm:Military

  • Barracks

  • Danger Areas

MilitaryOSM.xml

osm:Power

  • Power Station and Generators

  • Power Substations

PowerOSM.xml

osm:Railway

  • Rails

  • Trams, light rails, subway, narrow gauges, and funiculars

  • Unused Railroads

  • Subways

PowerOSM.xml

osm:Waterway

  • Dock, Drains, Canals

  • Lakes, Water Areas, Reservoirs, Riverbanks, and Bays

  • Dans

WaterwayOSM.xml

The following section describes the specification of the styles associated for each feature type.

3.2. Features

3.2.1. Aeroway Feature Styles

The Aeroway Feature Styles are defined in the file AerowayOSM.xml

Layer

AerowayLayer

FeatureType Name

osm:Aeroway

Definition

Feature used to mark airports and all that goes with it.

Depiction

Diagram
Aerodromes
Portrayal Rule 1

FeatureType Name

osm:Aeroway

Condition

aeroway ='aerodrome'

minScaleDenonimator

40000

maxScaleDenominator

750000

Definition

An aerodrome other than heliport

Feature Depiction

Diagram

Symbol depiction

aerodrome.p.16

Symbolizer specification

icon

/symbols/aerodrome.p.16.png

SLD Encoding

<se:PointSymbolizer>
	<se:Graphic>
		<se:ExternalGraphic>
			<se:OnlineResource xlink:href="/symbols/aerodrome.p.16.png" xlink:type="simple"/>
			<se:Format>image/png</se:Format>
		</se:ExternalGraphic>
	</se:Graphic>
</se:PointSymbolizer>
Portrayal Rule 2

FeatureType Name

osm:Aeroway

Condition

aeroway ='aerodrome'

minScaleDenonimator

0

maxScaleDenominator

20000

Definition

An aerodrome other than heliport

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

fill-opacity

0.2

fill

#cccccc

stroke-width

0.2

stroke

#555555

SLD Encoding

<se:PolygonSymbolizer>
	<se:Fill>
		<se:SvgParameter name="fill-opacity">0.2</se:SvgParameter>
		<se:SvgParameter name="fill">#cccccc</se:SvgParameter>
	</se:Fill>
</se:PolygonSymbolizer>
<se:LineSymbolizer>
	<se:Stroke>
		<se:SvgParameter name="stroke-width">0.2</se:SvgParameter>
		<se:SvgParameter name="stroke">#555555</se:SvgParameter>
	</se:Stroke>
</se:LineSymbolizer>
Airports
Portrayal Rule 1

FeatureType Name

osm:Aeroway

Condition

aeroway ='aerodrome'

minScaleDenonimator

40000

maxScaleDenominator

750000

Definition

An aerodrome other than heliport

Feature Depiction

Diagram

Symbol depiction

airport.p.16

Symbolizer specification

icon

/symbols/airport.p.16.png

SLD Encoding

<se:PointSymbolizer>
	<se:Graphic>
		<se:ExternalGraphic>
			<se:OnlineResource xlink:href="/symbols/airport.p.16.png" xlink:type="simple"/>
			<se:Format>image/png</se:Format>
		</se:ExternalGraphic>
	</se:Graphic>
</se:PointSymbolizer>
Helipad

FeatureType Name

osm:Aeroway

Condition

aeroway ='helipad'

minScaleDenonimator

5000

maxScaleDenominator

750000

Definition

A place where helicopters can land.

Feature Depiction

Diagram

Symbol depiction

helipad.p.16

Symbolizer specification

icon

/symbols/helipad.p.16.png

SLD Encoding

<se:PointSymbolizer>
	<se:Graphic>
		<se:ExternalGraphic>
			<se:OnlineResource xlink:href="/symbols/helipad.p.16.png" xlink:type="simple"/>
			<se:Format>image/png</se:Format>
		</se:ExternalGraphic>
	</se:Graphic>
</se:PointSymbolizer>
Terminal
Portrayal Rule 1

FeatureType Name

osm:Aeroway

Condition

aeroway ='terminal'

maxScaleDenominator

200000

Definition

A place where helicopters can land.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

Fill

#cc99ff

SLD Encoding

<se:PolygonSymbolizer>
	<se:Fill>
		<se:SvgParameter name="fill">#cc99ff</se:SvgParameter>
	</se:Fill>
</se:PolygonSymbolizer>
Portrayal Rule 2

FeatureType Name

osm:Aeroway

Condition

aeroway ='terminal'

maxScaleDenominator

100000

Definition

A place where helicopters can land.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke-width

0.2

stroke

#330066

SLD Encoding

<se:LineSymbolizer>
	<se:Stroke>
		<se:SvgParameter name="stroke-width">0.2</se:SvgParameter>
		<se:SvgParameter name="stroke">#330066</se:SvgParameter>
	</se:Stroke>
</se:LineSymbolizer>
Apron

FeatureType Name

osm:Aeroway

Condition

aeroway ='apron'

maxScaleDenominator

200000

Definition

A surfaced part of an airport where planes park.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

fill

#e9d1ff

SLD Encoding

<se:PolygonSymbolizer>
	<se:Fill>
		<se:SvgParameter name="fill">#e9d1ff</se:SvgParameter>
	</se:Fill>
</se:PolygonSymbolizer>

3.2.2. Building Feature Styles

General Buildings

FeatureType Name

osm:Building

Condition

building ='yes'

maxScaleDenominator

25000

Definition

A surfaced part of an airport where planes park.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

fill

#FFFFA3

stroke

#999999

stroke-width

0

SLD Encoding

<sld:PolygonSymbolizer>
    <sld:Fill>
        <sld:CssParameter name="fill">#FFFFA3</sld:CssParameter>
    </sld:Fill>
    <sld:Stroke>
        <sld:CssParameter name="stroke">#999999</sld:CssParameter>
        <sld:CssParameter name="stroke-width">0</sld:CssParameter>
    </sld:Stroke>
</sld:PolygonSymbolizer>

3.2.3. Emergency Feature Styles

Operation Areas and Shelters

Rule name

AR_Black_Building_Generic

FeatureType Name

osm:Emergency

Condition

emergency ='operation_area' and emergency='shelter'

maxScaleDenominator

25000

Definition

Emergency operational areas and shelters

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

fill

#000000

SLD Encoding

<se:PolygonSymbolizer>
	<se:Fill>
		<se:SvgParameter name="fill">#000000</se:SvgParameter>
	</se:Fill>
</se:PolygonSymbolizer>

3.2.4. Highway Feature Styles

Motorways and Trunks

FeatureType Name

osm:Highway

Condition

highway ='motorway' and highway='trunk'

minScaleDenominator

140000

maxScaleDenominator

360000

Definition

High capacity highways designed to safely carry fast motor traffic.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke

#97d397

stroke-width

1

stroke-linejoin

round

SLD Encoding

<se:LineSymbolizer>
	<se:Stroke>
		<se:SvgParameter name="stroke">#97d397</se:SvgParameter>
		<se:SvgParameter name="stroke-width">1</se:SvgParameter>
		<se:SvgParameter name="stroke-linejoin">round</se:SvgParameter>
	</se:Stroke>
</se:LineSymbolizer>

FeatureType Name

osm:Highway

Condition

highway ='motorway' and highway='motorway_link'

minScaleDenominator

1000

maxScaleDenominator

4000

Definition

The link roads (sliproads / ramps) leading to and from a motorway.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke

#97d397

stroke-width

2.5

SLD Encoding

<se:LineSymbolizer>
	<se:Stroke>
		<se:SvgParameter name="stroke-width">2.5</se:SvgParameter>
		<se:SvgParameter name="stroke">#97d397</se:SvgParameter>
	</se:Stroke>
</se:LineSymbolizer>

FeatureType Name

osm:Highway

Condition

highway ='motorway' and highway='trunk_link'

minScaleDenominator

1000

maxScaleDenominator

4000

Definition

The link roads (sliproads / ramps) leading to and from a motorway.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke

#97d397

stroke-width

12

SLD Encoding

<se:LineSymbolizer>
	<se:Stroke>
		<se:SvgParameter name="stroke-width">12</se:SvgParameter>
		<se:SvgParameter name="stroke">#97d397</se:SvgParameter>
	</se:Stroke>
</se:LineSymbolizer>
Outline for Major roads at Zoom Level 3

FeatureType Name

osm:Highway

Condition

highway ='motorway' and highway='trunk'

minScaleDenominator

1000

maxScaleDenominator

4000

Definition

High capacity highways designed to safely carry fast motor traffic.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke

#97d397

stroke-width

12

stroke-linejoin

round

SLD Encoding

<se:LineSymbolizer>
	<se:Stroke>
		<se:SvgParameter name="stroke">#97d397</se:SvgParameter>
		<se:SvgParameter name="stroke-width">12</se:SvgParameter>
		<se:SvgParameter name="stroke-linejoin">round</se:SvgParameter>
	</se:Stroke>
</se:LineSymbolizer>
Fill for Major Roads at Zoom Level 3

FeatureType Name

osm:Highway

Condition

highway ='motorway' and highway='trunk'

minScaleDenominator

1000

maxScaleDenominator

4000

Definition

High capacity highways designed to safely carry fast motor traffic.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke

#97d397

stroke-width

12

stroke-linejoin

round

Label property

name

font-size

12

font-family

Arial

perpendicular-offset

0

SLD Encoding

<se:LineSymbolizer>
    <se:Stroke>
        <se:SvgParameter name="stroke">#97d397</se:SvgParameter>
        <se:SvgParameter name="stroke-width">12</se:SvgParameter>
        <se:SvgParameter name="stroke-linejoin">round</se:SvgParameter>
    </se:Stroke>
</se:LineSymbolizer>
<se:TextSymbolizer>
    <se:Label>
        <ogc:PropertyName>name</ogc:PropertyName>
    </se:Label>
    <se:Font>
        <se:SvgParameter name="font-size">12</se:SvgParameter>
        <se:SvgParameter name="font-family">Arial</se:SvgParameter>
    </se:Font>
    <se:LabelPlacement>
        <se:LinePlacement>
            <se:PerpendicularOffset>0</se:PerpendicularOffset>
        </se:LinePlacement>
    </se:LabelPlacement>
</se:TextSymbolizer>
</se:LineSymbolizer>
Residential & Unclassified Highways (Zoom Level 3)

FeatureType Name

osm:Highway

Condition

highway ='residential' and highway='unclassified'

minScaleDenominator

1000

maxScaleDenominator

5000

Definition

Road in a residential area or Public access road, non-residential.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke

#888888

stroke-width

14

stroke-linecap

round

SLD Encoding

<se:LineSymbolizer>
    <se:Stroke>
        <se:SvgParameter name="stroke">#888888</se:SvgParameter>
            <se:SvgParameter name="stroke-width">14</se:SvgParameter>
            <se:SvgParameter name="stroke-linecap">round</se:SvgParameter>
    </se:Stroke>
</se:LineSymbolizer>
Traffic Signals

FeatureType Name

osm:Highway

Condition

highway ='traffic_signals'

maxScaleDenominator

10000

Definition

A traffic signal for regulating circulation.

Feature Depiction

Diagram

Symbol depiction

traffic light

Symbolizer specification

icon

symbols/traffic_light.png

SLD Encoding

<se:MaxScaleDenominator>10000</se:MaxScaleDenominator>
<se:PointSymbolizer>
	<se:Graphic>
		<se:ExternalGraphic>
			<se:OnlineResource xlink:href="/symbols/traffic_light.png" xlink:type="simple"/>
			<se:Format>image/png</se:Format>
		</se:ExternalGraphic>
	</se:Graphic>
</se:PointSymbolizer>
Bus Stops

FeatureType Name

osm:Highway

Condition

highway ='bus_stop'

maxScaleDenominator

8000

Definition

A bus stop is a place where public buses stop.

Feature Depiction

Diagram

Symbol depiction

bus stop.p.12

Symbolizer specification

icon

symbols/bus_stop.p.12.png

SLD Encoding

<se:PointSymbolizer>
	<se:Graphic>
		<se:ExternalGraphic>
			<se:OnlineResource xlink:href="/symbols/bus_stop.p.12.png" xlink:type="simple"/>
			<se:Format>image/png</se:Format>
		</se:ExternalGraphic>
	</se:Graphic>
</se:PointSymbolizer>

FeatureType Name

osm:Highway

Condition

highway ='bus_stop'

minScaleDenominator

8000

maxScaleDenominator

12500

Definition

A bus stop is a place where public buses stop.

Feature Depiction

Diagram

Symbol depiction

bus stop small

Symbolizer specification

icon

/symbols/bus_stop_small.png

SLD Encoding

<se:PointSymbolizer>
    <se:Graphic>
        <se:ExternalGraphic>
            <se:OnlineResource xlink:href="/symbols/bus_stop_small.png" xlink:type="simple" />
            <se:Format>image/png</se:Format>
        </se:ExternalGraphic>
    </se:Graphic>
</se:PointSymbolizer>
Highways services and rest areas

FeatureType Name

osm:Highway

Condition

highway ='services' and highway='rest_area'

maxScaleDenominator

50000

Definition

Service area generally for access to a building, service station, beach, campsite, industrial estate, business park, etc. Rest area are place where drivers can leave the road to rest, but not refuel.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

fill

#efc8c8

SLD Encoding

[source,xml] ---- <se:PolygonSymbolizer> <se:Fill> <se:SvgParameter name="fill">#efc8c8</se:SvgParameter> </se:Fill> </se:PolygonSymbolizer> ----

FeatureType Name

osm:Highway

Condition

highway ='secondary' and highway='secondary_link'

minScaleDenominator

400000

maxScaleDenominator

1500000

Definition

A highway linking large towns.

Feature Depiction

Diagram

Symbol depiction

Symbolizer specification

stroke

#fecc8b

SLD Encoding

<se:LineSymbolizer>
    <se:Stroke>
        <se:SvgParameter name="stroke">#fecc8b</se:SvgParameter>
    </se:Stroke>
</se:LineSymbolizer>

3.2.5. Landuse Feature Styles

Military

FeatureType Name

osm:Landuse

Condition

landuse ='military'

maxScaleDenominator

7500000

Definition

AArea used for military purposes

Feature Depiction

Diagram

Symbol depiction

military red hz2

Symbolizer specification

icon

/symbols/military_red_hz2.png

SLD Encoding

<se:PolygonSymbolizer>
    <se:Fill>
        <se:GraphicFill>
            <se:Graphic>
                <se:ExternalGraphic>
                    <se:OnlineResource xlink:href="/symbols/military_red_hz2.png" />
                    <se:Format>image/png</se:Format>
                </se:ExternalGraphic>
            </se:Graphic>
        </se:GraphicFill>
    </se:Fill>
</se:PolygonSymbolizer>

<se:LineSymbolizer>
    <se:Stroke>
        <se:SvgParameter name="stroke-opacity">0.329</se:SvgParameter>
        <se:SvgParameter name="stroke-width">3</se:SvgParameter>
        <se:SvgParameter name="stroke">#ff5555</se:SvgParameter>
    </se:Stroke>
</se:LineSymbolizer>
Quarries

FeatureType Name

osm:Landuse

Condition

landuse ='quarry'

maxScaleDenominator

750000

Definition

Surface mineral extraction"

Feature Depiction

Diagram

Symbol depiction

quarry2

Symbolizer specification

icon

/symbols/quarry2.png

stroke-opacity

0.329

stroke-width

0.5

stroke

#829495

SLD Encoding

<se:PolygonSymbolizer>
    <se:Fill>
        <se:GraphicFill>
            <se:Graphic>
                <se:ExternalGraphic>
                    <se:OnlineResource xlink:href="/symbols/quarry2.png" /> (1)
                    <se:Format>image/png</se:Format>
                </se:ExternalGraphic>
            </se:Graphic>
        </se:GraphicFill>
    </se:Fill>
</se:PolygonSymbolizer>
<se:LineSymbolizer>
    <se:Stroke>
        <se:SvgParameter name="stroke-opacity">0.329</se:SvgParameter>
        <se:SvgParameter name="stroke-width">.5</se:SvgParameter>
        <se:SvgParameter name="stroke">#829495</se:SvgParameter>
    </se:Stroke>
</se:LineSymbolizer>
Vineyards

FeatureType Name

osm:Landuse

Condition

landuse ='vineyard'

minScaleDenominator

100000

maxScaleDenominator

750000

Definition

a piece of land where grapes are grown.

Feature Depiction