Esempio n. 1
0
 def defineCharacteristics(self):
     self.name = 'Translate (convert format)'
     self.group = '[GDAL] Conversion'
     self.addParameter(ParameterRaster(self.INPUT, 'Input layer',
                       False))
     self.addParameter(ParameterNumber(self.OUTSIZE,
                       'Set the size of the output file (In pixels or %)',
                       1, None, 100))
     self.addParameter(ParameterBoolean(self.OUTSIZE_PERC,
                       'Output size is a percentage of input size', True))
     self.addParameter(ParameterString(self.NO_DATA,
         'Nodata value, leave as none to take the nodata value from input',
         'none'))
     self.addParameter(ParameterSelection(self.EXPAND, 'Expand',
                       ['none', 'gray', 'rgb', 'rgba']))
     self.addParameter(ParameterCrs(self.SRS,
                       'Override the projection for the output file', None))
     self.addParameter(ParameterExtent(self.PROJWIN,
                       'Subset based on georeferenced coordinates'))
     self.addParameter(ParameterBoolean(self.SDS,
         'Copy all subdatasets of this file to individual output files',
         False))
     self.addParameter(ParameterString(self.EXTRA,
                       'Additional creation parameters', ''))
     self.addOutput(OutputRaster(self.OUTPUT, 'Output layer'))
Esempio n. 2
0
    def defineCharacteristics(self):
        self.name = 'Import into PostGIS'
        self.group = 'Database'
        self.addParameter(ParameterVector(self.INPUT, 'Layer to import'))

        self.DB_CONNECTIONS = self.dbConnectionNames()
        self.addParameter(
            ParameterSelection(self.DATABASE, 'Database (connection name)',
                               self.DB_CONNECTIONS))

        self.addParameter(ParameterString(self.SCHEMA, 'Schema (schema name)'))
        self.addParameter(ParameterString(self.TABLENAME,
                                          'Table to import to'))
        self.addParameter(
            ParameterTableField(self.PRIMARY_KEY,
                                'Primary key field',
                                self.INPUT,
                                optional=True))
        self.addParameter(
            ParameterString(self.GEOMETRY_COLUMN, 'Geometry column',
                            'the_geom'))
        self.addParameter(ParameterBoolean(self.OVERWRITE, 'Overwrite', True))
        self.addParameter(
            ParameterBoolean(self.CREATEINDEX, 'Create spatial index', True))
        self.addParameter(
            ParameterBoolean(self.LOWERCASE_NAMES,
                             'Convert field names to lowercase', False))
        self.addParameter(
            ParameterBoolean(self.DROP_STRING_LENGTH,
                             'Drop length constraints on character fields',
                             False))
Esempio n. 3
0
 def defineCharacteristics(self):
     self.name = "Merge"
     self.group = "[GDAL] Miscellaneous"
     self.addParameter(ParameterMultipleInput(merge.INPUT, "Input layers", ParameterMultipleInput.TYPE_RASTER))
     self.addParameter(ParameterBoolean(merge.PCT, "Grab pseudocolor table from first layer", False))
     self.addParameter(ParameterBoolean(merge.SEPARATE, "Layer stack", False))
     self.addOutput(OutputRaster(merge.OUTPUT, "Output layer"))
