[Potlatch-dev] Suggestion for "lifecycle" tag - comments?

Steve Bennett stevagewp at gmail.com
Tue Feb 15 22:31:34 GMT 2011


Hi all,
  Thought I'd solicit comments before implementing the following:
<feature>
    <tag k="highway" v="tertiary" lifecycle="road"/>
    <inputSet ref="road_lifecycle"/>
...
</feature>

<inputSet id="road_lifecycle">
  <input type="choice" presence="onTagMatch" name="Life-cycle" lifecycle="yes">
    <choice value="" text="Complete" description="Road is open for business."/>
    <choice value="proposed" text="Proposed" description="Road has
official approval, but construction has not started."/>
    <choice value="construction" text="Under construction"
description="Road is under construction."/>
...
  </input>
</inputSet>


<lifecycle id="road">
  <stage>proposed</stage>
  <stage>construction</stage>
  <stage>abandoned</stage>
...
</lifecycle>

This would have the effect that "highway=proposed, proposed=tertiary"
would get matched (thanks to the <lifecycle> definition). Selecting
from a dropdown with "lifecycle" attribute set would cause the same
split tag structure to be created (or removed). (That same attribute
would cause the "key" attribute on the lifecycle element to get set to
the tag on the feature that has the lifecycle attribute - a bit ugly)

Anyway think the element names could be refined slightly. Are there
any other tags that work this way, apart from the lifecycle ones? Do
different tags have different lifecycles (I seem to recall that
railways have more states). Should I just hard-code it all?

Steve



More information about the Potlatch-dev mailing list