public class ZXYTilesMapProvider extends LocalTileProviderBase
Docking OSM and other Internet tile exchange package service provider.
Request:
1, tiles or tiles directory of the organizational structure: /{mapName/layerName}/{level}/{x}/{y}.png
2, the coordinates of the tile is Web Mercator
3, the origin of the tile is (-20037508.3427892, 20037508.3427892)
4, the tile size of the tile: 256*256
5, all tiles Geographic range:(-20037508.3427892,-20037508.3427892,20037508.3427892, 20037508.3427892)
TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
localTileResource
CACHE_DIR, LINK_MARK, lock, logger, message, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
Constructor and Description |
---|
ZXYTilesMapProvider() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheEnabled() |
protected void |
checkSetting(MapProviderSetting setting)
Checks the configuration of map service provider.
|
protected Point2D |
getOrigin(java.lang.String mapName)
Returns the origin of the specified map corresponding to the tile
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
Return the supported image formats.
|
double[] |
getSupportResolutions(java.lang.String mapName)
Returns the resolution of the current service support. |
double[] |
getSupportScales() |
protected byte[] |
getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
Gets the tile matrix of the tile
|
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
Initializing the default map status, a mapping object will be returned, of which the key is map name, valude is map parameter object.
|
protected boolean |
initLODInfos()
Initializes tile meta information.
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
Initializes the supported map list.
|
boolean |
support(java.lang.String mapName, MapCapability capability)
Determines whether the map supports the specified function.
|
generateBigImage
clearCache, dispose, fillWatermark, findNearest, getDefaultMapParameter, getDefaultMapParameters, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getTileDataConverter, getVectorStyle, init, isResolutionEquals, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, updateMap, viewEntire
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
Gets the tile matrix of the tile
getTileImage
in class LocalTileProviderBase
tileParam
-protected java.util.List<java.lang.String> initSupportedMapNames()
TiledMapProviderBase
initSupportedMapNames
in class TiledMapProviderBase
protected boolean initLODInfos()
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
TiledMapProviderBase
Initializing the default map status, a mapping object will be returned, of which the key is map name, valude is map parameter object.
initDefaultMapParameter
in class TiledMapProviderBase
public double[] getSupportScales()
public double[] getSupportResolutions(java.lang.String mapName)
TiledMapProviderBase
Returns the resolution of the current service support. If all resolutions are supported, empty is returned.
getSupportResolutions
in class TiledMapProviderBase
mapName
- The map name.public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
TiledMapProviderBase
Return the supported image formats.
getSupportImageFormat
in class TiledMapProviderBase
mapName
- The map name.protected Point2D getOrigin(java.lang.String mapName)
Returns the origin of the specified map corresponding to the tile
getOrigin
in class TiledMapProviderBase
mapName
-protected boolean cacheEnabled()
cacheEnabled
in class TiledMapProviderBase
public boolean support(java.lang.String mapName, MapCapability capability)
MapProvider
support
in interface MapProvider
support
in class TiledMapProviderBase
mapName
- The map name.capability
- Function type.protected void checkSetting(MapProviderSetting setting)
TiledMapProviderBase
checkSetting
in class TiledMapProviderBase