make_area_statement.txt 725 B

1234567891011121314151617181920212223242526
  1. make_area
  2. * desc
  3. The make-area statement produces if possible from the given set of ways and nodes an area, tags it from the item in _tags_ and writes it into the database. The creation of an area is possible if and only if every node referenced by any way is contained in the set, every node that appears as first or last node of a way does so for an even number of times and the tags set contains exactly one item. If it is sucessful it returns the newly created area.
  4. * properties
  5. exec:yes
  6. ret_set:
  7. control_flow:no
  8. * substatements
  9. * depending_on
  10. input = set:from:nodes,ways
  11. tags = set:pivot
  12. * changes
  13. db:areas
  14. output = union set:from set:into:nodes (set:from:nodes)
  15. * time
  16. 1.5 + 0.001*set:from:nodes,ways
  17. * space
  18. 0