logo separator

[mkgmap-dev] Snapshot of style rules for seamark points

From Mark Burton markb at ordern.com on Fri Jan 1 23:16:05 GMT 2010

I've just committed some Java support for seamark marine lights. If you
want to create maps with seamark objects you also need some style
rules in the points file. I append a snapshot of what I am currently
using. At some future time, it could be merged into the default style or
be in a special marine style.

I know that there is an alternative tag set for marine objects but I'm
ignoring it for the moment as the marine map I am working on is for the
Open Sea Map people (who are a bit miffed that someone has come up
with an alternative tag set).

Examples of seamark usage can be found in the Baltic area, especially
near Rostock and Kiel. 

############################################################################
# begin seamark marine objects

################################################
# add mkgmap:xt- tags

seamark:light:ref=* { add mkgmap:xt-int-desig='${seamark:light:ref}'; }
seamark:beacon_lateral:ref=* { add mkgmap:xt-int-desig='${seamark:beacon_lateral:ref}'; }
seamark:buoy_lateral:ref=* { add mkgmap:xt-int-desig='${seamark:buoy_lateral:ref}'; }

seamark:light:height=* { add mkgmap:xt-height-above-datum='${seamark:light:height}'; }
seamark:light:colour=* { add mkgmap:xt-light='${seamark:light:colour}'; }
seamark:light:period=* { add mkgmap:xt-period='${seamark:light:period}'; }
seamark:light:sequence=* { add mkgmap:xt-note='Sequence: ${seamark:light:sequence}'; }
seamark:light:group=* { add mkgmap:xt-note='Group: ${seamark:light:group}'; }

# deprecated
seamark:light:signal:period=* { add mkgmap:xt-period='${seamark:light:signal:period}'; }
seamark:light:signal:sequence=* { add mkgmap:xt-note='${seamark:light:signal:sequence}'; }

seamark:buoy_special_purpose:colour=* { add mkgmap:xt-colour='${seamark:buoy_special_purpose:colour}'; }
seamark:buoy_lateral:colour=* { add mkgmap:xt-colour='${seamark:buoy_lateral:colour}'; }
seamark:buoy_lateral:category=port { add mkgmap:xt-colour='red'; }
seamark:buoy_lateral:category=starboard { add mkgmap:xt-colour='green'; }

seamark:buoy_lateral:category=preferred_channel_port { add mkgmap:xt-colour='green-red-green'; }
seamark:buoy_lateral:category=preferred_channel_starboard { add mkgmap:xt-colour='red-green-red'; }

seamark:buoy_safe_water:colour='red,white,red' { add mkgmap:xt-colour='red-white'; }
seamark:buoy_safe_water:colour=* { add mkgmap:xt-colour='${seamark:buoy_safe_water:colour}'; }

seamark:buoy_race:colour=* { add mkgmap:xt-colour='${seamark:buoy_race:colour}'; }

seamark:beacon_special_purpose:colour=* { add mkgmap:xt-colour='${seamark:beacon_special_purpose:colour}'; }

######
# define types

seamark:buoy_lateral:shape=spar [0x010207 resolution 20]
seamark:buoy_lateral:category=port [0x010209 resolution 20]
seamark:buoy_lateral:category=starboard [0x01020a resolution 20]
seamark:buoy_lateral:shape=* [0x010200 resolution 20]
seamark:buoy_lateral:category=* [0x010200 resolution 20]

seamark:buoy_cardinal:category=north { add mkgmap:xt-colour='black-yellow'; } [0x010202 resolution 20]
seamark:buoy_cardinal:category=south { add mkgmap:xt-colour='yellow-black'; } [0x010203 resolution 20]
seamark:buoy_cardinal:category=east { add mkgmap:xt-colour='black-yellow-black'; } [0x010204 resolution 20]
seamark:buoy_cardinal:category=west { add mkgmap:xt-colour='yellow-black-yellow'; } [0x010205 resolution 20]

seamark:buoy_special_purpose:shape=pillar [0x010207 resolution 20]
seamark:buoy_special_purpose:shape=spar [0x010207 resolution 20]
seamark:buoy_special_purpose:shape=barrel [0x01020d resolution 20]
seamark:buoy_special_purpose:shape=* [0x01020b resolution 20]

seamark:buoy_safe_water:shape=* [0x01020c resolution 20]

seamark:buoy_race:shape=* { add xt-note='Race Buoy' } [0x010200 resolution 20]

seamark=lighthouse & seamark:light:colour='red' { } [0x010107 resolution 20]
seamark=lighthouse & seamark:light:colour='green' { } [0x010108 resolution 20]

seamark=lighthouse [0x010100 resolution 20]

seamark:beacon_cardinal:category=north { add mkgmap:xt-colour='black-yellow'; } [0x01020e resolution 20]
seamark:beacon_cardinal:category=south { add mkgmap:xt-colour='yellow-black'; } [0x01020f resolution 20]
seamark:beacon_cardinal:category=east { add mkgmap:xt-colour='black-yellow-black'; } [0x010210 resolution 20]
seamark:beacon_cardinal:category=west { add mkgmap:xt-colour='yellow-black-yellow'; } [0x010211 resolution 20]

seamark:beacon:category=port [0x010213 resolution 20]
seamark:beacon:category=starboard [0x010214 resolution 20]
seamark:beacon:category=* [0x010206 resolution 20]
seamark:beacon_lateral:category=* [0x010206 resolution 20]
seamark:beacon_lateral:shape=* [0x010206 resolution 20]
seamark:beacon_special_purpose:colour=* [0x010215 resolution 20]

seamark:light:1=* [0x010100 resolution 20]

waterway=depth & name=* { name '${name|subst:,=>.}' } [ 0x6200 resolution 22]
waterway=wreck [ 0x010402 resolution 22 ]
historic=wreck [ 0x010402 resolution 22 ]

# end seamark marine objects
############################################################################



More information about the mkgmap-dev mailing list