com.supermap.data.processing
类 CacheBuilderOSGBTool

java.lang.Object
  继承者 com.supermap.data.processing.CacheBuilderOSGBTool

已过时。 该类已经过时,使用 ObliquePhotogrammetry3DModelTool 替代, 倾斜摄影模型数据处理工具类。该类提供了压缩纹理、单体化处理、格式转换、文件合并的一系列倾斜摄影模型处理的方法,可满足在不同终端使用倾斜摄影模型。

public class CacheBuilderOSGBTool
extends java.lang.Object


构造方法摘要
CacheBuilderOSGBTool()
          已过时。  
 
方法摘要
static void addSteppedListener(SteppedListener l)
          已过时。 添加一个用于接收进度条事件(SteppedEvent)的监听器。
static boolean combineFile(java.lang.String inScpFileName, java.lang.String outScpFileName, int combineLevel, TextureCompressType type, int processThreadsCount)
          已过时。 倾斜摄影模型文件合并处理。
static boolean compressTextures(java.lang.String scpFileName, java.lang.String outputFolder, TextureCompressType type)
          已过时。 压缩纹理处理。
static boolean compressTextures(java.lang.String strRootNode, java.lang.String outputFolder, TextureCompressType type, double centerX, double centerY, PrjCoordSys prj, java.lang.String dbPath, java.lang.String dsName, java.lang.String strFieldName)
          已过时。 倾斜摄影模型纹理压缩和单体化处理,只针对一个Tile
static boolean discret(java.lang.String scpFileName, java.lang.String outputFolder, DatasetVector pDatasetVector, java.lang.String strFieldName)
          已过时。 倾斜摄影模型单体化处理。
static boolean ENUTOProjection(java.lang.String srcFilePath, java.lang.String outputFilePath, PrjCoordSys desPrj, CoordSysTransParameter transParam, CoordSysTransMethod transMethod)
          已过时。 ENU转换为投影坐标系
static boolean generateProxyOSGBFiles(java.lang.String inScpFileName, java.lang.String outScpFileName, int level)
          已过时。 倾斜摄影模型生成代理节点。
static boolean i3sTos3m(java.lang.String scpFileName, java.lang.String outputFolder)
          已过时。 将I3S格式的倾斜摄影模型数据转换为S3M格式。
static boolean modifyCenter(java.lang.String scpFileName, java.lang.String outputFolder, Point3D pointNewCenter)
          已过时。 修改倾斜摄影模型文件的中心点。
static boolean objQuarterTos3mb(java.lang.String jsonFileName, java.lang.String outputFolder)
          已过时。 将由 Altizure四分Lod导出的OBJ格式的倾斜摄影模型数据转换为转S3MB格式。
static boolean objToosgb(java.lang.String xmlFileName, java.lang.String outputFolder)
          已过时。 将由PhotoScan导出的OBJ格式的倾斜摄影模型数据转换为OSGB格式。
static boolean objToosgb(java.lang.String xmlFileName, java.lang.String outputFolder, Point3D pointSrc, Point3D pointDest, ObjRotateOption option)
          已过时。 将由PhotoScan导出的OBJ格式的倾斜摄影模型数据转换为OSGB格式,此转换支持模型旋转。
static boolean osgb2s3m(java.lang.String scpFileName, java.lang.String outputFolder, TextureCompressType type)
          已过时。 将OSGB格式的倾斜摄影模型数据转换为S3M格式,适用于WebGL客户端使用倾斜摄影模型,此转换方式支持选择纹理压缩方式。
static boolean osgbCreateHistoryFiles(java.util.ArrayList<java.lang.String> scpFileNames, java.util.ArrayList<java.util.Calendar> dataTimes, java.lang.String scpCurrentFileName, java.lang.String outputFolder)
          已过时。 倾斜摄影模型数据生成历史记录。
static boolean osgbTo3dTiles(java.lang.String scpFileName, java.lang.String outputFolder)
          已过时。 将OSGB格式的倾斜摄影模型数据转换为3DTiles格式。
