[Potlatch-dev] New docs

Pierre (PierZen) infosbelas-gps at yahoo.fr
Thu Mar 17 16:55:25 GMT 2011


Richard Fairhurst wrote on 2011-03-17  06:54:53 
>> 1. TAGS with multiple values : How to define a tag where we accept any
>> values for one key?
>    vmatch might do what you want (see below). If you can give a concrete
>    example that would help.

The JOSM HOT Presets allows us to seize quickly various fields of data including Road Type. 
I succeeded reproducing this using v="*" with the following Roads Feature.
  <feature name="Roads">
    <category>HOTFeatures</category>
    <icon image="features/hot.png">
      <font size="16pt"><b>${name}</b></font><br/>
      <font size="10pt">${Operational Status}</font>
    </icon>
    <line/>
<tag k="highway" v="*"/>
<inputSet ref="HOT Road type" />    --> Input type=choice where we select Road Type
<inputSet id="HOT Road type">
    <input type="choice" presence="always" name="Type" key="highway" category="Road type" delete_if_empty="true">
      <choice value="primary" text="primary"/>
      <choice value="secondary" text="secondary"/>
      <choice value="tertiary" text="tertiary"/>
      <choice value="footway" text="footway"/>
      <choice value="track" text="track"/>
      <choice value="unspecified" text="unspecified"/>
    </input>
</inputSet>
<inputSet ref="HOT Roads" />
<inputSet id="HOT Roads"> 
    <input type="choice" presence="always" name="Operational Status" key="Operational_status" category="Roads" delete_if_empty="true">
      <choice value="open" text="open"/>
      <choice value="restricted" text="restricted"/>
      <choice value="closed" text="closed"/>
      <choice value="unspecified" text="unspecified"/>
    </input>
    <input type="choice" presence="always" name="Quality of Op. Status Info" key="Operational_status_quality" category="Roads" delete_if_empty="true">
      <choice value="reported" text="reported"/>
      <choice value="confirmed" text="confirmed"/>
      <choice value="unspecified" text="unspecified"/>
    </input>
...
  </feature>


Richard Fairhurst wrote on 2011-03-17  06:54:53 
>> 2. TAGS: If we already have a feature in Default Presets using a specific
>> tag like School, is it possible to create a new feature with duplicating
>> this tag reference without any confict with the existing feature?
>    There isn't really a distinction between "default presets" and anything
>    else. P2 can only understand one preset file at once. Just edit the preset
>    files to do what you want to.

Andy Allan answered you about that. 
> you *shouldn't* define the same real-world object multiple
I have answered to Andy with misindicating that the message was from you.
In this previous email, I gave a detailed example with Hospital Features.
With the Default Presets, there are two Hospital Features, one in amenities.xml and
one in buildings.xml. 

It seems to me that the P2 Menu Handler misinterpret the feature files.
When we select on the map a Hospital building (ie. amenity=Hospital and building=yes),
in the left Menu, I dont see in the Hospital TAB the input elements related to Hospital
building in buildings.xml.



Regards,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/potlatch-dev/attachments/20110317/c03b5e4f/attachment.html>


More information about the Potlatch-dev mailing list