Changeset 14507 in josm for trunk/src/org


Ignore:
Timestamp:
2018-12-04T01:45:45+01:00 (5 years ago)
Author:
Don-vip
Message:

see #16073 - test tile source

File:
1 edited

Legend:

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

    r14273 r14507  
    335335        if (this.layers.isEmpty())
    336336            throw new IllegalArgumentException(tr("No layers defined by getCapabilities document: {0}", info.getUrl()));
     337    }
     338
     339    /**
     340     * Creates a tile source based on imagery info and initializes it with given projection.
     341     * @param info imagery info
     342     * @param projection projection to be used by this TileSource
     343     * @throws IOException if any I/O error occurs
     344     * @throws WMTSGetCapabilitiesException when document didn't contain any layers
     345     * @throws IllegalArgumentException if any other error happens for the given imagery info
     346     * @since 14507
     347     */
     348    public WMTSTileSource(ImageryInfo info, Projection projection) throws IOException, WMTSGetCapabilitiesException {
     349        this(info);
     350        initProjection(projection);
    337351    }
    338352
Note: See TracChangeset for help on using the changeset viewer.