Esempio n. 4
0
    def defineCharacteristics(self):
        self.name = 'One-to-all / All-to-one modelling'
        self.group = 'Circuitscape'

        self.addParameter(
            ParameterSelection(self.MODE, 'Modelling mode', self.MODES, 0))
        self.addParameter(
            ParameterRaster(self.RESISTANCE_MAP, 'Raster resistance map'))
        self.addParameter(
            ParameterBoolean(
                self.IS_CONDUCTANCES,
                'Data represent conductances instead of resistances', False))
        self.addParameter(
            ParameterRaster(self.FOCAL_NODE, 'Focal node location'))
        self.addParameter(
            ParameterBoolean(self.WRITE_CURRENT_MAP, 'Create current map',
                             True))
        self.addParameter(
            ParameterBoolean(self.WRITE_VOLTAGE_MAP, 'Create voltage map',
                             True))
        self.addParameter(
            ParameterRaster(self.MASK, 'Raster mask file', optional=True))
        self.addParameter(
            ParameterRaster(self.SHORT_CIRCUIT,
                            'Raster short-circuit region file',
                            optional=True))
        self.addParameter(
            ParameterRaster(self.SOURCE_STRENGTH,
                            'Source strength file',
                            optional=True))

        self.addParameter(
            ParameterString(self.BASENAME, 'Output basename', 'csoutput'))

        self.addOutput(OutputDirectory(self.DIRECTORY, 'Output directory'))
Esempio n. 5
0
    def defineCharacteristics(self):
        self.name = 'Pairwise modelling'
        self.group = 'Circuitscape'

        self.addParameter(
            ParameterRaster(self.RESISTANCE_MAP, 'Raster resistance map'))
        self.addParameter(
            ParameterBoolean(
                self.IS_CONDUCTANCES,
                'Data represent conductances instead of resistances', False))
        self.addParameter(
            ParameterRaster(self.FOCAL_NODE, 'Focal node location'))
        self.addParameter(
            ParameterBoolean(self.WRITE_CURRENT_MAP, 'Create current map',
                             True))
        self.addParameter(
            ParameterBoolean(self.WRITE_VOLTAGE_MAP, 'Create voltage map',
                             True))
        self.addParameter(
            ParameterRaster(self.MASK, 'Raster mask file', optional=True))
        self.addParameter(
            ParameterRaster(self.SHORT_CIRCUIT,
                            'Raster short-circuit region file',
                            optional=True))
        self.addParameter(
            ParameterRaster(self.EXCLUDE_INCLUDE,
                            'File with focal node pairs to exclude/include',
                            optional=True))
        self.addParameter(
            ParameterBoolean(self.LOW_MEMORY, 'Run in low memory mode', False))

        self.addParameter(
            ParameterString(self.BASENAME, 'Output basename', 'csoutput'))

        self.addOutput(OutputDirectory(self.DIRECTORY, 'Output directory'))
Esempio n. 6
0
    def defineCharacteristics(self):
        self.name = 'Hillshade'
        self.group = '[GDAL] Analysis'
        self.addParameter(ParameterRaster(self.INPUT, 'Input layer'))
        self.addParameter(ParameterNumber(self.BAND, 'Band number', 1, 99, 1))
        self.addParameter(
            ParameterBoolean(self.COMPUTE_EDGES, 'Compute edges', False))
        self.addParameter(
            ParameterBoolean(
                self.ZEVENBERGEN,
                "Use Zevenbergen&Thorne formula (instead of the Horn's one)",
                False))
        self.addParameter(
            ParameterNumber(self.Z_FACTOR, 'Z factor (vertical exaggeration)',
                            0.0, 99999999.999999, 1.0))
        self.addParameter(
            ParameterNumber(self.SCALE,
                            'Scale (ratio of vert. units to horiz.)', 0.0,
                            99999999.999999, 1.0))
        self.addParameter(
            ParameterNumber(self.AZIMUTH, 'Azimuth of the light', 0.0, 359.0,
                            315.0))
        self.addParameter(
            ParameterNumber(self.ALTITUDE, 'Altitude of the light', 0.0,
                            99999999.999999, 45.0))

        self.addOutput(OutputRaster(self.OUTPUT, 'Output file'))
