Changeset 8568 in josm for trunk/test/unit


Ignore:
Timestamp:
2015-07-04T22:52:23+02:00 (8 years ago)
Author:
wiktorn
Message:

Basic WMTS support.

  • added information about units and to_meter to EPSG projection definitions (needed for WMTS)
  • added WMTSTileSource and WMTSLayer classes
  • a bit of cleanup of AbstractTileSourceLayer and align so it will work properly with WMTS tile definitions
  • added Imagery Preferences panel for WMTS and icon for button
  • added removal of wms: / tms: / wmts: prefix, if user will paste them into the field
  • CachedFile - added possibility to send custom headers with request
  • added support for unit and to_meter in CustomProjection
  • AbstractTMSTileSource cleanups (change of Coordinate to ICoordinate)
  • moved JCSCachedTileLoaderJob.read() to Utils

Addresses: #10623

Tested with Polish WMTS service proivders, Walonnie needs still some debugging, as it is not working right now.

Location:
trunk/test/unit/org/openstreetmap/josm/data/imagery
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java

    r8542 r8568  
    77import org.junit.BeforeClass;
    88import org.junit.Test;
    9 import org.openstreetmap.gui.jmapviewer.Tile;
    109import org.openstreetmap.gui.jmapviewer.TileXY;
    1110import org.openstreetmap.gui.jmapviewer.tilesources.TemplatedTMSTileSource;
     
    4847            }
    4948        }
     49        verifyTileSquarness(source, 150, 20, 18);
    5050        verifyTileSquarness(source, 2270, 1323, 12);
    5151        verifyLocation(source, new LatLon(53.5937132, 19.5652017));
     
    109109
    110110    private LatLon getTileLatLon(TemplatedWMSTileSource source, int x, int y, int z) {
    111         return new LatLon(source.tileXYToLatLon(new Tile(source, x, y, z)));
     111        return new LatLon(source.tileXYToLatLon(x, y, z));
    112112    }
    113113
Note: See TracChangeset for help on using the changeset viewer.