wiki:Rules/MissingStreetnumberOrConscriptionnumber

Version 1 (modified by jose1711, 3 months ago) (diff)

--

meta {

title: "Missing streetnumber or conscriptionnumber"; version: "1.00_2018-02-12"; description: "Copy value of housenumber tag to either streetnumber or conscriptionnumber"; author: "Jose Riha"; link: "http://josm.openstreetmap.de/wiki/Rules/CzechRepublicAddressSystem"; watch-modified: true; min-josm-version: "11424"; /* due to territory selectors */

}

/* see implementation of Czech Republic Address System for JOSM validator as per http://wiki.openstreetmap.org/wiki/Cs:WikiProject_Czech_Republic/Address_system Only makes sense to edits within borders of Czech and Slovak republic.

The sole purpose of rule is to use it for populating addr:streetnumber/addr:conscriptionnumber tags when missing.

Pozri http://wiki.openstreetmap.org/wiki/Cs:WikiProject_Czech_Republic/Address_system

Sada tychto jednoduchych pravidiel sluzi na vyplnenie tagov addr:streetnumber/addr:conscriptionnumber.

Pouzitie:

  • nacitate problemovu oblast (elementy s addr:housenumber, ale chybajucimi streetnumber a conscriptionnumber)
  • ctrl-f, zadate:
    • pre vyhladanie buducich streetnumbers: "addr:housenumber" -"addr:housenumber":/ -"addr:streetnumber" -"addr:conscriptionnumber" "addr:housenumber" < 300
    • pre vyhladanie buducich conscriptionnumbers: "addr:housenumber" -"addr:housenumber":/ -"addr:streetnumber" -"addr:conscriptionnumber"
  • validator - overit
  • vo vysledkoch validacie si vyberiete ci budete vyplnat supisne alebo orientacne cisla
  • oznacite, kliknite na opravit

please send fixes and suggestions to: jose1711 gmail com */

*[addr:housenumber][addr:streetnumber][!addr:conscriptionnumber][inside("CZ,SK")]{ throwWarning: tr("Missing streetnumber while housenumber exists"); fixAdd: concat("addr:streetnumber=",tag("addr:housenumber")); }

*[addr:housenumber][addr:streetnumber][!addr:conscriptionnumber][inside("CZ,SK")]{ throwWarning: tr("Missing conscriptionnumber while housenumber exists"); fixAdd: concat("addr:conscriptionnumber=",tag("addr:housenumber")); }