com.supermap.data.processing

类 ObliquePhotogrammetryBuilder

  • java.lang.Object
    • com.supermap.data.InternalHandle
      • com.supermap.data.InternalHandleDisposable
        • com.supermap.data.processing.ObliquePhotogrammetryBuilder
  • 所有已实现的接口:
    IDisposable


    public class ObliquePhotogrammetryBuilder
    extends com.supermap.data.InternalHandleDisposable
    倾斜摄影数据生成类,可实现倾斜算子一体化处理,支持倾斜数据合并根节点、纹理压缩、修改中心点、单体化等操作,支持多线程。
    • 构造器详细资料

      • ObliquePhotogrammetryBuilder

        public ObliquePhotogrammetryBuilder(ObliqueProcessType[] processTypes)
        设置倾斜数据操作类型构造一个新的ObliquePhotogrammetryBuilder对象。
    • 方法详细资料

      • addSteppedListener

        public static void addSteppedListener(SteppedListener l)
        添加一个进度条事件(SteppedEvent)的监听器。
        参数:
        l - 一个用于接收进度条事件的监听器。
      • removeSteppedListener

        public static void removeSteppedListener(SteppedListener l)
        移除一个进度条事件(SteppedEvent)的监听器。
        参数:
        l - 一个用于接收进度条事件的监听器。
      • setMongoInfo

        public void setMongoInfo(TileStorageConnection mongoInfo)
        设置MongoDB连接信息
        参数:
        mongoInfo -
      • getNormalAngleThreshold

        public double getNormalAngleThreshold()
        获取倾斜摄影模型进行倾斜入库时,计算法线的夹角阈值。

        使用该参数的条件有: 1、设置了计算法线“IsComputeNormal:true”;2、计算法线的算法类型需要是NormalComputeMode.NelsonMax或者NormalComputeMode.AngleWeight时使用。

      • setNormalAngleThreshold

        public void setNormalAngleThreshold(double normalAngleThreshold)
        设置倾斜摄影模型进行倾斜入库时,计算法线的夹角阈值。

        使用该参数的条件有: 1、设置了计算法线“IsComputeNormal:true”;2、计算法线的算法类型需要是NormalComputeMode.NelsonMax或者NormalComputeMode.AngleWeight时使用。

        参数:
        normalAngleThreshold - 夹角阈值。
      • getRootNodeColorType

        public RootNodeColorType getRootNodeColorType()
        获取根节点的颜色类型。
      • setRootNodeColorType

        public void setRootNodeColorType(RootNodeColorType m_RootNodeColorType)
        设置根节点的颜色类型
        参数:
        m_RootNodeColorType -
      • isMergeBoundary

        public boolean isMergeBoundary()
        获取倾斜摄影模型是否进行边界融合,默认为true。

        边界融合可以减少每个块边界重叠区域的冗余三角网。适用于未被修饰的常规数据,对于被修饰过的,且去除了地表的单体化建筑数据或切片之间重叠区域过大的数据不能使用边界融合。

        返回:
      • setIsMergeBoundary

        public void setIsMergeBoundary(boolean isMergeBoundary)
        设置倾斜摄影模型是否进行边界融合,默认为true。

        边界融合可以减少每个块边界重叠区域的冗余三角网。适用于未被修饰的常规数据,对于被修饰过的,且去除了地表的单体化建筑数据或切片之间重叠区域过大的数据不能使用边界融合。

        参数:
        isMergeBoundary -
      • getCombineNodeType

        public CombineNodeType getCombineNodeType()
        获取重建类型。
        返回:
      • setCombineNodeType

        public void setCombineNodeType(CombineNodeType m_CombineType)
        设置重建类型。
        参数:
        m_CombineType -
      • setNormalComputeMode

        public void setNormalComputeMode(NormalComputeMode normalComputeMode)
      • getPointCenter

        public Point3D getPointCenter()
        获取三维点作为修改的中心点。
      • setPointCenter

        public void setPointCenter(Point3D centerP)
        设置三维点作为修改的中心点。
      • getCenterPositionUnit

        public DataUnit getCenterPositionUnit()
        获取中心点坐标单位。中心点坐标单位为原始OSGB文件的中心点坐标单位,投影坐标系,单位一般为米,ENU坐标系,单位一般为度。
        返回:
        中心点的单位
      • setCenterPositionUnit

        public void setCenterPositionUnit(DataUnit centerPositionUnit)
        设置中心点坐标单位。中心点坐标单位为原始OSGB文件的中心点坐标单位,投影坐标系,单位一般为米,ENU坐标系,单位一般为度。
        参数:
        centerPositionUnit - 中心点的单位
      • getS3MVersion

        public S3MVersion getS3MVersion()
        获取缓存文件版本号。
        返回:
        文件版本号
      • setS3MVersion

        public void setS3MVersion(S3MVersion s3mVersion)
        设置缓存文件版本号。
        参数:
        s3mVersion - 文件版本号
      • getTargetCoordSysTransParameter

        public CoordSysTransParameter getTargetCoordSysTransParameter()
        获取转换参照系转换参数,倾斜入库,设置目标坐标系时使用。

        从11i(2021)版本开始,投影坐标系的倾斜入库,默认不再转换为地理坐标系,在球面场景使用,需设置目标坐标系为地理坐标系。

        返回:
      • setTargetCoordSysTransParameter

        public void setTargetCoordSysTransParameter(CoordSysTransParameter targetCoordSysTransParameter)
        设置转换参照系转换参数,倾斜入库,设置目标坐标系时使用。

        从11i(2021)版本开始,投影坐标系的倾斜入库,默认不再转换为地理坐标系,在球面场景使用,需设置目标坐标系为地理坐标系。

        参数:
        targetCoordSysTransParameter -
      • getEncryptCoordinatesSetting

        public EncryptCoordinatesSetting getEncryptCoordinatesSetting()
        获取坐标系加密参数
        返回:
      • setEncryptCoordinatesSetting

        public void setEncryptCoordinatesSetting(EncryptCoordinatesSetting encryptCoordinatesSetting)
        设置坐标系加密参数
        参数:
        encryptCoordinatesSetting -
      • getTargetCoordSysTransMethod

        public CoordSysTransMethod getTargetCoordSysTransMethod()
        获取转换参照系,倾斜入库,设置目标坐标系时使用。

        从11i(2021)版本开始,投影坐标系的倾斜入库,默认不再转换为地理坐标系,在球面场景使用,需设置目标坐标系为地理坐标系。

        返回:
      • setTargetCoordSysCoordSysTransMethod

        public void setTargetCoordSysCoordSysTransMethod(CoordSysTransMethod targetCoordSysTransMethod)
        设置转换参照系,倾斜入库,设置目标坐标系时使用。

        从11i(2021)版本开始,投影坐标系的倾斜入库,默认不再转换为地理坐标系,在球面场景使用,需设置目标坐标系为地理坐标系。

        参数:
        targetCoordSysTransMethod -
      • getTexCompressType

        public TextureCompressType getTexCompressType()
        获取纹理压缩类型。
      • setTexCompressType

        public void setTexCompressType(TextureCompressType type)
        设置纹理压缩类型。
      • getCombineLevel

        public int getCombineLevel()
        获取置重建指数。
      • setCombineLevel

        public void setCombineLevel(int nLevel)
        设置置重建指数。
      • getRegionDataset

        public DatasetVector getRegionDataset()
        获取单体化对应的矢量面数据集。
      • setRegionDataset

        public void setRegionDataset(DatasetVector dsVector)
        设置单体化对应的矢量面数据集。
      • getFieldName

        public String getFieldName()
      • setFieldName

        public void setFieldName(String strFieldName)
        设置输入的SCP名字。
      • getTargetPrjCoordSys

        public PrjCoordSys getTargetPrjCoordSys()
        获取坐标系。
      • setTargetPrjCoordSys

        public void setTargetPrjCoordSys(PrjCoordSys prj)
        设置坐标系。
        参数:
        prj - 坐标系类型。
      • getFileType

        public CacheFileType getFileType()
        获取结果数据的缓存文件格式。
      • setFileType

        public void setFileType(CacheFileType fileType)
        设置结果数据的缓存文件格式。
      • getStorageType

        public StorageType getStorageType()
        获取存储类型,包括原始型和紧凑型。
        返回:
        存储类型
      • setStorageType

        public void setStorageType(StorageType m_StorageType)
        设置存储类型,包括原始型和紧凑型。
        参数:
        m_StorageType - 存储类型
      • setOutFilePassword

        public void setOutFilePassword(String password)
        设置密码。支持对倾斜入库生成的三维瓦片(块存储),进行加密设置。
        参数:
        password - 密码。
        从以下版本开始:
        11.2.0。
      • getVertexOptimazationType

        public VertexOptimizationType getVertexOptimazationType()
        获取几何压缩方式,包括不压缩、常规压缩、DRACO压缩。
        返回:
        几何压缩方式
      • setVertexOptimazationType

        public void setVertexOptimazationType(VertexOptimizationType type)
        设置几何压缩方式,包括不压缩、常规压缩、DRACO压缩。
        参数:
        type - 几何压缩方式
      • getClippingType

        public ClippingType getClippingType()
        获取裁剪类型。
      • setClippingType

        public void setClippingType(ClippingType clippingType)
        设置裁剪类型。
      • getConstraintType

        public ConstraintType getConstraintType()
        获取约束类型。
      • setConstraintType

        public void setConstraintType(ConstraintType constraintType)
        设置约束类型。
      • getClipRegionList

        public ArrayList<Geometry> getClipRegionList()
        获取矢量面集合,作为裁剪区域,支持多区域裁剪。
      • setClipRegionList

        public void setClipRegionList(ArrayList<Geometry> clipRegionList)
        设置矢量面集合,作为裁剪区域,支持多区域裁剪。
      • setTextureRemapping

        public void setTextureRemapping(boolean textureRemappingValue)
        设置是否纹理重映射。
        参数:
        -
      • getTextureRemapping

        public boolean getTextureRemapping()
        获取是否纹理重映射。
      • getClipDataset

        public DatasetVector getClipDataset()
        获取矢量面数据集,作为裁剪区域,支持多区域裁剪。
      • setClipDataset

        public void setClipDataset(DatasetVector clipDataset)
        设置矢量面数据集,作为裁剪区域,支持多区域裁剪。
      • setSimplifyPercent

        public void setSimplifyPercent(double simplifyPercent)
        设置轻量化简化率,支持倾斜入库时,对倾斜摄影模型设置轻量化简化率,默认简化至50%。
        参数:
        simplifyPercent - 轻量化简化率。
        从以下版本开始:
        11.2.0。
      • build

        public boolean build(String scpPath,
                             String outputFolder,
                             int threadCount)
        倾斜文件处理
        参数:
        scpPath - 倾斜配置文件路径
        outputFolder - 输出文件路径
        threadCount - 设置线程数
      • resumeBuild

        public static boolean resumeBuild(String ScpFile)
        倾斜入库断点续生成
        参数:
        ScpFile - 缓存日志文件
        返回:
      • build

        public boolean build(String[] scpPaths,
                             String outputFolder,
                             int threadCount)
        倾斜文件批量处理。

        支持多个不同中心点的倾斜数据完成倾斜入库后,生成一个scp配置文件,处理过程中需要修改成统一的中心点。

        参数:
        scpPaths - 多个不同中心点的倾斜数据scp全路径集合。
        outputFolder - 输出路径。
        threadCount - 线程数。
      • dispose

        public void dispose()
        释放资源
      • getUpdateOSGBFile

        public String getUpdateOSGBFile()
        获取更新的原始倾斜数据的scp
        返回:
        scp文件路径
      • setUpdateOSGBFile

        public void setUpdateOSGBFile(String updateOSGBFile)
        设置更新的原始倾斜数据的scp
        参数:
        updateOSGBFile - scp文件路径
      • getTimeRecord

        public Date getTimeRecord()
        获取当次倾斜更新的时间戳标记
        返回:
        时间戳,年月日时分秒
      • setTimeRecord

        public void setTimeRecord(Date timeRecord)
        设置当次倾斜更新的时间戳标记
        参数:
        timeRecord - 时间戳,年月日时分秒
      • getUnit

        public DataUnit getUnit()
        获取更新文件scp的插入点是度还是米
        返回:
      • setUnit

        public void setUnit(DataUnit m_unit)
        设置更新文件scp的插入点是度还是米
      • update

        @Deprecated
        public boolean update(String scpPath,
                                           int threadCount)
        已过时。 
      • update

        public static boolean update(ObliquePhotogrammetryUpdateParameter updateParameter)
        倾斜摄影模型数据局部更新
        参数:
        updateParameter - 倾斜局部更新参数设置类
        返回:

Copyright © 2021–2024 SuperMap. All rights reserved.