Esempio n. 7
0
 def defineCharacteristics(self):
     self.name = 'Grid Surface Create'
     self.group = 'Surface'
     self.addParameter(ParameterFile(self.INPUT, 'Input las layer'))
     self.addParameter(ParameterNumber(self.CELLSIZE, 'Cellsize', 0, None, 10.0))
     self.addParameter(ParameterSelection(self.XYUNITS, 'XY Units', self.UNITS))
     self.addParameter(ParameterSelection(self.ZUNITS, 'Z Units', self.UNITS))   
     self.addOutput(OutputFile(self.OUTPUT_DTM, 'DTM Output Surface', 'dtm'))
     spike = ParameterString(self.SPIKE, 'Spike (set blank if not used)', '', False, True)
     spike.isAdvanced = True
     self.addParameter(spike)
     median = ParameterString(self.MEDIAN, 'Median', '', False, True)
     median.isAdvanced = True
     self.addParameter(median)
     smooth = ParameterString(self.SMOOTH, 'Smooth', '', False, True)
     smooth.isAdvanced = True
     self.addParameter(smooth)     
     slope = ParameterString(self.SLOPE, 'Slope', '', False, True)
     slope.isAdvanced = True
     self.addParameter(slope)  
     minimum = ParameterBoolean(self.MINIMUM, 'Minimum (set blank if not used)', False)
     minimum.isAdvanced = True
     self.addParameter(minimum)   
     class_var = ParameterString(self.CLASS, 'Class(es)', 2, False, True)
     class_var.isAdvanced = True
     self.addParameter(class_var)
     advance_modifiers = ParameterString(self.ADVANCED_MODIFIERS, 'Additional modifiers', '', False, True)
     advance_modifiers.isAdvanced = True
     self.addParameter(advance_modifiers)    
Esempio n. 8
0
    def defineCharacteristics(self):
        self.name = 'Grid Metrics'
        self.group = 'Points'
        self.addParameter(ParameterFile(self.INPUT, 'Input las layer'))
        self.addParameter(ParameterFile(self.GROUND, 'Input ground DTM layer'))
        self.addParameter(ParameterNumber(self.HEIGHT, 'Height break'))
        self.addParameter(ParameterNumber(self.CELLSIZE, 'Cellsize'))

        self.addOutput(OutputFile(self.OUTPUT_CSV_ELEVATION, 'Output table with grid metrics'))

        output_csv_intensity = OutputFile(self.OUTPUT_CSV_INTENSITY, 'OUTPUT CSV INTENSITY')
        output_csv_intensity.hidden = True
        self.addOutput(output_csv_intensity)

        output_txt_elevation = OutputFile(self.OUTPUT_TXT_ELEVATION, 'OUTPUT CSV INTENSITY')
        output_txt_elevation.hidden = True
        self.addOutput(output_txt_elevation)

        output_txt_intensity = OutputFile(self.OUTPUT_TXT_INTENSITY, 'OUTPUT CSV INTENSITY')
        output_txt_intensity.hidden = True
        self.addOutput(output_txt_intensity)

        outlier = ParameterString(self.OUTLIER, 'Outlier:low,high', '', False, True)
        outlier.isAdvanced = True
        self.addParameter(outlier)
        first = ParameterBoolean(self.FIRST, 'First', False)
        first.isAdvanced = True
        self.addParameter(first)
        minht = ParameterString(self.MINHT, 'Htmin', '', False, True)
        minht.isAdvanced = True
        self.addParameter(minht)
        class_var = ParameterString(self.CLASS, 'Class (set blank if not used)', '', False, True)
        class_var.isAdvanced = True
        self.addParameter(class_var)
Esempio n. 9
0
 def defineCharacteristics(self):
     self.name = "Import into PostGIS"
     self.group = "PostGIS management tools"
     self.addParameter(ParameterVector(self.INPUT, "Layer to import"))
     self.addParameter(ParameterString(self.DATABASE, "Database (connection name)"))
     self.addParameter(ParameterString(self.TABLENAME, "Table to import to"))
     self.addParameter(ParameterBoolean(self.OVERWRITE, "Overwrite", True))
     self.addParameter(ParameterBoolean(self.CREATEINDEX, "Create spatial index", True))
