public class DefaultJobInfoPREProcessor extends java.lang.Object implements JobInfoPREProcessor
Job信息预处理器实现类
构造器和说明 |
---|
DefaultJobInfoPREProcessor()
构造函数。
|
DefaultJobInfoPREProcessor(MapBuilder mapBuilder, RealspaceBuilder realspaceBuilder, TileStorePreProcessor tileStorePreProcessor, MapStatusHashcodePreProcessor hashcodeProProcessor)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
protected Rectangle2D |
calcuateTileBounds(double scaleDenominator, Unit unit, Point2D originalPoint, int tileSize)
取特定比例尺下,第0,0张图片的bounds
|
protected JobBuildConfig |
getCheckedJobInfo(JobInfo jobInfo) |
protected static long |
getCount(double originalLocation, double tileLength, double benginLocation, double endLocation, boolean isX) |
protected MapParameter |
getMapState(Map map, MapParameter tempParam) |
protected TileJobScaleInfo |
getTileJobScaleInfo(Map map, double scaleDenominator, int epsgCode, int tileSize, MapParameter defaultParam) |
protected TileJobScaleInfo |
getTileJobScaleInfo(Unit unit, double scaleDenominator, Point2D orginalPoint, int tileSize) |
JobBuildConfig |
process(JobInfoPREProcessorParameter parameter)
处理Job信息
|
protected void |
processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, MapCompConnInfo dataConnInfo)
根据地图组件初始化任务
|
protected void |
processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Map map, MapCompConnInfo dataConnInfo) |
protected void |
processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Realspace realspace) |
protected void |
processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, RealspaceCompConnInfo dataConnInfo)
根据三维组件初始化任务
|
void |
setMapBuilder(MapBuilder mapBuilder)
设置MapBuilder
|
void |
setMapStatusHashcodePreProcessor(MapStatusHashcodePreProcessor mapStatusHashcodePreProcessor)
设置MapStatusHashcodePreProcessor
|
void |
setRealspaceBuilder(RealspaceBuilder realspaceBuilder)
设置RealspaceBuilder
|
void |
setRestContext(RestContext restContext)
设置上下文信息。
|
protected void |
setScaleBuildConfigAndJobState(Map map, JobBuildConfig jobBuildConfig, MapParameter defaultParam) |
protected void |
setScaleBuildConfigAndJobState(Realspace realspace, JobBuildConfig jobBuildConfig, Unit layerPrjUnit) |
protected void |
setScalesOrResolutions(JobBuildConfig jobBuildConfig, Map map, MapParameter defaultMapParam)
根据比例尺补充分辨率信息,或根据分辨率补充比例尺信息。
|
protected void |
setScalesOrResolutions(JobBuildConfig jobBuildConfig, Unit unit) |
void |
setTileStorePreProcessor(TileStorePreProcessor tileStorePreProcessor)
设置TileStorePreProcessor
|
public DefaultJobInfoPREProcessor()
构造函数。
public DefaultJobInfoPREProcessor(MapBuilder mapBuilder, RealspaceBuilder realspaceBuilder, TileStorePreProcessor tileStorePreProcessor, MapStatusHashcodePreProcessor hashcodeProProcessor)
构造函数。
mapBuilder
-realspaceBuilder
-tileStorePreProcessor
-hashcodeProProcessor
-public void setRestContext(RestContext restContext)
JobInfoPREProcessor
设置上下文信息。
setRestContext
在接口中 JobInfoPREProcessor
public JobBuildConfig process(JobInfoPREProcessorParameter parameter)
JobInfoPREProcessor
处理Job信息
process
在接口中 JobInfoPREProcessor
protected void processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, RealspaceCompConnInfo dataConnInfo)
toProcess
-jobBuildConfig
-protected void processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Realspace realspace)
protected void processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, MapCompConnInfo dataConnInfo)
toProcess
-jobBuildConfig
-protected void processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Map map, MapCompConnInfo dataConnInfo)
protected void setScalesOrResolutions(JobBuildConfig jobBuildConfig, Map map, MapParameter defaultMapParam)
根据比例尺补充分辨率信息,或根据分辨率补充比例尺信息。
jobBuildConfig
-map
-defaultMapParam
-protected void setScalesOrResolutions(JobBuildConfig jobBuildConfig, Unit unit)
protected Rectangle2D calcuateTileBounds(double scaleDenominator, Unit unit, Point2D originalPoint, int tileSize)
sceneName
-layerName
-realspace
-scaleDenominator
-protected MapParameter getMapState(Map map, MapParameter tempParam)
protected JobBuildConfig getCheckedJobInfo(JobInfo jobInfo)
protected void setScaleBuildConfigAndJobState(Map map, JobBuildConfig jobBuildConfig, MapParameter defaultParam)
protected void setScaleBuildConfigAndJobState(Realspace realspace, JobBuildConfig jobBuildConfig, Unit layerPrjUnit)
protected TileJobScaleInfo getTileJobScaleInfo(Map map, double scaleDenominator, int epsgCode, int tileSize, MapParameter defaultParam)
protected TileJobScaleInfo getTileJobScaleInfo(Unit unit, double scaleDenominator, Point2D orginalPoint, int tileSize)
protected static long getCount(double originalLocation, double tileLength, double benginLocation, double endLocation, boolean isX)
public void setMapBuilder(MapBuilder mapBuilder)
JobInfoPREProcessor
设置MapBuilder
setMapBuilder
在接口中 JobInfoPREProcessor
public void setRealspaceBuilder(RealspaceBuilder realspaceBuilder)
JobInfoPREProcessor
设置RealspaceBuilder
setRealspaceBuilder
在接口中 JobInfoPREProcessor
public void setTileStorePreProcessor(TileStorePreProcessor tileStorePreProcessor)
JobInfoPREProcessor
设置TileStorePreProcessor
setTileStorePreProcessor
在接口中 JobInfoPREProcessor
public void setMapStatusHashcodePreProcessor(MapStatusHashcodePreProcessor mapStatusHashcodePreProcessor)
JobInfoPREProcessor
设置MapStatusHashcodePreProcessor