com.supermap.services.components.impl
Class AbstractVectorAndUTFGridTilebuilder
- java.lang.Object
-
- com.supermap.services.components.impl.AbstractVectorAndUTFGridTilebuilder
-
- All Implemented Interfaces:
- MapTileBuilder, TileBuilder, java.lang.Runnable
- Direct Known Subclasses:
- UTFGridTileBuilder, VectorTileBuilder
public abstract class AbstractVectorAndUTFGridTilebuilder extends java.lang.Object implements MapTileBuilder, java.lang.Runnable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.supermap.services.components.TileBuilder
TileBuilder.BuildTileProcessListener
-
-
Field Summary
Fields Modifier and Type Field and Description protected TileTaskcurrentTaskprotected intimageSizeprotected KeyValueStorekvStoreprotected TileBuilder.BuildTileProcessListenerlistenersprotected static LocLoggerLOCLOGGER_CNprotected Mapmapprotected java.lang.StringmapNameprotected Point2DoriginalPointprotected TileStorestoreprotected TaskExecutingStatetaskExecutingState
-
Constructor Summary
Constructors Modifier Constructor and Description protectedAbstractVectorAndUTFGridTilebuilder(CheckedJobBuildConfig jobConfig)
-
Method Summary
Methods Modifier and Type Method and Description voidaddListener(TileBuilder.BuildTileProcessListener listener)Sets the tiling task execution status listenerprotected abstract voidbuildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal)voiddispose()Logs off the current tile generatorKeyValueStoregetKvStore()Gets the key-value storage.java.lang.RunnablegetRunnable()Returns theRunnableinstance of the tile generator for commiting to the execution in the thread pool.voidinit()Initialize the tile generatorvoidrun()voidsetFormat(OutputFormat pFormat)Sets the tile formatvoidsetKvStore(KeyValueStore kvStore)Sets the key value to the memory, the user saves the white chart informationvoidsetMap(Map pMap)Sets the map business component for tilingvoidsetMapName(java.lang.String pMapName)Set the map namevoidsetOriginalPoint(Point2D pOriginalPoint)Sets the origin point of the map tilevoidsetTask(TileTask task, TaskExecutingState executingState)Sets the tiling task information and task execution status.voidsetTileSize(int pImageSize)Sets the tile sizevoidsetTileStore(TileStore pTileStore)Sets the tiling memoryvoidsetTileVersion(java.lang.String tileVersion)Sets the tile versionvoidsetTransparent(boolean pTransparent)Whether the settings are transparentprotected voidupdateSpeed(long tileTotal)
-
-
-
Field Detail
-
map
protected Map map
-
currentTask
protected TileTask currentTask
-
taskExecutingState
protected TaskExecutingState taskExecutingState
-
store
protected TileStore store
-
mapName
protected java.lang.String mapName
-
originalPoint
protected Point2D originalPoint
-
listeners
protected TileBuilder.BuildTileProcessListener listeners
-
imageSize
protected int imageSize
-
kvStore
protected KeyValueStore kvStore
-
LOCLOGGER_CN
protected static final LocLogger LOCLOGGER_CN
-
-
Constructor Detail
-
AbstractVectorAndUTFGridTilebuilder
protected AbstractVectorAndUTFGridTilebuilder(CheckedJobBuildConfig jobConfig)
-
-
Method Detail
-
getKvStore
public KeyValueStore getKvStore()
Gets the key-value storage.
- Returns:
-
setMap
public void setMap(Map pMap)
Description copied from interface:MapTileBuilderSets the map business component for tiling
- Specified by:
setMapin interfaceMapTileBuilder
-
setTask
public void setTask(TileTask task, TaskExecutingState executingState)
Description copied from interface:TileBuilderSets the tiling task information and task execution status.
- Specified by:
setTaskin interfaceTileBuilder
-
setTileStore
public void setTileStore(TileStore pTileStore)
Description copied from interface:TileBuilderSets the tiling memory
- Specified by:
setTileStorein interfaceTileBuilder
-
setMapName
public void setMapName(java.lang.String pMapName)
Description copied from interface:MapTileBuilderSet the map name
- Specified by:
setMapNamein interfaceMapTileBuilder
-
setOriginalPoint
public void setOriginalPoint(Point2D pOriginalPoint)
Description copied from interface:TileBuilderSets the origin point of the map tile
- Specified by:
setOriginalPointin interfaceTileBuilder
-
addListener
public void addListener(TileBuilder.BuildTileProcessListener listener)
Description copied from interface:TileBuilderSets the tiling task execution status listener
- Specified by:
addListenerin interfaceTileBuilder
-
setFormat
public void setFormat(OutputFormat pFormat)
Description copied from interface:TileBuilderSets the tile format
- Specified by:
setFormatin interfaceTileBuilder
-
setTileSize
public void setTileSize(int pImageSize)
Description copied from interface:TileBuilderSets the tile size
- Specified by:
setTileSizein interfaceTileBuilder
-
setTransparent
public void setTransparent(boolean pTransparent)
Description copied from interface:MapTileBuilderWhether the settings are transparent
- Specified by:
setTransparentin interfaceMapTileBuilder
-
setTileVersion
public void setTileVersion(java.lang.String tileVersion)
Description copied from interface:TileBuilderSets the tile version
- Specified by:
setTileVersionin interfaceTileBuilder
-
setKvStore
public void setKvStore(KeyValueStore kvStore)
Description copied from interface:TileBuilderSets the key value to the memory, the user saves the white chart information
- Specified by:
setKvStorein interfaceTileBuilder
-
init
public void init()
Description copied from interface:TileBuilderInitialize the tile generator
- Specified by:
initin interfaceTileBuilder
-
dispose
public void dispose()
Description copied from interface:TileBuilderLogs off the current tile generator
- Specified by:
disposein interfaceTileBuilder
-
getRunnable
public java.lang.Runnable getRunnable()
Description copied from interface:TileBuilderReturns the
Runnableinstance of the tile generator for commiting to the execution in the thread pool.- Specified by:
getRunnablein interfaceTileBuilder- Returns:
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
buildOneTileMatrix
protected abstract void buildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal) throws StoreTileFailedException, MapException, java.io.UnsupportedEncodingException
- Throws:
StoreTileFailedExceptionMapExceptionjava.io.UnsupportedEncodingException
-
updateSpeed
protected void updateSpeed(long tileTotal)
-
-