Beispiel #1
0
    def __init__(self, indexDirPath, panCap):
        """
        初始化domMatchImpl类

        :param indexDirPath: 索引文件夹路径,为str
        """
        super(domMatchImpl, self).__init__()
        self.indexDirPath = indexDirPath
        self.panCap = panCap
        self.logRcd = logRcd('DOM影像与索引匹配检查日志')
        self.domCount = 0
Beispiel #2
0
    def __init__(self,inputFilePath,textureFolder):
        """
        输入.x文件,以txt格式进行读取,按照文件规范逐行读取,得到坐标信息、贴图名称等信息。
        :param inputFilePath:  输入文件路径
        """
        super(xFileTextureCheck, self).__init__()

        self.inputFilePath=inputFilePath
        self.textureFolder=textureFolder
        self.FrameList=[]

        self.logRcd = logRcd('贴图完整性检查')
        self.textureNum=0       #已处理贴图数
        self.textureCount =0 #贴图总数
Beispiel #3
0
 def __init__(self,domIndexDirPath,domCoverDirPath,domCoverOutputDirPath,fileType):
     """
     初始化coverCheck类
     :param domIndexDirPath: 索引数据路径
     :param domCoverDirPath: 行政区划数据
     :param Else: 补充数据
     """
     super(coverCheck, self).__init__()
     self.domIndexDirPath = domIndexDirPath
     self.domCoverDirPath = domCoverDirPath
     self.domCoverOutputDirPath=domCoverOutputDirPath
     self.domPathNoExtList=[]
     self.domOriginalPathNoExtList=[]
     self.fileType = fileType
     self.domCount = 0
     self.logRcd = logRcd('DOM覆盖检查日志')
Beispiel #4
0
 def __init__(self, gdbInputDirPath, gdbDirOutputPath, reMatchDic,
              jsonDict):
     """
     初始化规范性检查类
     :param gdbInputDirPath: 输入专题数据gdb父级目录路径
     :param gdbDirOutputPath: 质检成果gdb文件父级目录路径
     :param reMatchDic: 正则匹配库,三层字典,第一层gdb名称,第二层lyr名称,第三层字段名,键值是正则表达式
     """
     super(propertyStdCheckImp, self).__init__()
     self.gdbInputDirPath = gdbInputDirPath
     self.gdbDirOutputPath = gdbDirOutputPath
     self.reMatchDic = reMatchDic
     self.jsonDict = jsonDict
     self.gdbInputDirPathNoExtList = []
     self.gdbOutputDirPathNoExtList = []
     self.stdGdbCount = 0
     self.gdbCompleted = 0
     self.logRcd = logRcd('时空专题大数据属性规范性检查日志')
Beispiel #5
0
    def __init__(self, inputFilePath, referShpFilePath, outputFilePath):
        """
        输入.x文件,以txt格式进行读取,按照文件规范逐行读取,得到坐标信息、贴图名称等信息。
        :param inputFilePath:  输入文件路径
        """

        super(devValueCheck, self).__init__()
        self.inputFilePath = inputFilePath
        self.referShpFilePath = referShpFilePath
        self.outputFilePath = outputFilePath
        self.FrameList = []

        self.inputFilePath = inputFilePath

        self.FrameList = []

        self.logRcd = logRcd('模型偏移检查')
        self.model3DNum = 0  # 已处理模型数
        self.model3DCount = 0  # 模型总数
Beispiel #6
0
    def __init__(self,
                 domDirPath,
                 domDirOutputPath,
                 outlierValue=0,
                 nearDist=0,
                 maxNonBlack=0,
                 delNum=0,
                 fileType="img",
                 ovrBuild=True,
                 nodataFill=True,
                 c254=True,
                 easyKill=False,
                 easyColors=0,
                 easyNearDist=5):
        """
        初始化domImpl类。

        :param domDirPath: dom文件夹路径
        :param outlierValue: 指定的异常值,如白边为255,黑边为0
        :param nearDist: 距离指定异常值相差指定值的像元也当做异常值。如outlierValue = 250,nearDist = 5,则246~255都算异常值
        :param maxNonBlack: 边缘修正因子,用于改善边缘渗透问题
        :param delNum: 内扩距离,可指定为int
        :param fileType: 指定输出的dom文件格式,默认为img,可指定为img或tif
        :param ovrBuild: 指定是否生成ovr格式影像金字塔文件,默认为True,可指定为Boolean值
        :param nodataFill: 指定是否将结果影像中的NoData区域填充为0值,默认为True,可指定为Boolean值
        """
        super(domImpl, self).__init__()
        self.domDirPath = domDirPath
        self.domDirOutputPath = domDirOutputPath
        self.outlierValue = outlierValue
        self.nearDist = nearDist
        self.maxNonBlack = maxNonBlack
        self.delNum = delNum
        self.fileType = fileType
        self.ovrBuild = ovrBuild
        self.nodataFill = nodataFill
        self.c254 = c254
        self.easyColors = easyColors
        self.easyNearDist = easyNearDist
        self.easyKill = easyKill
        self.domCount = 0
        self.logRcd = logRcd('DOM影像异常值检查日志')
Beispiel #7
0
    def __init__(self,
                 demDirPath,
                 demDirOutputPath,
                 valueRange=(0, 100),
                 fileType="img"):
        """
        demOutlierImpl类。

        :param demDirPath: dem文件夹路径
        :param demDirOutputPath: 处理后异常值输出文件夹路径
        :param valueRange: dem有效值范围,为tuple,第一个值为高程下限,第二个值为高程上限,在此范围外的都是异常值
        :param fileType: 指定的dem文件格式,默认为img
        """
        super(demOutlierImpl, self).__init__()
        self.demDirPath = demDirPath
        self.demDirOutputPath = demDirOutputPath
        self.valueRange = valueRange
        self.fileType = fileType
        self.demCount = 0
        self.logRcd = logRcd('DEM异常值检查日志')
Beispiel #8
0
    def __init__(self, gdbDirInputPath, gdbDirOutputPath, matchDegree):
        """
        初始化
        :param gdbDirInputPath: 输入路径
        :param gdbDirOutputPath: 输出路径
        :param matchDegree: 匹配度
        """
        super(repeatCheckImp, self).__init__()
        self.gdbDirInputPath = gdbDirInputPath
        self.gdbDirOutputPath = gdbDirOutputPath

        self.gdbInputDirPathNoExtList = []
        self.gdbOutputDirPathNoExtList = []

        self.matchDegree = matchDegree

        self.stdGdbCount = 0  #gdb输入图层数量
        self.gdbCompleted = 0  #gdb已处理数量
        self.layerNum = 0  # layer数量
        self.layerCompleted = 0  #layer已处理数量
        self.logRcd = logRcd('时空专题大数据名称重复性检查日志')