public class OpenStreetMapProvider extends RemoteTileProviderBase
OpenStreetMap 地图服务提供者。
OpenStreetMapMapProvider 提供了从 OpenStreetMap 在线服务中获取地图服务的能力,并封装了与 SuperMap iServer 地图相关的 GIS 功能。
RemoteTileProviderBase.GetDefaultImageWhenException
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
logger, message, SEND_REQUEST_COUNT
CACHE_DIR, defaultMapParameters, dpi, LINK_MARK, lock, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
构造器和说明 |
---|
OpenStreetMapProvider()
默认构造函数
|
OpenStreetMapProvider(OpenStreetMapProviderSetting setting)
带参构造函数
|
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
appendApikeyToUrl(java.lang.String apikey, java.lang.String url)
将apikey追加到url后面,apikey为空时直接返回url
|
protected boolean |
cacheEnabled() |
protected int |
getLevel(double resolution)
根据分辨率得到级别
|
protected Point2D |
getOrigin(java.lang.String mapName)
获取地图的左上角地理坐标。
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
获取支持的图片格式数组。
|
double[] |
getSupportResolutions(java.lang.String mapName)
返回当前服务支持的分辨率 。
|
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
|
protected boolean |
initLODInfos()
初始化瓦片信息。
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
初始化支持的地图列表。
|
protected boolean |
isResolutionEquals(double resolution1, double resolution2)
判断两个分辨率是否在容差范围之内(1.0E-6)
|
protected boolean |
tileCacheReadOnly() |
checkLicense, dispose, generateBigImage, getContent, getContent, getContent, getFinalConnectionURL, getImageBySendURL, getImageBySendURL, getTileImage, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
checkSetting, clearAllCache, clearCache, fillWatermark, findNearest, getAccurateResolution, getBottom, getBottom, getBufferedImage, getDefaultMapParameter, getDefaultMapParameters, getLeft, getLeftIndex, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getRight, getTileDataConverter, getTileIndex, getTop, getTop, getTopIndex, getTopOrBottomTileIndex, getVectorStyle, getVectorStyle, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, point2DConvert, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsByLayerName, getTileImage
public OpenStreetMapProvider(OpenStreetMapProviderSetting setting)
带参构造函数
setting
- 地图服务提供者配置public OpenStreetMapProvider()
默认构造函数
protected java.util.List<java.lang.String> initSupportedMapNames()
initSupportedMapNames
在类中 TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
initDefaultMapParameter
在类中 TiledMapProviderBase
protected Point2D getOrigin(java.lang.String mapName)
获取地图的左上角地理坐标。
getOrigin
在类中 TiledMapProviderBase
mapName
- 地图名public double[] getSupportResolutions(java.lang.String mapName)
返回当前服务支持的分辨率 。如果支持所有分辨率,则返回空。
getSupportResolutions
在类中 TiledMapProviderBase
mapName
- 地图名protected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
判断两个分辨率是否在容差范围之内(1.0E-6)
isResolutionEquals
在类中 TiledMapProviderBase
resolution1
- 分辨率1resolution2
- 分辨率2protected int getLevel(double resolution)
根据分辨率得到级别
resolution
- 分辨率protected boolean initLODInfos()
初始化瓦片信息。
return 初始化是否成功public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
获取支持的图片格式数组。
getSupportImageFormat
在类中 TiledMapProviderBase
mapName
- 地图名protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
在类中 RemoteTileProviderBase
protected boolean cacheEnabled()
cacheEnabled
在类中 TiledMapProviderBase
protected boolean tileCacheReadOnly()
protected java.lang.String appendApikeyToUrl(java.lang.String apikey, java.lang.String url)
apikey
- apikeyurl
- url