Python script preCutting
See Also
python.preCutting

Aim of module

proxy class for packages.python.preCutting

General description

Parameters
shpremark : optional Shape file containing the polygons used as cutting limits [mandatory].
pickpolyremark : optional Choice of the target polygons if not all polygons shall be cut [optional]. <MI - see above>
bufferremark : optional Buffering distance around the polygon in meters [optional].
vectorpathremark : optional Path where the Vector files to cut are located [mandatory if no rasterpath is specified]. Actually only ODM files are supported. <MI - see above>
skipIfExistsremark : optional Skip processing if result already exists. [1=skip(default) | 0=overwrite]
roundingremark : optional Options for rounding the results to exakt pixel positions ["corner"=default | "center"
attremark : optional Name of the Shape file attribute that will be part of the export filename [default = id].
exportremark : optional Export [path][prefix of filename].[extension] for the resulting files [estimate].
resamplingremark : optional Valid opals input for the Grid resampling method ["bilinear"=default | "bicubic" | "nearestNeighbour"].
oformatremark : optional Format description for the OPALS -oFormat flag: GDAL driver for Raster, file format or XML file for Vector [estimable].
rasterpathremark : optional Path where the Raster files to cut are located [mandatory if no vectorpath is specified]. <MI - see above>
formularemark : optional Formula for the combination of overlapping Raster files in opalsAlgebra [default = mean(r)].
truepolyremark : optional By default, only the polygon bounding box of rasters is cut out. With this option, it is possible to cut out the true polygon shape. Since the process is more time consuming, it should only be chosen for non-rectangular polygons. [1=true polygon | 0=bounding box (default)]
logLevelremark : optional Control over the amount of feedback during processing. [1=full feedback(default) | 0=minimal feedback
See Also
Python script preCutting

Parameter description

Polygon Shape file Options
Settings concerning the polygons to cut out.

-s/--shapeFile Shape file containing the polygons used as cutting limits [mandatory].
Type :
Remark :Optional
Description:
-a/--attribute Name of the Shape file attribute that will be part of the export filename [default = id].
Type :
Remark :Optional, default: id
Description:
-p/--pick Choice of the target polygons if not all polygons shall be cut [optional]. <MI - see above>
Type :
Remark :Optional
Description:
-b/--buffer Buffering distance around the polygon in meters [optional].
Type :
Remark :Optional, default: 0
Description:
Input data Options
Settings concerning type an location of the input data.

-v/--vector Path where the Vector files to cut are located [mandatory if no rasterpath is specified]. Actually only ODM files are supported. <MI - see above>
Type :
Remark :Optional
Description:
-r/--raster Path where the Raster files to cut are located [mandatory if no vectorpath is specified]. <MI - see above>
Type :
Remark :Optional
Description:
Raster cutting Options
Settings concerning the processing of raster data.

-t/--truePolygons By default, only the polygon bounding box of rasters is cut out. With this option, it is possible to cut out the true polygon shape. Since the process is more time consuming, it should only be chosen for non-rectangular polygons. [1=true polygon | 0=bounding box (default)]
Type : Integer
Remark :Optional, default: 0
Description:
-f/--formula Formula for the combination of overlapping Raster files in opalsAlgebra [default = mean(r)].
Type :
Remark :Optional, default: mean(r)
Description:
-m/--resamplingMethod Valid opals input for the Grid resampling method ["bilinear"=default | "bicubic" | "nearestNeighbour"].
Type :
Remark :Optional, default: bilinear
Description:
-c/--centerCorner Options for rounding the results to exakt pixel positions ["corner"=default | "center"
Type :
Remark :Optional, default: corner
Description:
Exporting Options
Settings concerning type and location of the resulting files.

-e/--export Export [path]\[prefix of filename].[extension] for the resulting files [estimate].
Type :
Remark :Optional
Description:
-o/--oformat Format description for the OPALS -oFormat flag: GDAL driver for Raster, file format or XML file for Vector [estimable].
Type :
Remark :Optional
Description:
-x/--skipIfExists Skip processing if result already exists. [1=skip(default) | 0=overwrite]
Type : Integer
Remark :Optional, default: 1
Description:
-l/--logLevel Control over the amount of feedback during processing. [1=full feedback(default) | 0=minimal feedback
Type : Integer
Remark :Optional, default: 1
Description:
Example for an input path (-r or -v flag)
U:\Tiles\*.tif;U:\OtherTiles\;U:\LastFolder\poly*.tif
Example for -e flag usage (Each part -path, prefix or extension- can be left out)
U:\results\polygons\cut\myPrefix.jpg

Examples

To be written.