Esempio n. 10
0
 def defineCharacteristics(self):
     self.name = "lassort"
     self.group = "LAStools"
     self.addParametersVerboseGUI()
     self.addParametersPointInputGUI()
     self.addParameter(ParameterBoolean(lassort.BY_GPS_TIME, "sort by GPS time", False))
     self.addParameter(ParameterBoolean(lassort.BY_POINT_SOURCE_ID, "sort by point source ID", False))
     self.addParametersPointOutputGUI()
Esempio n. 11
0
 def defineCharacteristics(self):
     self.name = 'Information'
     self.group = '[GDAL] Miscellaneous'
     self.addParameter(ParameterRaster(information.INPUT, 'Input layer',
                       False))
     self.addParameter(ParameterBoolean(information.NOGCP,
                       'Suppress GCP info', False))
     self.addParameter(ParameterBoolean(information.NOMETADATA,
                       'Suppress metadata info', False))
     self.addOutput(OutputHTML(information.OUTPUT, 'Layer information'))
Esempio n. 12
0
 def defineCharacteristics(self):
     self.name = "lasduplicate"
     self.group = "LAStools"
     self.addParametersVerboseGUI()
     self.addParametersPointInputGUI()
     self.addParameter(ParameterBoolean(lasduplicate.LOWEST_Z, "keep duplicate with lowest z coordinate", False))
     self.addParameter(ParameterBoolean(lasduplicate.UNIQUE_XYZ, "only remove duplicates in x y and z", False))
     self.addParameter(ParameterBoolean(lasduplicate.SINGLE_RETURNS, "mark surviving duplicate as single return", False))
     self.addParameter(ParameterFile(lasduplicate.RECORD_REMOVED, "record removed duplictates to LAS/LAZ file"))
     self.addParametersPointOutputGUI()
Esempio n. 13
0
 def defineCharacteristics(self):
     self.name = 'Polygonize'
     self.group = 'Vector geometry tools'
     self.addParameter(ParameterVector(self.INPUT, 'Input layer',
                       [ParameterVector.VECTOR_TYPE_LINE]))
     self.addParameter(ParameterBoolean(self.FIELDS,
                       'Keep table structure of line layer', False))
     self.addParameter(ParameterBoolean(self.GEOMETRY,
                       'Create geometry columns', True))
     self.addOutput(OutputVector(self.OUTPUT, 'Output layer'))
Esempio n. 14
0
 def defineCharacteristics(self):
     self.name = 'Concave hull'
     self.group = 'Vector geometry tools'
     self.addParameter(ParameterVector(ConcaveHull.INPUT, 'Input point layer',
                       [ParameterVector.VECTOR_TYPE_POINT]))
     self.addParameter(ParameterNumber(self.ALPHA,
                         'Threshold (0-1, where 1 is equivalent with Convex Hull)', 0, 1, 0.3))
     self.addParameter(ParameterBoolean(self.HOLES, 'Allow holes', True))
     self.addParameter(ParameterBoolean(self.NO_MULTIGEOMETRY,
                         'Split multipart geometry into singleparts geometries', False))
     self.addOutput(OutputVector(ConcaveHull.OUTPUT, 'Concave hull'))
Esempio n. 15
0
 def defineCharacteristics(self):
     self.name = "Information"
     self.group = "[GDAL] Miscellaneous"
     self.addParameter(
         ParameterRaster(information.INPUT, "Input layer", False))
     self.addParameter(
         ParameterBoolean(information.NOGCP, "Suppress GCP info", False))
     self.addParameter(
         ParameterBoolean(information.NOMETADATA, "Suppress metadata info",
                          False))
     self.addOutput(OutputHTML(information.OUTPUT, "Layer information"))
