Define Processing Area

ERDAS IMAGINE Help

HGD_Variant
16.5.1
HGD_Product
ERDAS IMAGINE
HGD_Portfolio_Suite
Producer

Category: General

Default

Show All Ports

defineprocessingarea_operator_default

defineprocessingarea_operator_allports

Description

Defines the Processing Area for raster processing.

Double-click the operator to bring up the Define Processing Area dialog to set options. Input port visibility and requirements are highly interdependent, so it is much easier to use the dialog to set options rather than setting options from the Properties pane. Clicking OK from the dialog will set values on input ports, and show or hide ports depending on the options selected. Input ports may be connected afterward if necessary.

This operator replaces much of the functionality of the Processing Properties dialog, which has been deprecated. Any model created in earlier version of Spatial Modeler or Legacy Spatial Modeler that has Processing Properties defined will use the options set there until they are cleared. Options set in the Define Processing Area operator will not be used until the existing options defined in Processing Properties are deactivated by clicking the Clear button in the Processing Properties dialog.

If there is no Define Processing Area operator and no Processing Properties set, most operators that have multiple raster inputs will abide by the default rules as shown in the table below. Some operators such as Warp and Orthorectify define their processing area based on their inputs.

From the operator's context menu, Add Port can be used to add more raster inputs and raster outputs. If only one raster is needed, Remove Port can be used to remove Raster2In and Raster2Out. Each raster output will get data from the corresponding raster input, with any clipping, padding, or resampling applied as defined by the various inputs to this operator.

If no raster is input to this operator, it is still possible to define a processing area by setting both CellSize and WindowRule to "Specify" and providing the cell sizes and window coordinates. In this case, Raster1Out will contain a Boundary based on the options selected, but no raster layers. This raster output can be connected as the input to Data Generation operators such as Map X or Pixel Y.

Connections

Name

Objects Supported

Description

Shown by Default

Required

Default Behavior or Behavior if not Required

Raster1In

Raster

List (of Raster)

First Input Raster, or List of Rasters

checkmark_gray

If not present the processing area must be defined explicitly, that is, CellSize and WindowRule must both be set to "Specify".

Raster2In

Raster

List (of Raster)

Second Input Raster, or List or Rasters

checkmark_gray

Not used

GridRule

String

The rule for specifying the grid.

Acceptable Values are:

"Defined by call size and window"

"Highest resolution input"

"Lowest resolution input"

"Same as input"

"Align output corner to input corner"

"Align output origin to point"

checkmark_gray

checkmark_gray

"Defined by call size and window"

SameGridAsInput

Unsigned

Raster

The index of the input Raster port (starting with 1) whose grid to use, or the Raster to use for the grid.

Required if GridRule is "Same as input" or "Align output corner to input corner"

OriginX

Double

The x coordinate of the origin point.

Required if GridRule is "Align output origin to point"

OriginY

Double

The y coordinate of the origin point.

Required if GridRule is "Align output origin to point"

OriginUnits

String

The units of the origin point.

Required if GridRule is "Align output origin to point"

OriginAlignment

String

Whether to align the origin to the upper left or center of the specified point.

Acceptable Values are:

"Center of cell"

"Upper-left corner of cell"

Required if GridRule is "Align output origin to point"

Default is "Center of cell"

CellSizeRule

String

The rule for specifying the cell size.

Acceptable Values are:

"Minimum Input"

"Maximum input"

"Same as input"

"Specify"

checkmark_gray

Required if GridRule is "Defined by cell size and window" or "Align output origin to point"

Default is "Minimum Input"

SameCellSizeAsInput

Unsigned

Raster

The index of the input Raster port (starting with 1) whose cell size to use, or the Raster to use for the cell size.

Required if CellSizeRule is "Same as input"

Default Value is 1

CellSizeX

Double

The cell width.

Required if CellSizeRule is "Specify"

Default is 0. This should be changed to a positive value.

CellSizeY

Double

The cell height.

Required if CellSizeRule is "Specify"

Default is 0. This should be changed to a positive value.

CellSizeUnits

String

The units of the cell size.

Required if CellSizeRule is "Specify"

Default is "Meters"

SquarePixels

Bool

Whether to force square pixels. If true, square pixels will be used.

false

WindowRule

String

The rule for specifying the window.

Acceptable Values are:

"Intersection of Inputs"

"Union of inputs"

"Same as input"

"Specify"

checkmark_gray

checkmark_gray

"Intersection of Inputs"

SameWindowAsInput

Unsigned

Raster

The index of the input Raster port (starting with 1) whose window to use, or the Raster to use for the window.

Required if WindowRule is "Same as input"

Default is 1

CoordinateType

String

Whether the specified window is in map coordinates or file coordinates

Acceptable Values are:

"Map"

"File"

Required if WindowRule is "Specify"

Default is "Map"

UpperLeftX

Double

The upper left x coordinate of the window.

Required if WindowRule is "Specify"

UpperLeftY

Double

The upper left y coordinate of the window.

Required if WindowRule is "Specify"

LowerRightX

Double

The lower right x coordinate of the window.

Required if WindowRule is "Specify"

LowerRightY

Double

The lower right y coordinate of the window.

Required if WindowRule is "Specify"

WindowAlignment

String

Whether the extents will be calculated based on pixel centers of pixel edges.

Acceptable Values are:

"Center of cell"

"Edges of cell"

"Center of cell"

CRSRule

String

The rule for specifying the projection.

Acceptable Values are:

"Default"

"Same as input"

"Specify"

checkmark_gray

checkmark_gray

"Default"

SameCRSAsInput

Unsigned

Raster

The index of the input Raster port (starting with 1) whose CRS to use, or the Raster to use for the CRS.

Required if CRSRule is "Same as input"

CRS

CoordinateReferenceSystemID

The output 2D CRS.

Required if CRSRule is "Specify"

Example Model

Below is an example of how this operator might be used in a model. In this example, the WindowRule is set to "Union of Inputs", and the CellSizeRule is set to "Specify". The cell size is set to 10 by 10 meters. The resulting Raster Output will cover the union of the areas of the three inputs, with the raster data resampled to 10 meter square pixels.

In the example below the WindowRule is set to "Specify", the CoordinateType is set to "Map", and the coordinates of the window are read from a Boundary.

See also the the examples for the Map X operator, which show how to replace Processing Properties on an older model with a Define Processing Area operator.