static boolean osgbToCompactFile(java.lang.String scpFileName, java.lang.String outputFolder)
          已过时。 将倾斜摄影模型数据写入大文件。
static boolean osgbTodae(java.lang.String scpFileName, java.lang.String outputFolder)
          已过时。 将OSGB格式的倾斜摄影模型数据转换为DAE格式。
static void removeSteppedListener(SteppedListener l)
          已过时。 移除一个用于接收进度条事件(SteppedEvent)的监听器。
static boolean s3MToCompactFile(java.lang.String scpFile, java.lang.String outputFolder, StorageType storageType)
          已过时。 生成单个大文件和混合大文件
static int splitScpFile(java.lang.String scpFileName, int count)
          已过时。 拆分倾斜摄影配置文件(*.scp)。
static boolean textureRemapping(java.lang.String[] rootNodeFileNames, java.lang.String outputFolder, int threadCount, TextureCompressType compressType, CacheFileType cacheFileType)
          已过时。 倾斜摄影模型支持纹理重映射。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CacheBuilderOSGBTool

public CacheBuilderOSGBTool()
已过时。 
方法详细信息

discret

public static boolean discret(java.lang.String scpFileName,
                              java.lang.String outputFolder,
                              DatasetVector pDatasetVector,
                              java.lang.String strFieldName)
已过时。 
倾斜摄影模型单体化处理。

参数:
scpFileName - 指定倾斜摄影配置文件(*.scp)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
pDatasetVector - 指定用于单体化处理的矢量数据集。
strFieldName - 指定关联字段名称。关联字段为INT类型且可标识对象的字段,推荐使用系统字段SmID。
返回:
单体化处理是否成功,true表示成功,

osgb2s3m

public static boolean osgb2s3m(java.lang.String scpFileName,
                               java.lang.String outputFolder,
                               TextureCompressType type)
已过时。 
将OSGB格式的倾斜摄影模型数据转换为S3M格式,适用于WebGL客户端使用倾斜摄影模型,此转换方式支持选择纹理压缩方式。

参数:
scpFileName - 指定倾斜摄影配置文件(*.scp)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
type - 指定纹理压缩生成数据格式。
返回:
格式转换是否成功,true表示成功,false表示失败。

compressTextures

public static boolean compressTextures(java.lang.String scpFileName,
                                       java.lang.String outputFolder,
                                       TextureCompressType type)
已过时。 
压缩纹理处理。经压缩纹理处理,可满足不同终端使用倾斜摄影模型并获得流畅浏览体验的需求。

参数:
scpFileName - 指定倾斜摄影配置文件(*.scp)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
type - 指定纹理压缩生成数据格式。
返回:
纹理压缩是否成功,true表示成功,false表示失败。

compressTextures

public static boolean compressTextures(java.lang.String strRootNode,
                                       java.lang.String outputFolder,
                                       TextureCompressType type,
                                       double centerX,
                                       double centerY,
                                       PrjCoordSys prj,
                                       java.lang.String dbPath,
                                       java.lang.String dsName,
                                       java.lang.String strFieldName)
已过时。 
倾斜摄影模型纹理压缩和单体化处理,只针对一个Tile

参数:
strRootNode - osgb文件根节点(*.osgb)绝对路径
outputFolder - 用于存储结果数据的目标路径
type - 纹理压缩类型
centerX - 倾斜数据插入点X
centerY - 倾斜数据插入点Y
prj - 倾斜数据集的投影
dbPath - 用于单体化的数据源路径
dsName - 单体化的数据集名称
strFieldName - 单体化关联字段名称,联字段为INT类型且可标识对象的字段,推荐使用系统字段SmID。
返回:
单体化处理是否成功,true表示成功

combineFile

public static boolean combineFile(java.lang.String inScpFileName,
                                  java.lang.String outScpFileName,
                                  int combineLevel,
                                  TextureCompressType type,
                                  int processThreadsCount)