Esempio n. 16
0
 def defineCharacteristics(self):
     self.name = 'Merge'
     self.group = '[GDAL] Miscellaneous'
     self.addParameter(
         ParameterMultipleInput(merge.INPUT, 'Input layers',
                                ParameterMultipleInput.TYPE_RASTER))
     self.addParameter(
         ParameterBoolean(merge.PCT,
                          'Grab pseudocolor table from first layer', False))
     self.addParameter(
         ParameterBoolean(merge.SEPARATE, 'Layer stack', False))
     self.addOutput(OutputRaster(merge.OUTPUT, 'Output layer'))
Esempio n. 17
0
 def defineCharacteristics(self):
     self.name = 'Import into PostGIS'
     self.group = 'PostGIS management tools'
     self.addParameter(ParameterVector(self.INPUT, 'Layer to import'))
     self.addParameter(ParameterString(self.DATABASE,
                       'Database (connection name)'))
     self.addParameter(ParameterString(self.SCHEMA, 'Schema (schema name)'))
     self.addParameter(ParameterString(self.TABLENAME, 'Table to import to'
                       ))
     self.addParameter(ParameterBoolean(self.OVERWRITE, 'Overwrite', True))
     self.addParameter(ParameterBoolean(self.CREATEINDEX,
                       'Create spatial index', True))
Esempio n. 18
0
 def defineCharacteristics(self):
     self.name = "Polygonize"
     self.group = "Vector geometry tools"
     self.addParameter(
         ParameterVector(self.INPUT, "Input layer",
                         [ParameterVector.VECTOR_TYPE_LINE]))
     self.addParameter(
         ParameterBoolean(self.FIELDS, "Keep table structure of line layer",
                          False))
     self.addParameter(
         ParameterBoolean(self.GEOMETRY, "Create geometry columns", True))
     self.addOutput(OutputVector(self.OUTPUT, "Output layer"))
Esempio n. 19
0
 def addCommonParameters(self):
     self.addParameter(
         ParameterBoolean(LasToolsAlgorithm.FIRST_ONLY,
                          "Keep first return only", False))
     self.addParameter(
         ParameterBoolean(LasToolsAlgorithm.LAST_ONLY,
                          "Keep last return only", False))
     self.addParameter(
         ParameterBoolean(LasToolsAlgorithm.SINGLE_RET_ONLY,
                          "Keep single returns only", False))
     self.addParameter(
         ParameterBoolean(LasToolsAlgorithm.DOUBLE_RET_ONLY,
                          "Keep double returns only", False))
Esempio n. 20
0
 def defineCharacteristics(self):
     self.name = "Translate (convert format)"
     self.group = "[GDAL] Conversion"
     self.addParameter(ParameterRaster(translate.INPUT, "Input layer", False))
     self.addParameter(ParameterNumber(translate.OUTSIZE, "Set the size of the output file (In pixels or %)", 1, None, 100))
     self.addParameter(ParameterBoolean(translate.OUTSIZE_PERC, "Output size is a percentage of input size", True))
     self.addParameter(ParameterString(translate.NO_DATA, "Nodata value, leave as none to take the nodata value from input", "none"))
     self.addParameter(ParameterSelection(translate.EXPAND, "Expand", ["none","gray","rgb","rgba"]))
     self.addParameter(ParameterCrs(translate.SRS, "Override the projection for the output file", None))
     self.addParameter(ParameterExtent(translate.PROJWIN, "Subset based on georeferenced coordinates"))
     self.addParameter(ParameterBoolean(translate.SDS, "Copy all subdatasets of this file to individual output files", False))
     self.addParameter(ParameterString(translate.EXTRA, "Additional creation parameters", ""))
     self.addOutput(OutputRaster(translate.OUTPUT, "Output layer"))
