Changeset 4439 in josm for trunk/src/org
- Timestamp:
- 2011-09-17T23:29:49+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r4432 r4439 40 40 ENTRY, // inside an entry 41 41 ENTRY_ATTRIBUTE, // note we are inside an entry attribute to collect the character data 42 SUPPORTED_PROJECTIONS,43 SRS,42 PROJECTIONS, 43 CODE, 44 44 BOUNDS, 45 45 SHAPE, … … 84 84 ImageryBounds bounds; 85 85 Shape shape; 86 List<String> supported_srs;86 List<String> projections; 87 87 88 88 @Override public void startDocument() { … … 94 94 entry = null; 95 95 bounds = null; 96 supported_srs = null;96 projections = null; 97 97 } 98 98 … … 143 143 } 144 144 newState = State.BOUNDS; 145 } else if (qName.equals(" supported-projections")) {146 supported_srs = new ArrayList<String>();147 newState = State. SUPPORTED_PROJECTIONS;145 } else if (qName.equals("projections")) { 146 projections = new ArrayList<String>(); 147 newState = State.PROJECTIONS; 148 148 } 149 149 break; … … 163 163 } 164 164 break; 165 case SUPPORTED_PROJECTIONS:166 if (qName.equals(" srs")) {167 newState = State. SRS;165 case PROJECTIONS: 166 if (qName.equals("code")) { 167 newState = State.CODE; 168 168 } 169 169 break; … … 271 271 shape = null; 272 272 break; 273 case SRS:274 supported_srs.add(accumulator.toString());275 break; 276 case SUPPORTED_PROJECTIONS:277 entry.setServerProjections( supported_srs);278 supported_srs = null;273 case CODE: 274 projections.add(accumulator.toString()); 275 break; 276 case PROJECTIONS: 277 entry.setServerProjections(projections); 278 projections = null; 279 279 break; 280 280 }
Note:
See TracChangeset
for help on using the changeset viewer.