Ignore:
Timestamp:
2016-01-24T14:42:03+01:00 (9 years ago)
Author:
stoecker
Message:

fix #12425 - add checksum based no-tile detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java

    r9414 r9610  
    4545        SHAPE,
    4646        NO_TILE,
     47        NO_TILESUM,
    4748        METADATA,
    4849        UNKNOWN,            // element is not recognized in the current context
     
    9495        private List<String> projections;
    9596        private Map<String, String> noTileHeaders;
     97        private Map<String, String> noTileChecksums;
    9698        private Map<String, String> metadataHeaders;
    9799
     
    107109            projections = null;
    108110            noTileHeaders = null;
     111            noTileChecksums = null;
    109112        }
    110113
     
    125128                    newState = State.ENTRY;
    126129                    noTileHeaders = new HashMap<>();
     130                    noTileChecksums = new HashMap<>();
    127131                    metadataHeaders = new HashMap<>();
    128132                }
     
    170174                    noTileHeaders.put(atts.getValue("name"), atts.getValue("value"));
    171175                    newState = State.NO_TILE;
     176                } else if ("no-tile-checksum".equals(qName)) {
     177                    noTileChecksums.put(atts.getValue("type"), atts.getValue("value"));
     178                    newState = State.NO_TILESUM;
    172179                } else if ("metadata-header".equals(qName)) {
    173180                    metadataHeaders.put(atts.getValue("header-name"), atts.getValue("metadata-key"));
     
    225232                    entry.setNoTileHeaders(noTileHeaders);
    226233                    noTileHeaders = null;
     234                    entry.setNoTileChecksums(noTileChecksums);
     235                    noTileChecksums = null;
    227236                    entry.setMetadataHeaders(metadataHeaders);
    228237                    metadataHeaders = null;
Note: See TracChangeset for help on using the changeset viewer.