Esempio n. 21
0
 def defineCharacteristics(self):
     self.name = 'lasboundary'
     self.group = 'LAStools'
     self.addParametersVerboseGUI()
     self.addParametersPointInputGUI()
     self.addParametersFilter1ReturnClassFlagsGUI()
     self.addParameter(
         ParameterNumber(lasboundary.CONCAVITY, 'concavity', 0, None, 50.0))
     self.addParameter(
         ParameterBoolean(lasboundary.HOLES, 'interior holes', False))
     self.addParameter(
         ParameterBoolean(lasboundary.DISJOINT, 'disjoint polygon', False))
     self.addParametersVectorOutputGUI()
Esempio n. 22
0
 def defineCharacteristics(self):
     self.name = "lasboundary"
     self.group = "LAStools"
     self.addParametersVerboseGUI()
     self.addParametersPointInputGUI()
     self.addParametersFilter1ReturnClassFlagsGUI()
     self.addParameter(
         ParameterNumber(lasboundary.CONCAVITY, "concavity", 0, None, 50.0))
     self.addParameter(
         ParameterBoolean(lasboundary.HOLES, "interior holes", False))
     self.addParameter(
         ParameterBoolean(lasboundary.DISJOINT, "disjoint polygon", False))
     self.addParametersVectorOutputGUI()
Esempio n. 23
0
 def defineCharacteristics(self):
     self.name = "Nearblack"
     self.group = "[GDAL] Analysis"
     self.addParameter(ParameterRaster(nearblack.INPUT, "Input layer", False))
     self.addParameter(ParameterNumber(nearblack.NEAR, "How far from black (white)", 0, None, 15))
     self.addParameter(ParameterBoolean(nearblack.WHITE, "Search for nearly white pixels instead of nearly black", False))
     self.addOutput(OutputRaster(nearblack.OUTPUT, "Output layer"))
Esempio n. 24
0
 def defineCharacteristics(self):
     self.addBaseParameters()
     self.name = 'Add style'
     self.group = 'GeoServer management tools'
     self.addParameter(ParameterString(self.NAME, 'Style name'))
     self.addParameter(ParameterFile(self.STYLE, 'Style SLD file'))
     self.addParameter(ParameterBoolean(self.OVERWRITE, 'Overwrite'))
Esempio n. 25
0
 def defineCharacteristics(self):
     self.name = 'Eliminate sliver polygons'
     self.group = 'Vector geometry tools'
     self.addParameter(ParameterVector(self.INPUT, 'Input layer',
                       [ParameterVector.VECTOR_TYPE_POLYGON]))
     self.addParameter(ParameterBoolean(self.KEEPSELECTION,
                       'Use current selection in input layer (works only \
                       if called from toolbox)', False))
     self.addParameter(ParameterTableField(self.ATTRIBUTE,
                       'Selection attribute', self.INPUT))
     self.comparisons = [
         '==',
         '!=',
         '>',
         '>=',
         '<',
         '<=',
         'begins with',
         'contains',
         ]
     self.addParameter(ParameterSelection(self.COMPARISON, 'Comparison',
                       self.comparisons, default=0))
     self.addParameter(ParameterString(self.COMPARISONVALUE, 'Value',
                       default='0'))
     self.addParameter(ParameterSelection(self.MODE,
                       'Merge selection with the neighbouring polygon \
                       with the largest', self.MODES))
     self.addOutput(OutputVector(self.OUTPUT, 'Cleaned layer'))
Esempio n. 26
0
    def defineCharacteristics(self):
        self.name = 'D-Infinity Distance Up'
        self.cmdName = 'dinfdistup'
        self.group = 'Specialized Grid Analysis tools'

        self.addParameter(
            ParameterRaster(self.DINF_FLOW_DIR_GRID,
                            'D-Infinity Flow Direction Grid', False))
        self.addParameter(
            ParameterRaster(self.PIT_FILLED_GRID, 'Pit Filled Elevation Grid',
                            False))
        self.addParameter(ParameterRaster(self.SLOPE_GRID, 'Slope Grid',
                                          False))
        self.addParameter(
            ParameterSelection(self.STAT_METHOD, 'Statistical Method',
                               self.STATISTICS, 2))
        self.addParameter(
            ParameterSelection(self.DIST_METHOD, 'Distance Method',
                               self.DISTANCE, 1))
        self.addParameter(
            ParameterNumber(self.THRESHOLD, 'Proportion Threshold', 0, None,
                            0.5))
        self.addParameter(
            ParameterBoolean(self.EDGE_CONTAM, 'Check for edge contamination',
                             True))

        self.addOutput(
            OutputRaster(self.DIST_UP_GRID, 'D-Infinity Distance Up'))
