Changeset 9864 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-02-23T21:42:07+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSource.java
r9617 r9864 48 48 private static final Pattern PATTERN_HEADER = Pattern.compile("\\{header\\(([^,]+),([^}]+)\\)\\}"); 49 49 private static final Pattern PATTERN_PROJ = Pattern.compile("\\{proj\\}"); 50 private static final Pattern PATTERN_WKID = Pattern.compile("\\{wkid\\}"); 50 51 private static final Pattern PATTERN_BBOX = Pattern.compile("\\{bbox\\}"); 51 52 private static final Pattern PATTERN_W = Pattern.compile("\\{w\\}"); … … 60 61 61 62 private static final Pattern[] ALL_PATTERNS = { 62 PATTERN_HEADER, PATTERN_PROJ, PATTERN_ BBOX, PATTERN_W, PATTERN_S, PATTERN_E, PATTERN_N, PATTERN_WIDTH, PATTERN_HEIGHT63 PATTERN_HEADER, PATTERN_PROJ, PATTERN_WKID, PATTERN_BBOX, PATTERN_W, PATTERN_S, PATTERN_E, PATTERN_N, PATTERN_WIDTH, PATTERN_HEIGHT 63 64 }; 64 65 … … 200 201 replacement = myProjCode; 201 202 break; 203 case "wkid": 204 replacement = myProjCode.startsWith("EPSG:") ? myProjCode.substring(5) : myProjCode; 205 break; 202 206 case "bbox": 203 207 replacement = bbox;
Note:
See TracChangeset
for help on using the changeset viewer.