def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasoverlap.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) step = self.getParameterValue(lasoverlap.CHECK_STEP) if step != 0.0: commands.append('-step') commands.append(str(step)) commands.append('-values') attribute = self.getParameterValue(lasoverlap.ATTRIBUTE) if attribute != 0: commands.append('-' + lasoverlap.ATTRIBUTES[attribute]) operation = self.getParameterValue(lasoverlap.OPERATION) if operation != 0: commands.append('-' + lasoverlap.OPERATIONS[operation]) if self.getParameterValue(lasoverlap.CREATE_OVERLAP_RASTER): commands.append('-no_over') if self.getParameterValue(lasoverlap.CREATE_DIFFERENCE_RASTER): commands.append('-no_diff') self.addParametersRasterOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasview.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasmerge.exe')] self.addParametersVerboseCommands(commands) self.addParametersFilesAreFlightlinesCommands(commands) self.addParametersPointInputCommands(commands) file2 = self.getParameterValue(lasmerge.FILE2) if file2 is not None: commands.append('-i') commands.append(file2) file3 = self.getParameterValue(lasmerge.FILE3) if file3 is not None: commands.append('-i') commands.append(file3) file4 = self.getParameterValue(lasmerge.FILE4) if file4 is not None: commands.append('-i') commands.append(file4) file5 = self.getParameterValue(lasmerge.FILE5) if file5 is not None: commands.append('-i') commands.append(file5) file6 = self.getParameterValue(lasmerge.FILE6) if file6 is not None: commands.append('-i') commands.append(file6) file7 = self.getParameterValue(lasmerge.FILE7) if file7 is not None: commands.append('-i') commands.append(file7) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasnoise.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) isolated = self.getParameterValue(lasnoise.ISOLATED) commands.append('-isolated') commands.append(str(isolated)) step_xy = self.getParameterValue(lasnoise.STEP_XY) commands.append('-step_xy') commands.append(str(step_xy)) step_z = self.getParameterValue(lasnoise.STEP_Z) commands.append('-step_z') commands.append(str(step_z)) operation = self.getParameterValue(lasnoise.OPERATION) if operation != 0: commands.append('-remove_noise') else: commands.append('-classify_as') classify_as = self.getParameterValue(lasnoise.CLASSIFY_AS) commands.append(str(classify_as)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lascanopy.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersStepCommands(commands) product = self.getParameterValue(lascanopy.PRODUCT1) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT2) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT3) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT4) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT5) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT6) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT7) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT8) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT9) if product != 0: commands.append("-" + lascanopy.PRODUCTS[product]) self.addParametersRasterOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasmerge.exe') ] self.addParametersVerboseCommands(commands) self.addParametersFilesAreFlightlinesCommands(commands) self.addParametersPointInputCommands(commands) file2 = self.getParameterValue(lasmerge.FILE2) if file2 is not None: commands.append('-i') commands.append(file2) file3 = self.getParameterValue(lasmerge.FILE3) if file3 is not None: commands.append('-i') commands.append(file3) file4 = self.getParameterValue(lasmerge.FILE4) if file4 is not None: commands.append('-i') commands.append(file4) file5 = self.getParameterValue(lasmerge.FILE5) if file5 is not None: commands.append('-i') commands.append(file5) file6 = self.getParameterValue(lasmerge.FILE6) if file6 is not None: commands.append('-i') commands.append(file6) file7 = self.getParameterValue(lasmerge.FILE7) if file7 is not None: commands.append('-i') commands.append(file7) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasmerge.exe")] self.addParametersVerboseCommands(commands) self.addParametersFilesAreFlightlinesCommands(commands) self.addParametersPointInputCommands(commands) file2 = self.getParameterValue(lasmerge.FILE2) if file2 != None: commands.append("-i") commands.append(file2) file3 = self.getParameterValue(lasmerge.FILE3) if file3 != None: commands.append("-i") commands.append(file3) file4 = self.getParameterValue(lasmerge.FILE4) if file4 != None: commands.append("-i") commands.append(file4) file5 = self.getParameterValue(lasmerge.FILE5) if file5 != None: commands.append("-i") commands.append(file5) file6 = self.getParameterValue(lasmerge.FILE6) if file6 != None: commands.append("-i") commands.append(file6) file7 = self.getParameterValue(lasmerge.FILE7) if file7 != None: commands.append("-i") commands.append(file7) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'blast2iso.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) smooth = self.getParameterValue(blast2iso.SMOOTH) if smooth != 0: commands.append('-smooth') commands.append(str(smooth)) commands.append('-iso_every') commands.append(str(self.getParameterValue(blast2iso.ISO_EVERY))) simplify_length = self.getParameterValue(blast2iso.SIMPLIFY_LENGTH) if simplify_length != 0: commands.append('-simplify_length') commands.append(str(simplify_length)) simplify_area = self.getParameterValue(blast2iso.SIMPLIFY_AREA) if simplify_area != 0: commands.append('-simplify_area') commands.append(str(simplify_area)) clean = self.getParameterValue(blast2iso.CLEAN) if clean != 0: commands.append('-clean') commands.append(str(clean)) self.addParametersVectorOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasclassify.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersHorizontalAndVerticalFeetCommands(commands) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasinfo.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) commands.append("-o") commands.append(self.getOutputValue(lasinfo.OUTPUT)) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasview.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasprecision.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) commands.append('-o') commands.append(self.getOutputValue(lasprecision.OUTPUT)) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lassplit.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) commands.append("-split") commands.append(self.getParameterValue(lassplit.NUM_POINTS)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "laszip.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(laszip.REPORT_SIZE): commands.append("-size") self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lassplit.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) commands.append('-split') commands.append(self.getParameterValue(lassplit.NUM_POINTS)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasheight.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) replace_z = self.getParameterValue(lasheight.REPLACE_Z) if replace_z == True: commands.append("-replace_z") self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasinfo.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) commands.append('-o') commands.append(self.getOutputValue(lasinfo.OUTPUT)) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lassort.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(lassort.BY_GPS_TIME): commands.append("-gps_time") if self.getParameterValue(lassort.BY_POINT_SOURCE_ID): commands.append("-point_source") self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'laszip.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(laszip.REPORT_SIZE): commands.append('-size') self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasclassify.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersHorizontalAndVerticalFeetCommands(commands) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasindex.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(lasindex.MOBILE_OR_TERRESTRIAL): commands.append("-tile_size") commands.append("10") commands.append("-maximum") commands.append("-100") LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasheight.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) replace_z = self.getParameterValue(lasheight.REPLACE_Z) if replace_z: commands.append('-replace_z') self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2txt.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) parse_string = self.getParameterValue(las2txt.PARSE_STRING) if parse_string != "xyz": commands.append("-parse_string") commands.append(parse_string) commands.append("-o") commands.append(self.getOutputValue(las2txt.OUTPUT)) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasindex.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(lasindex.MOBILE_OR_TERRESTRIAL): commands.append('-tile_size') commands.append('10') commands.append('-maximum') commands.append('-100') LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersFilter2ReturnClassFlagsCommands(commands) self.addParametersFilter1CoordsIntensityCommands(commands) self.addParametersFilter2CoordsIntensityCommands(commands) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'las2txt.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) parse_string = self.getParameterValue(las2txt.PARSE_STRING) if parse_string != 'xyz': commands.append('-parse_string') commands.append(parse_string) commands.append('-o') commands.append(self.getOutputValue(las2txt.OUTPUT)) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "shp2las.exe")] self.addParametersVerboseCommands(commands) commands.append("-i") commands.append(self.getParameterValue(shp2las.INPUT)) scale_factor_xy = self.getParameterValue(shp2las.SCALE_FACTOR_XY) scale_factor_z = self.getParameterValue(shp2las.SCALE_FACTOR_Z) if scale_factor_xy != 0.01 or scale_factor_z != 0.01: commands.append("-set_scale_factor") commands.append(str(scale_factor_xy) + " " + str(scale_factor_xy) + " " + str(scale_factor_z)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lassort.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(lassort.BY_GPS_TIME): commands.append('-gps_time') if self.getParameterValue(lassort.BY_POINT_SOURCE_ID): commands.append('-point_source') self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasindex.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(lasindex.MOBILE_OR_TERRESTRIAL): commands.append('-tile_size') commands.append('10') commands.append('-maximum') commands.append('-100') LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'las2las.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersFilter2ReturnClassFlagsCommands(commands) self.addParametersFilter1CoordsIntensityCommands(commands) self.addParametersFilter2CoordsIntensityCommands(commands) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2shp.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(las2shp.POINT_Z): commands.append("-single_points") record_size = self.getParameterValue(las2shp.RECORD_SIZE) if record_size != 1024: commands.append("-record_size") commands.append(str(record_size)) commands.append("-o") commands.append(self.getOutputValue(las2shp.OUTPUT)) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "blast2dem.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersStepCommands(commands) attribute = self.getParameterValue(blast2dem.ATTRIBUTE) if attribute != 0: commands.append("-" + blast2dem.ATTRIBUTES[attribute]) product = self.getParameterValue(blast2dem.PRODUCT) if product != 0: commands.append("-" + blast2dem.PRODUCTS[product]) self.addParametersRasterOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasboundary.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) concavity = self.getParameterValue(lasboundary.CONCAVITY) commands.append("-concavity") commands.append(str(concavity)) if self.getParameterValue(lasboundary.HOLES): commands.append("-holes") if self.getParameterValue(lasboundary.DISJOINT): commands.append("-disjoint") self.addParametersVectorOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasgrid.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersStepCommands(commands) attribute = self.getParameterValue(lasgrid.ATTRIBUTE) if attribute != 0: commands.append("-" + lasgrid.ATTRIBUTES[attribute]) method = self.getParameterValue(lasgrid.METHOD) if method != 0: commands.append("-" + lasgrid.METHODS[method]) self.addParametersRasterOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasground.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersHorizontalAndVerticalFeetCommands(commands) method = self.getParameterValue(lasground.TERRAIN) if method != 1: commands.append('-' + lasground.TERRAINS[method]) granularity = self.getParameterValue(lasground.GRANULARITY) if granularity != 1: commands.append('-' + lasground.GRANULARITIES[granularity]) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersFilter1CoordsIntensityCommands(commands) operation = self.getParameterValue(las2las.OPERATION) if operation != 0: commands.append("-" + OPERATIONS[operation]) if operation > 7: commands.append(self.getParameterValue(las2las.OPERATIONARG)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'blast2dem.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersStepCommands(commands) attribute = self.getParameterValue(blast2dem.ATTRIBUTE) if attribute != 0: commands.append('-' + blast2dem.ATTRIBUTES[attribute]) product = self.getParameterValue(blast2dem.PRODUCT) if product != 0: commands.append('-' + blast2dem.PRODUCTS[product]) self.addParametersRasterOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'las2shp.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(las2shp.POINT_Z): commands.append('-single_points') record_size = self.getParameterValue(las2shp.RECORD_SIZE) if record_size != 1024: commands.append('-record_size') commands.append(str(record_size)) commands.append('-o') commands.append(self.getOutputValue(las2shp.OUTPUT)) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasthin.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) step = self.getParameterValue(lasthin.THIN_STEP) if step != 0.0: commands.append("-step") commands.append(str(step)) operation = self.getParameterValue(lasthin.OPERATION) if operation != 0: commands.append("-" + OPERATIONS[operation]) if self.getParameterValue(lasthin.WITHHELD): commands.append("-withheld") self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasboundary.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) concavity = self.getParameterValue(lasboundary.CONCAVITY) commands.append('-concavity') commands.append(str(concavity)) if self.getParameterValue(lasboundary.HOLES): commands.append('-holes') if self.getParameterValue(lasboundary.DISJOINT): commands.append('-disjoint') self.addParametersVectorOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasgrid.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersStepCommands(commands) attribute = self.getParameterValue(lasgrid.ATTRIBUTE) if attribute != 0: commands.append('-' + lasgrid.ATTRIBUTES[attribute]) method = self.getParameterValue(lasgrid.METHOD) if method != 0: commands.append('-' + lasgrid.METHODS[method]) self.addParametersRasterOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'las2las.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilter1ReturnClassFlagsCommands(commands) self.addParametersFilter1CoordsIntensityCommands(commands) operation = self.getParameterValue(las2las.OPERATION) if operation != 0: commands.append('-' + OPERATIONS[operation]) if operation > 7: commands.append(self.getParameterValue(las2las.OPERATIONARG)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lastile.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilesAreFlightlinesCommands(commands) tile_size = self.getParameterValue(lastile.TILE_SIZE) commands.append("-tile_size") commands.append(str(tile_size)) buffer = self.getParameterValue(lastile.BUFFER) if buffer != 0.0: commands.append("-buffer") commands.append(str(buffer)) if self.getParameterValue(lastile.REVERSIBLE): commands.append("-reversible") self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersTransform1CoordinateCommands(commands) self.addParametersTransform2CoordinateCommands(commands) self.addParametersTransform1OtherCommands(commands) self.addParametersTransform2OtherCommands(commands) operation = self.getParameterValue(las2las_transform.OPERATION) if operation != 0: commands.append("-" + las2las_transform.OPERATIONS[operation]) if operation > 7: commands.append(self.getParameterValue(las2las_transform.OPERATIONARG)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'shp2las.exe') ] self.addParametersVerboseCommands(commands) commands.append('-i') commands.append(self.getParameterValue(shp2las.INPUT)) scale_factor_xy = self.getParameterValue(shp2las.SCALE_FACTOR_XY) scale_factor_z = self.getParameterValue(shp2las.SCALE_FACTOR_Z) if scale_factor_xy != 0.01 or scale_factor_z != 0.01: commands.append('-set_scale_factor') commands.append( str(scale_factor_xy) + ' ' + str(scale_factor_xy) + ' ' + str(scale_factor_z)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasduplicate.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(lasduplicate.LOWEST_Z): commands.append("-lowest_z") if self.getParameterValue(lasduplicate.UNIQUE_XYZ): commands.append("-unique_xyz") if self.getParameterValue(lasduplicate.SINGLE_RETURNS): commands.append("-single_returns") record_removed = self.getParameterValue(lasduplicate.RECORD_REMOVED) if record_removed != Null: commands.append("-record_removed") commands.append(record_removed) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lastile.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersFilesAreFlightlinesCommands(commands) tile_size = self.getParameterValue(lastile.TILE_SIZE) commands.append('-tile_size') commands.append(str(tile_size)) buffer = self.getParameterValue(lastile.BUFFER) if buffer != 0.0: commands.append('-buffer') commands.append(str(buffer)) if self.getParameterValue(lastile.REVERSIBLE): commands.append('-reversible') self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasoverage.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersHorizontalFeetCommands(commands) self.addParametersFilesAreFlightlinesCommands(commands) step = self.getParameterValue(lasoverage.CHECK_STEP) if step != 1.0: commands.append("-step") commands.append(str(step)) operation = self.getParameterValue(lasoverage.OPERATION) if operation != 0: commands.append("-" + OPERATIONS[operation]) if self.getParameterValue(lasoverage.WITHHELD): commands.append("-withheld") self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasthin.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) step = self.getParameterValue(lasthin.THIN_STEP) if step != 0.0: commands.append('-step') commands.append(str(step)) operation = self.getParameterValue(lasthin.OPERATION) if operation != 0: commands.append('-' + OPERATIONS[operation]) if self.getParameterValue(lasthin.WITHHELD): commands.append('-withheld') self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasclip.exe")] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) poly = self.getParameterValue(lasclip.POLYGON) if poly != None: commands.append("-poly") commands.append(poly) if self.getParameterValue(lasclip.INTERIOR): commands.append("-interior") operation = self.getParameterValue(lasclip.OPERATION) if operation != 0: commands.append("-classify") classify_as = self.getParameterValue(lasclip.CLASSIFY_AS) commands.append(str(classify_as)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lascontrol.exe')] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) poly = self.getParameterValue(lascontrol.POLYGON) if poly is not None: commands.append('-poly') commands.append(poly) if self.getParameterValue(lascontrol.INTERIOR): commands.append('-interior') operation = self.getParameterValue(lascontrol.OPERATION) if operation != 0: commands.append('-classify') classify_as = self.getParameterValue(lascontrol.CLASSIFY_AS) commands.append(str(classify_as)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasoverage.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersHorizontalFeetCommands(commands) self.addParametersFilesAreFlightlinesCommands(commands) step = self.getParameterValue(lasoverage.CHECK_STEP) if step != 1.0: commands.append('-step') commands.append(str(step)) operation = self.getParameterValue(lasoverage.OPERATION) if operation != 0: commands.append('-' + OPERATIONS[operation]) if self.getParameterValue(lasoverage.WITHHELD): commands.append('-withheld') self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lasduplicate.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) if self.getParameterValue(lasduplicate.LOWEST_Z): commands.append('-lowest_z') if self.getParameterValue(lasduplicate.UNIQUE_XYZ): commands.append('-unique_xyz') if self.getParameterValue(lasduplicate.SINGLE_RETURNS): commands.append('-single_returns') record_removed = self.getParameterValue(lasduplicate.RECORD_REMOVED) if record_removed != Null: commands.append('-record_removed') commands.append(record_removed) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'las2las.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersTransform1CoordinateCommands(commands) self.addParametersTransform2CoordinateCommands(commands) self.addParametersTransform1OtherCommands(commands) self.addParametersTransform2OtherCommands(commands) operation = self.getParameterValue(las2las_transform.OPERATION) if operation != 0: commands.append('-' + las2las_transform.OPERATIONS[operation]) if operation > 7: commands.append( self.getParameterValue(las2las_transform.OPERATIONARG)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'txt2las.exe')] self.addParametersVerboseCommands(commands) commands.append('-i') commands.append(self.getParameterValue(txt2las.INPUT)) parse_string = self.getParameterValue(txt2las.PARSE_STRING) if parse_string != 'xyz': commands.append('-parse_string') commands.append(parse_string) skip = self.getParameterValue(txt2las.SKIP) if parse_string != 0: commands.append('-skip') commands.append(str(skip)) scale_factor_xy = self.getParameterValue(txt2las.SCALE_FACTOR_XY) scale_factor_z = self.getParameterValue(txt2las.SCALE_FACTOR_Z) if scale_factor_xy != 0.01 or scale_factor_z != 0.01: commands.append('-set_scale_factor') commands.append(str(scale_factor_xy) + ' ' + str(scale_factor_xy) + ' ' + str(scale_factor_z)) self.addParametersPointOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)
def processAlgorithm(self, progress): commands = [ os.path.join(LAStoolsUtils.LAStoolsPath(), 'bin', 'lascanopy.exe') ] self.addParametersVerboseCommands(commands) self.addParametersPointInputCommands(commands) self.addParametersStepCommands(commands) product = self.getParameterValue(lascanopy.PRODUCT1) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT2) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT3) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT4) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT5) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT6) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT7) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT8) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) product = self.getParameterValue(lascanopy.PRODUCT9) if product != 0: commands.append('-' + lascanopy.PRODUCTS[product]) self.addParametersRasterOutputCommands(commands) LAStoolsUtils.runLAStools(commands, progress)