Esempio n. 27
0
 def defineCharacteristics(self):
     self.name = 'Clip raster by mask layer'
     self.group = '[GDAL] Extraction'
     self.addParameter(ParameterRaster(self.INPUT, 'Input layer', False))
     self.addParameter(ParameterVector(self.MASK, 'Mask layer',
                       [ParameterVector.VECTOR_TYPE_POLYGON]))
     self.addParameter(ParameterString(self.NO_DATA,
         'Nodata value, leave as none to take the nodata value from input',
         'none'))
     self.addParameter(ParameterBoolean(self.ALPHA_BAND,
                       'Create and output alpha band', False))
     self.addParameter(ParameterBoolean(self.KEEP_RESOLUTION,
                       'Keep resolution of output raster', False))
     self.addParameter(ParameterString(self.EXTRA,
                       'Additional creation parameters', '', optional=True))
     self.addOutput(OutputRaster(self.OUTPUT, 'Output layer'))
Esempio n. 28
0
 def defineCharacteristics(self):
     self.addBaseParameters()
     self.name = "Add style"
     self.group = "GeoServer management tools"
     self.addParameter(ParameterString(self.NAME, "Style name"))
     self.addParameter(ParameterFile(self.STYLE, "Style SLD file"))
     self.addParameter(ParameterBoolean(self.OVERWRITE, "Overwrite"))
Esempio n. 29
0
    def defineCharacteristics(self):
        self.name = 'D-Infinity Distance Down'
        self.cmdName = 'dinfdistdown'
        self.group = 'Specialized Grid Analysis tools'

        self.addParameter(
            ParameterRaster(self.DINF_FLOW_DIR_GRID,
                            'D-Infinity Flow Direction Grid', False))
        self.addParameter(
            ParameterRaster(self.PIT_FILLED_GRID, 'Pit Filled Elevation Grid',
                            False))
        self.addParameter(
            ParameterRaster(self.STREAM_GRID, 'Stream Raster Grid', False))
        self.addParameter(
            ParameterRaster(self.WEIGHT_PATH_GRID, 'Weight Path Grid', True))
        self.addParameter(
            ParameterSelection(self.STAT_METHOD, 'Statistical Method',
                               self.STATISTICS, 2))
        self.addParameter(
            ParameterSelection(self.DIST_METHOD, 'Distance Method',
                               self.DISTANCE, 1))
        self.addParameter(
            ParameterBoolean(self.EDGE_CONTAM, 'Check for edge contamination',
                             True))

        self.addOutput(
            OutputRaster(self.DIST_DOWN_GRID,
                         'D-Infinity Drop to Stream Grid'))
Esempio n. 30
0
 def defineCharacteristics(self):
     self.name = "hugeFileClassify"
     self.group = "LAStools Pipelines"
     self.addParametersPointInputGUI()
     self.addParameter(
         ParameterNumber(hugeFileClassify.TILE_SIZE,
                         "tile size (side length of square tile)", 0, None,
                         1000.0))
     self.addParameter(
         ParameterNumber(hugeFileClassify.BUFFER,
                         "buffer around each tile (avoids edge artifacts)",
                         0, None, 25.0))
     self.addParameter(
         ParameterBoolean(hugeFileClassify.AIRBORNE, "airborne LiDAR",
                          True))
     self.addParameter(
         ParameterSelection(hugeFileClassify.TERRAIN, "terrain type",
                            hugeFileClassify.TERRAINS, 1))
     self.addParameter(
         ParameterSelection(hugeFileClassify.GRANULARITY, "preprocessing",
                            hugeFileClassify.GRANULARITIES, 1))
     self.addParametersTemporaryDirectoryGUI()
     self.addParametersPointOutputGUI()
     self.addParametersCoresGUI()
     self.addParametersVerboseGUI()
