Ignore:
Timestamp:
2008-07-15T12:04:07+02:00 (16 years ago)
Author:
stoecker
Message:

updated to match real world tags

Location:
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/OverlappingWays.java

    r8693 r9021  
    7474                                        if (ar != null && ("true".equalsIgnoreCase(ar) || "yes".equalsIgnoreCase(ar) || "1".equals(ar)))
    7575                                                area++;
    76                                         if (ws.way.get("landuse") != null)
     76                                        if (ws.way.get("landuse") != null || ws.way.get("natural") != null
     77                                        || ws.way.get("amenity") != null || ws.way.get("leisure") != null)
    7778                                        {
    7879                                                area++; ways--;
     
    9293                                        if(area > 0)
    9394                                        {
    94                                                 if (highway == ways)
     95                                                if (ways == 0 || duplicated.size() == area)
     96                                                        errortype = tr("Overlapping areas");
     97                                                else if (highway == ways)
    9598                                                        errortype = tr("Overlapping highways (with area)");
    9699                                                else if (railway == ways)
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java

    r8911 r9021  
    5555                if(test != null)
    5656                {
     57                        if(!"coastline".equals(test))
     58                                force = true;
    5759                        type = tr("natural type {0}", tr(test));
    5860                }
     
    6062                if(test != null)
    6163                {
     64                        force = true;
    6265                        type = tr("landuse type {0}", tr(test));
     66                }
     67                test = w.get("amenities");
     68                if(test != null)
     69                {
     70                        force = true;
     71                        type = tr("amenities type {0}", tr(test));
     72                }
     73                test = w.get("sport");
     74                if(test != null)
     75                {
     76                        force = true;
     77                        type = tr("sport type {0}", tr(test));
     78                }
     79                test = w.get("tourism");
     80                if(test != null)
     81                {
     82                        force = true;
     83                        type = tr("tourism type {0}", tr(test));
     84                }
     85                test = w.get("shop");
     86                if(test != null)
     87                {
     88                        force = true;
     89                        type = tr("shop type {0}", tr(test));
     90                }
     91                test = w.get("leisure");
     92                if(test != null)
     93                {
     94                        force = true;
     95                        type = tr("leisure type {0}", tr(test));
     96                }
     97                test = w.get("waterway");
     98                if(test != null && test.equals("riverbank"))
     99                {
     100                        force = true;
     101                        type = tr("waterway type {0}", tr(test));
    63102                }
    64103                test = w.get("junction");
Note: See TracChangeset for help on using the changeset viewer.