Ignore:
Timestamp:
2018-02-07T00:16:59+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15880 - robustness to unsupported projections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r13387 r13388  
    147147            identifier = builder.identifier;
    148148        }
     149
     150        @Override
     151        public String toString() {
     152            return "TileMatrixSet [crs=" + crs + ", identifier=" + identifier + ']';
     153        }
    149154    }
    150155
     
    188193        public String getUserTitle() {
    189194            return title != null ? title : identifier;
     195        }
     196
     197        @Override
     198        public String toString() {
     199            return "Layer [identifier=" + identifier + ", title=" + title + ", tileMatrixSet="
     200                    + tileMatrixSet + ", baseUrl=" + baseUrl + ", style=" + style + ']';
    190201        }
    191202    }
     
    683694                }
    684695                if (this.currentLayer == null)
    685                     return;
     696                    throw new IllegalArgumentException(
     697                            layers.stream().map(l -> l.tileMatrixSet).collect(Collectors.toList()).toString());
    686698            } // else: keep currentLayer and tileProjection as is
    687699        }
Note: See TracChangeset for help on using the changeset viewer.