wiki:Rules/MissingStreetnumberOrConscriptionnumber
meta
{
  title: "Missing streetnumber or conscriptionnumber";
  version: "1.3_2018-02-12"; /* don't remove 3_2018-02-12, needed for automatic updates within JOSM */
  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"));
}

Rules_MissingStreetnumberOrConscriptionnumber.validator.mapcss, Rules_MissingStreetnumberOrConscriptionnumber.zip

Last modified 9 days ago Last modified on 2018-02-12T21:02:48+01:00