Ignore:
Timestamp:
2015-06-24T20:57:43+02:00 (9 years ago)
Author:
wiktorn
Message:

Introduce WMS layer based on TMS. (closes: #11255)

HEADS UP: After this patch you need to manually remove JAX-B generated file/class: org/w3/_2001/xmlschema/Adapter1.java to compile the tree again.

  • create AbstractTileSourceLayer based on TMSLayer as a base for TMS, WMS and (future) WMTS layers, (addresses #11459)
  • WMS layer now uses JCS Caching (closes: #7363)
  • introduce new conversion methods in TileSource, that convert both X and Y (lat and lon) in one call. This is necessary for other than PseudoMercator projections
    • introduce TileXY class that represents X and Y indexes of tile in tile matrix/space
    • mark old conversion methods as deprecated
    • refactor JMapViewer and JOSM to new methods
    • change use of Coordinate class to ICoordinate where appropiate
  • extract CachedAttributionBingAerialTileSource to separate file
  • create TemplatedWMSTileSource that provides the WMS Layer with square (according to current projection) tiles (closes: #11572, closes: #7682, addresses: #5454)
  • implemented precaching imagery along GPX track for AbstractTileSourceLayer, so now it work for both - WMS and TMS (closes: #9154)
  • implemented common righ-click menu on map view, as well on layer list (closes #3591)
  • create separate build commands for JMapViewer classes to easily spot, when josm classes are used within JMapViewer
  • remove unnecessary classes of previous WMS implementation - GeorefImage, wms-cache.xsd (and JAXB task from build), WMSCache, WMSRequest, WMSGrabber, HTMLGrabber, WMSException
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r8510 r8526  
    1717import java.util.Locale;
    1818
     19import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate;
    1920import org.openstreetmap.josm.Main;
    2021import org.openstreetmap.josm.data.Bounds;
     
    188189    }
    189190
     191    public LatLon(ICoordinate coor) {
     192        this(coor.getLat(), coor.getLon());
     193    }
     194
     195
    190196    /**
    191197     * Returns the latitude, i.e., the north-south position in degrees.
     
    434440        return true;
    435441    }
     442
     443    public ICoordinate toCoordinate() {
     444        return new org.openstreetmap.gui.jmapviewer.Coordinate(lat(), lon());
     445    }
    436446}
Note: See TracChangeset for help on using the changeset viewer.