- Timestamp:
- 2023-12-14T01:09:48+01:00 (12 months ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/imagery
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/AbstractWMSTileSource.java
r18871 r18911 9 9 10 10 import org.openstreetmap.gui.jmapviewer.Projected; 11 import org.openstreetmap.gui.jmapviewer.Tile;12 11 import org.openstreetmap.gui.jmapviewer.TileXY; 13 12 import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate; … … 105 104 106 105 @Override 107 public ICoordinate tileXYToLatLon(Tile tile) {108 return tileXYToLatLon(tile.getXtile(), tile.getYtile(), tile.getZoom());109 }110 111 @Override112 public ICoordinate tileXYToLatLon(TileXY xy, int zoom) {113 return tileXYToLatLon(xy.getXIndex(), xy.getYIndex(), zoom);114 }115 116 @Override117 106 public ICoordinate tileXYToLatLon(int x, int y, int zoom) { 118 107 return CoordinateConversion.llToCoor(tileProjection.eastNorth2latlon(getTileEastNorth(x, y, zoom))); … … 131 120 EastNorth enPoint = tileProjection.latlon2eastNorth(new LatLon(lat, lon)); 132 121 return eastNorthToTileXY(enPoint, zoom); 133 }134 135 @Override136 public TileXY latLonToTileXY(ICoordinate point, int zoom) {137 return latLonToTileXY(point.getLat(), point.getLon(), zoom);138 122 } 139 123 … … 166 150 (int) Math.round((anchorPosition.north() - point.north()) / scale) 167 151 ); 168 }169 170 @Override171 public Point latLonToXY(ICoordinate point, int zoom) {172 return latLonToXY(point.getLat(), point.getLon(), zoom);173 }174 175 @Override176 public ICoordinate xyToLatLon(Point point, int zoom) {177 return xyToLatLon(point.x, point.y, zoom);178 152 } 179 153 -
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r18871 r18911 931 931 932 932 @Override 933 public ICoordinate tileXYToLatLon(Tile tile) {934 return tileXYToLatLon(tile.getXtile(), tile.getYtile(), tile.getZoom());935 }936 937 @Override938 public ICoordinate tileXYToLatLon(TileXY xy, int zoom) {939 return tileXYToLatLon(xy.getXIndex(), xy.getYIndex(), zoom);940 }941 942 @Override943 933 public ICoordinate tileXYToLatLon(int x, int y, int zoom) { 944 934 TileMatrix matrix = getTileMatrix(zoom); … … 967 957 968 958 @Override 969 public TileXY latLonToTileXY(ICoordinate point, int zoom) {970 return latLonToTileXY(point.getLat(), point.getLon(), zoom);971 }972 973 @Override974 959 public int getTileXMax(int zoom) { 975 960 return getTileXMax(zoom, tileProjection); … … 993 978 (int) Math.round((matrix.topLeftCorner.north() - point.north()) / scale) 994 979 ); 995 }996 997 @Override998 public Point latLonToXY(ICoordinate point, int zoom) {999 return latLonToXY(point.getLat(), point.getLon(), zoom);1000 }1001 1002 @Override1003 public Coordinate xyToLatLon(Point point, int zoom) {1004 return xyToLatLon(point.x, point.y, zoom);1005 980 } 1006 981
Note:
See TracChangeset
for help on using the changeset viewer.