Python script preCutting
Table of Contents
- See Also
- python.preCutting
Aim of module
proxy class for packages.python.preCutting
General description
- Parameters
-
shp remark : optional Shape file containing the polygons used as cutting limits [mandatory]. pickpoly remark : optional Choice of the target polygons if not all polygons shall be cut [optional]. <MI - see above> buffer remark : optional Buffering distance around the polygon in meters [optional]. vectorpath remark : 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> skipIfExists remark : optional Skip processing if result already exists. [1=skip(default) | 0=overwrite] rounding remark : optional Options for rounding the results to exakt pixel positions ["corner"=default | "center" att remark : optional Name of the Shape file attribute that will be part of the export filename [default = id]. export remark : optional Export [path][prefix of filename].[extension] for the resulting files [estimate]. resampling remark : optional Valid opals input for the Grid resampling method ["bilinear"=default | "bicubic" | "nearestNeighbour"]. oformat remark : optional Format description for the OPALS -oFormat flag: GDAL driver for Raster, file format or XML file for Vector [estimable]. rasterpath remark : optional Path where the Raster files to cut are located [mandatory if no vectorpath is specified]. <MI - see above> formula remark : optional Formula for the combination of overlapping Raster files in opalsAlgebra [default = mean(r)]. truepoly remark : 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)] logLevel remark : 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:
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:
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:
Remark :Optional
Description:
-b/--buffer Buffering distance around the polygon in meters [optional].
Type :
Remark :Optional, default: 0
Description:
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:
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:
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:
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:
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:
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:
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:
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:
Remark :Optional
Description:
-x/--skipIfExists Skip processing if result already exists. [1=skip(default) | 0=overwrite]
Type : Integer
Remark :Optional, default: 1
Description:
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:
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.