已过时。 
倾斜摄影模型文件合并处理。该方式经过压缩处理,可输出适用于不同终端的数据格式,并可指定合并层级来减少根节点数量。

参数:
inScpFileName - 待合并的倾斜摄影配置文件(*.scp)路径名称。
outScpFileName - 指定合并后输出的倾斜摄影配置文件(*.scp)路径名称。
combineLevel - 指定合并层级。
type - 指定压缩处理生成的数据格式。
processThreadsCount - 指定的线程数。
返回:
合并处理是否成功,true表示成功,false表示失败。

i3sTos3m

public static boolean i3sTos3m(java.lang.String scpFileName,
                               java.lang.String outputFolder)
已过时。 
将I3S格式的倾斜摄影模型数据转换为S3M格式。

参数:
scpFileName - 指定倾斜摄影配置文件(*.scp)路径名。
outputFolder - 指定用于存储结果数据的目标路径。
返回:
格式转换是否成功,true表示成功,false表示失败。

osgbTo3dTiles

public static boolean osgbTo3dTiles(java.lang.String scpFileName,
                                    java.lang.String outputFolder)
已过时。 
将OSGB格式的倾斜摄影模型数据转换为3DTiles格式。

参数:
scpFileName - 指定倾斜摄影配置文件(*.scp)路径名。
outputFolder - 指定用于存储结果数据的目标路径。
返回:
格式转换是否成功,true表示成功,false表示失败。

osgbCreateHistoryFiles

public static boolean osgbCreateHistoryFiles(java.util.ArrayList<java.lang.String> scpFileNames,
                                             java.util.ArrayList<java.util.Calendar> dataTimes,
                                             java.lang.String scpCurrentFileName,
                                             java.lang.String outputFolder)
已过时。 
倾斜摄影模型数据生成历史记录。

参数:
scpFileNames - 待生成历史记录的倾斜摄影配置文件(*.scp)路径名称集合。
dataTimes - 指定的历史记录时间集合。
scpCurrentFileName - 输出的历史记录文件名称。
outputFolder - 输出的历史记录路径。
返回:
生成历史记录是否成功,true表示成功,false表示失败。

modifyCenter

public static boolean modifyCenter(java.lang.String scpFileName,
                                   java.lang.String outputFolder,
                                   Point3D pointNewCenter)
已过时。 
修改倾斜摄影模型文件的中心点。

参数:
scpFileName - 待修改中心点的倾斜摄影配置文件(*.scp)路径名称。
outputFolder - 指定用于存储修改中心点后数据的路径名称。
pointNewCenter - 指定新的中心点。
返回:
修改中心点是否成功,true表示成功,否则返回false。

generateProxyOSGBFiles

public static boolean generateProxyOSGBFiles(java.lang.String inScpFileName,
                                             java.lang.String outScpFileName,
                                             int level)
已过时。 
倾斜摄影模型生成代理节点。该方法生成了不包含模型数据的新的索引文件,用于提升模型加载效率。

参数:
inScpFileName - 指定的倾斜摄影配置文件(*.scp)路径名称。
outScpFileName - 输出的倾斜摄影配置文件(*.scp)路径名称。
level - 指定合并层级。
返回:
生成代理节点是否成功,true表示成功,否则返回false。

addSteppedListener

public static void addSteppedListener(SteppedListener l)
已过时。 
添加一个用于接收进度条事件(SteppedEvent)的监听器。

参数:
l - 一个用于接收进度条事件的监听器。

removeSteppedListener

public static void removeSteppedListener(SteppedListener l)
已过时。 
移除一个用于接收进度条事件(SteppedEvent)的监听器。

参数:
l - 一个用于接收进度条事件的监听器。

objToosgb

public static boolean objToosgb(java.lang.String xmlFileName,
                                java.lang.String outputFolder)
已过时。 
将由PhotoScan导出的OBJ格式的倾斜摄影模型数据转换为OSGB格式。

参数:
xmlFileName - 指定xml文件(PhotoScan配置文件)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
返回:
格式转换是否成功,true表示成功,false表示失败。

