ImageEnvelope

提取图像信封。

描述

构建包含图像包络多边形的矢量数据。对于某些投影非常有用,您可以使用sr参数设置具有更多点的多边形。此筛选器支持用户指定的输出投影。如果未定义投影,将使用标准的WGS84投影。

参数

Input Image -in image Mandatory
Input image filename.

Output Vector Data -out vectorfile Mandatory
Vector data file containing the envelope.

Sampling Rate -sr int Default value: 0
Sampling rate for image edges (in pixel).

高程管理

这组参数允许管理高程值。

DEM directory -elev.dem directory
This parameter allows selecting a directory containing Digital Elevation Model files. Note that this directory should contain only DEM files. Unexpected behaviour might occurs if other images are found in this directory. Input DEM tiles should be in a raster format supported by GDAL.

Geoid File -elev.geoid filename [dtype]
Use a geoid grid to get the height above the ellipsoid in case there is no DEM available, no coverage for some points or pixels with no_data in the DEM tiles. A version of the geoid can be found on the OTB website (egm96.grd and egm96.grd.hdr at https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/tree/master/Data/Input/DEM).

Default elevation -elev.default float Default value: 0
This parameter allows setting the default height above ellipsoid when there is no DEM available, no coverage for some points or pixels with no_data in the DEM tiles, and no geoid file has been set. This is also used by some application as an average elevation value.


Projection -proj string
Projection to be used to compute the envelope (default is WGS84)

实例

从命令行执行以下操作:

otbcli_ImageEnvelope -in QB_TOULOUSE_MUL_Extract_500_500.tif -out ImageEnvelope.shp

来自Python的评论:

import otbApplication

app = otbApplication.Registry.CreateApplication("ImageEnvelope")

app.SetParameterString("in", "QB_TOULOUSE_MUL_Extract_500_500.tif")
app.SetParameterString("out", "ImageEnvelope.shp")

app.ExecuteAndWriteOutput()