[OSM-dev] Overall MapFeatures.xml File. was: Addition to JOSM - 'map style' display

Niko ranaldo at unina.it
Sat Sep 16 02:25:12 BST 2006


[...]
> similar. What about creating a general OSM-Map-Feature.xml file which is
> the same for all applications. These then can use these definitions for
> entering or rendering Map Features.

I requested for this in a previous post and if you are going to take care of 
it please consider some of the following:

*) engine design indipendent (not closed to svg or to java/qt painters etc.)
*) xml file format containing different rule-set profile (eg <profile 
name="uk"> rules to render ways in uk standard colours </profile> <profile 
name="it"> ... italian standard colours ... </profile><profile 
name="osmarender"> osmarender style rules)
*) different rules at different zoom levels
*) some kind for and/or/not rules expression to group them 
*) extensible to meet future needs

and other ideas :)

something like:
<render>
 <profile name="uk">
  <wayrules>
    <rule match="class|highway=motorway|motorway_link or lanes=3">
 	 <zoom min="0" max="1000">
	  <line width="8" colour="FFAA88" outline_colour="CCCCCC"/>
          </zoom>
	  <zoom min="1000" max="infinite">
 ...

The format should be rich enough to cover every needs, and software not 
capable to use it directly could generate the own format from it with some 
tools/stylesheets.

Users may create custom profiles with namespaces  and use them to ovverride 
some particular rendering needs without adding obscure tags in the main data 
repository, eg:

<profile name="user:me">
...
 <rule match="id=2333344" colour="FF0000" font="+bold">
 <label lat="13.2233" lon="34.2222" text="Server Farm">

Regards

	Niko




More information about the dev mailing list