objToosgb

public static boolean objToosgb(java.lang.String xmlFileName,
                                java.lang.String outputFolder,
                                Point3D pointSrc,
                                Point3D pointDest,
                                ObjRotateOption option)
已过时。 
将由PhotoScan导出的OBJ格式的倾斜摄影模型数据转换为OSGB格式,此转换支持模型旋转。

参数:
xmlFileName - 指定xml文件(PhotoScan配置文件)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
pointSrc - 指定的OBJ格式模型原有中心点。
pointDest - 指定转换后模型新的中心点。
option - 指定模型对象旋转方式。
返回:
格式转换是否成功,true表示成功,false表示失败。

osgbTodae

public static boolean osgbTodae(java.lang.String scpFileName,
                                java.lang.String outputFolder)
已过时。 
将OSGB格式的倾斜摄影模型数据转换为DAE格式。

参数:
scpFileName - 指定倾斜摄影配置文件(*.scp)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
返回:
格式转换是否成功,true表示成功,false表示失败。

objQuarterTos3mb

public static boolean objQuarterTos3mb(java.lang.String jsonFileName,
                                       java.lang.String outputFolder)
已过时。 
将由 Altizure四分Lod导出的OBJ格式的倾斜摄影模型数据转换为转S3MB格式。

参数:
jsonFileName - 指定json文件(Altizure配置文件)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
返回:
格式转换是否成功,true表示成功,false表示失败。

osgbToCompactFile

public static boolean osgbToCompactFile(java.lang.String scpFileName,
                                        java.lang.String outputFolder)
已过时。 
将倾斜摄影模型数据写入大文件。

参数:
scpFileName - 指定的倾斜摄影配置文件(*.scp)路径名称。
outputFolder - 指定用于存储结果数据的目标路径。
返回:
操作是否成功,true表示成功,false表示失败。

splitScpFile

public static int splitScpFile(java.lang.String scpFileName,
                               int count)
已过时。 
拆分倾斜摄影配置文件(*.scp)。

参数:
scpFileName - 待拆分的倾斜摄影配置文件(*.scp)路径名称。
count - 指定拆分的个数。
返回:
被拆分后的文件个数。

textureRemapping

public static boolean textureRemapping(java.lang.String[] rootNodeFileNames,
                                       java.lang.String outputFolder,
                                       int threadCount,
                                       TextureCompressType compressType,
                                       CacheFileType cacheFileType)
已过时。 
倾斜摄影模型支持纹理重映射。 该方法只支持对osgb格式的倾斜摄影模型数据进行纹理重映射处理,输出的文件格式也是osgb;纹理压缩格式也仅支持“TEXTURECOMPRESS_DXT”。

参数:
rootNodeFileNames - 进行纹理重映射的倾斜摄影模型节点文件夹集合。
outputFolder - 指定目标文件全路径。
threadCount - 线程数。
compressType - 纹理压缩格式,仅支持“TEXTURECOMPRESS_DXT”。
cacheFileType - 文件格式,仅支持输出osgb。
返回:
一个bool值,返回true,则表示倾斜摄影模型纹理重映射成功,在输出目录下生成重映射后的osgb格式的数据;返回false,则表示倾斜摄影模型重映射失败。

ENUTOProjection

public static boolean ENUTOProjection(java.lang.String srcFilePath,
                                      java.lang.String outputFilePath,
                                      PrjCoordSys desPrj,
                                      CoordSysTransParameter transParam,
                                      CoordSysTransMethod transMethod)
已过时。 
ENU转换为投影坐标系

参数:
srcFilePath - 源文件路径
outputFilePath - 目标文件路径
desPrj - 目标坐标系
transParam - 转换参数
transMethod - 转换方法
返回:

s3MToCompactFile

public static boolean s3MToCompactFile(java.lang.String scpFile,
                                       java.lang.String outputFolder,
                                       StorageType storageType)
已过时。 
生成单个大文件和混合大文件