Osm Object Filter

The Scout can perform a filter on the osm object before showing them in a new layer. The filter is controlled with a description file (*.filter) in xml format. Two example filters a here. They will be included in the next Releases.

example

<?xml version="1.0"?>
<osm_object_filter desc="historic tag">
    <rule name="historic tag rule" target="node">
      <selector>historic=*</selector>
        <template type="dot" />
        <template type="text" tag="name"/>
        <template type="text" tag="description"/>
      <options></options>
      <comment></comment>
    </rule>
</osm_object_filter>

One filter description has one or more filter rules. Each filter rule has a target. The Selector selects from all targets the fitting targets. The templates control the drawing of the targets. The options and comments are not used at this point

Last edited Oct 18, 2008 at 2:07 PM by tommyfeu, version 3

Comments

No comments yet.