public class MBTilesMapProvider extends MBTilesTileProviderBase implements TiledVectorProvider
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
bounds, conn, epsgCode, isPBF, isStandard, loadedMetadata, mapNames, mbTilesDir, message, positiveDirection, resolutions, scales, tileOrigin, tileSource
localTileResource
CACHE_DIR, defaultMapParameters, dpi, LINK_MARK, lock, logger, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
构造器和说明 |
---|
MBTilesMapProvider() |
MBTilesMapProvider(MBTilesMapProviderSetting setting) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMVTSpriteJson(MapParameter mapParameter, java.lang.String spriteName)
获取Sprite json
|
byte[] |
getMVTSpriteResource(MapParameter mapParameter, java.lang.String spriteName)
获取Sprite资源
|
byte[] |
getMVTTile(VectorTileParameter vectorTileParameter)
获取mvt瓦片
|
Rectangle2D |
getProjectionExtent(java.lang.String mapName)
获取当前投影下的范围
|
byte[] |
getSDFFonts(java.lang.String fontstack, java.lang.String range)
获取sdf格式的数据
|
byte[] |
getSymbolData(java.lang.String symbolId, OutputFormat format)
获取符号图片
|
protected byte[] |
getTileImage(TiledMapProviderBase.TileImageParameter tileImageParameter) |
VectorStyle |
getVectorStyle(VectorStyleParameter vectorStyleParameter)
获取指定地图中,指定矢量图层的样式
|
VectorTileData |
getVectorTile(VectorTileParameter vectorTileParameter)
获取矢量地图切片。
|
java.lang.String[] |
listMVTSprites(MapParameter mapParameter)
列出所有的Sprites名字
|
protected void |
loadMetaData()
加载元数据信息。
|
QueryResult |
queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
根据关键字查询地图上的要素。
|
boolean |
support(java.lang.String mapName, MapCapability capability)
判断地图是否支持相应功能。
|
void |
updateVectorStyle(java.lang.String layerName, VectorStyleType type, java.lang.String style)
根据图层名和矢量样式类型更新矢量瓦片样式
|
cacheEnabled, dispose, getBounds, getConn, getMetadata, getOrigin, getSupportImageFormat, getSupportResolutions, getSupportScales, initDefaultMapParameter, initSupportedMapNames, isResolutionEquals, refresh
checkLicense, generateBigImage, tileCacheReadOnly
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, init, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, point2DConvert, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, updateMap, viewEntire
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsByLayerName, getTileImage
public MBTilesMapProvider()
public MBTilesMapProvider(MBTilesMapProviderSetting setting)
public boolean support(java.lang.String mapName, MapCapability capability)
MapProvider
support
在接口中 MapProvider
support
在类中 TiledMapProviderBase
mapName
- 地图名。capability
- 功能类型。protected void loadMetaData()
MBTilesTileProviderBase
加载元数据信息。
loadMetaData
在类中 MBTilesTileProviderBase
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileImageParameter)
getTileImage
在类中 LocalTileProviderBase
public byte[] getMVTTile(VectorTileParameter vectorTileParameter)
MVTSupportedProvider
getMVTTile
在接口中 MVTSupportedProvider
vectorTileParameter
- 矢量地图切片参数。public VectorStyle getVectorStyle(VectorStyleParameter vectorStyleParameter)
MapProvider
getVectorStyle
在接口中 MapProvider
getVectorStyle
在类中 TiledMapProviderBase
vectorStyleParameter
- 矢量风格参数。public java.lang.String[] listMVTSprites(MapParameter mapParameter)
SpritesSupportedProvider
列出所有的Sprites名字
listMVTSprites
在接口中 SpritesSupportedProvider
public java.lang.String getMVTSpriteJson(MapParameter mapParameter, java.lang.String spriteName)
SpritesSupportedProvider
获取Sprite json
getMVTSpriteJson
在接口中 SpritesSupportedProvider
public byte[] getMVTSpriteResource(MapParameter mapParameter, java.lang.String spriteName)
SpritesSupportedProvider
获取Sprite资源
getMVTSpriteResource
在接口中 SpritesSupportedProvider
public Rectangle2D getProjectionExtent(java.lang.String mapName)
ProjectionExtent
获取当前投影下的范围
getProjectionExtent
在接口中 ProjectionExtent
public QueryResult queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
KeywordsQueryable
queryByKeywords
在接口中 KeywordsQueryable
mapName
- 地图名。public byte[] getSDFFonts(java.lang.String fontstack, java.lang.String range)
SDFFontsSupportedProvider
getSDFFonts
在接口中 SDFFontsSupportedProvider
fontstack
- 字体名称range
- 字体的public VectorTileData getVectorTile(VectorTileParameter vectorTileParameter)
TiledVectorProvider
获取矢量地图切片。
getVectorTile
在接口中 TiledVectorProvider
vectorTileParameter
- 矢量地图切片参数。public void updateVectorStyle(java.lang.String layerName, VectorStyleType type, java.lang.String style)
TiledVectorProvider
updateVectorStyle
在接口中 TiledVectorProvider
layerName
- 图层名type
- 矢量样式类型style
- 要更新的矢量瓦片样式public byte[] getSymbolData(java.lang.String symbolId, OutputFormat format)
TiledVectorProvider
getSymbolData
在接口中 TiledVectorProvider
symbolId
- 符号idformat
- 符号格式