Esempio n. 31
0
    def defineCharacteristics(self):
        self.name = 'Concave hull (k-nearest neighbors)'
        self.group = 'Concave hull'

        self.addParameter(
            ParameterVector(self.INPUT, 'Input layer',
                            [ParameterVector.VECTOR_TYPE_ANY], False))
        self.addParameter(
            ParameterBoolean(self.SELECTED_ONLY,
                             'Use selected features only',
                             default=True))
        self.addParameter(
            ParameterNumber(self.KNEIGHBORS,
                            'Number of neighbors',
                            1,
                            default=3))
        self.addParameter(
            ParameterTableField(
                self.FIELD,
                'Field (optional, only used if creating concave hulls by classes)',
                self.INPUT,
                optional=True))
        self.addParameter(
            ParameterSelection(self.METHOD, 'Method', self.METHODS))
        self.addOutput(OutputVector(self.OUTPUT, 'Output layer'))
Esempio n. 32
0
    def defineCharacteristics(self):
        self.name = 'D-Infinity Transport Limited Accumulation - 2'
        self.cmdName = 'dinftranslimaccum'
        self.group = 'Specialized Grid Analysis tools'

        self.addParameter(
            ParameterRaster(self.DINF_FLOW_DIR_GRID,
                            'D-Infinity Flow Direction Grid', False))
        self.addParameter(
            ParameterRaster(self.SUPPLY_GRID, 'Supply Grid', False))
        self.addParameter(
            ParameterRaster(self.CAPACITY_GRID, 'Transport Capacity Grid',
                            False))
        self.addParameter(
            ParameterRaster(self.IN_CONCENTR_GRID, 'Input Concentration Grid',
                            False))
        self.addParameter(
            ParameterVector(self.OUTLETS_SHAPE, 'Outlets Shapefile',
                            [ParameterVector.VECTOR_TYPE_POINT], True))
        self.addParameter(
            ParameterBoolean(self.EDGE_CONTAM, 'Check for edge contamination',
                             True))

        self.addOutput(
            OutputRaster(self.TRANSP_LIM_ACCUM_GRID,
                         'Transport Limited Accumulation Grid'))
        self.addOutput(OutputRaster(self.DEPOSITION_GRID, 'Deposition Grid'))
        self.addOutput(
            OutputRaster(self.OUT_CONCENTR_GRID, 'Output Concentration Grid'))
Esempio n. 33
0
 def defineCharacteristics(self):
     self.name = 'Cloud Metrics'
     self.group = 'Points'
     self.addParameter(ParameterFile(self.INPUT, 'Input las layer'))
     self.addOutput(OutputFile(self.OUTPUT, 'Output file with tabular metric information', 'dtm'))
     above = ParameterString(self.ABOVE, 'Above', '', False)
     above.isAdvanced = True
     self.addParameter(above)
     firstImpulse = ParameterBoolean(self.FIRSTIMPULSE, 'First Impulse', False)
     firstImpulse.isAdvanced = True
     self.addParameter(firstImpulse)
     firstReturn = ParameterBoolean(self.FIRSTRETURN, 'First Return', False)
     firstReturn.isAdvanced = True
     self.addParameter(firstReturn)
     htmin = ParameterString(self.HTMIN, 'Htmin', '', False, True)
     htmin.isAdvanced = True
     self.addParameter(htmin)