Changeset 14552 in josm


Ignore:
Timestamp:
2018-12-11T22:34:04+01:00 (6 years ago)
Author:
Klumbumbus
Message:
  • see #16301 - make id mandatory
  • see #17058 - add asserts to territories.mapcss
Location:
trunk/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/maps.xsd

    r14541 r14552  
    643643                            <xs:element name="description" minOccurs="0" type="tns:description" />
    644644                            <!-- A unique id for the imagery source -->
    645                             <xs:element name="id" minOccurs="0" maxOccurs="1" type="tns:id" />
     645                            <xs:element name="id" minOccurs="1" maxOccurs="1" type="tns:id" />
    646646                            <!-- Historic id for the imagery source -->
    647647                            <xs:element name="oldid" minOccurs="0" maxOccurs="unbounded" type="tns:oldid" />
  • trunk/data/validator/territories.mapcss

    r12815 r14552  
    1111*[name =~ /(?i).*Strasse.*/][name !~ /(?i).*Strasser.*/][inside("DE,AT")] {
    1212  throwError: tr("street name contains ss");
     13  assertMatch: "way name=Hauptstrasse";
     14  assertNoMatch: "way name=Hauptstraße";
     15  assertNoMatch: "way name=Kapitän-Strasser-Straße";
     16  assertNoMatch: "way name=Peter-Strasser-Platz";
     17 
    1318}
    1419*[addr:street =~ /(?i).*Straße.*/][inside("LI,CH")],
    1520*[name =~ /(?i).*Straße.*/][inside("LI,CH")] {
    1621  throwError: tr("street name contains ß");
     22  assertMatch: "way name=Hauptstraße";
     23  assertNoMatch: "way name=Hauptstrasse";
    1724}
Note: See TracChangeset for help on using the changeset viewer.