4.4.7 Image Envelope

Extracts an image envelope.

Detailed description

Build a vector data containing the polygon of the image envelope.

Parameters

This section describes in details the parameters available for this application. Table 4.58, page 545 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is ImageEnvelope.





Parameter key

Parameter type

Parameter description




in

Input image

Input Image

out

Output vector data

Output Vector Data

sr

Int

Sampling Rate

elev

Group

Elevation management

elev.dem

Directory

DEM directory

elev.geoid

Input File name

Geoid File

elev.default

Float

Default elevation

proj

String

Projection

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.58: Parameters table for Image Envelope.

Input Image Input image.

Output Vector Data Vector data file containing the envelope

Sampling Rate Sampling rate for image edges (in pixel)

Elevation management This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff. DownloadSRTMTiles application could be a useful tool to list/download tiles related to a product.

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

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

To run this example in command-line, use the following:

otbcli_ImageEnvelope -in QB_TOULOUSE_MUL_Extract_500_500.tif -out ImageEnvelope.shp

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the ImageEnvelope application 
ImageEnvelope = otbApplication.Registry.CreateApplication("ImageEnvelope") 
 
# The following lines set all the application parameters: 
ImageEnvelope.SetParameterString("in", "QB_TOULOUSE_MUL_Extract_500_500.tif") 
 
ImageEnvelope.SetParameterString("out", "ImageEnvelope.shp") 
 
# The following line execute the application 
ImageEnvelope.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.