Sub-map of raster map

Command line (1)

The sub-map of raster map operation can be directly executed by typing one of the following expressions on the command line of the Main window:

  

OUTMAP

=

MapSubMap(InputRasterMap, start row, start col, nr rows, nr cols)

OUTMAP

=

MapSubMap(InputRasterMap, start row, start col, nr rows, nr cols, NewGeoref)

OUTMAP

=

MapSubMapCorners(InputRasterMap, start row, start col, end row, end col)

OUTMAP

=

MapSubMapCorners(InputRasterMap, start row, start col, end row, end col, NewGeoref)

OUTMAP

=

MapSubMapCoords(InputRasterMap, start X-coord, start Y-coord, end X-coord, end Y-coord)

OUTMAP

=

MapSubMapCoords(InputRasterMap, start X-coord, start Y-coord, end X-coord, end Y-coord, NewGeoref)

where:

OUTMAP

is the name of your output raster map.

MapSubMap

is the command to start the sub-map of raster map operation;
specify the start line and column number and the amount of rows and columns that should be copied.

MapSubMapCorners

is the command to start the sub-map of raster map operation;
specify the start line and column number and the end line and end column number.

MapSubMapCoords

is the command to start the sub-map of raster map operation;
specify the start X- and Y-coordinate and the end X- and Y-coordinate.

InputRasterMap

is the name of the input raster map.

NewGeoref

is an optional parameter to specify a name for the output georeference; if not specified, the output georeference will obtain the same name as the output map.

 

For MapSubmap:

start row

is the line number in the input map where copying should start (top row).

start col

is the column number in the input map where copying should start (left col).

nr rows

are the number of rows that are to be copied from the input map starting from 'start row'.

nr cols

are the number of columns that are to be copied from the input map starting from 'start col'.

 

For MapSubmapCorners:

start row

is the line number in the input map where copying should start (top row).

start col

is the column number in the input map where copying should start (left col).

end row

is the line number in the input map where copying should end (bottom row).

end col

is the column number in the input map where copying should end (right col).

 

For MapSubmapCoords:

start X-coord

is the X-coordinate in the input map where copying should start (left X or right X).

start Y-coord

is the Y-coordinate in the input map where copying should start (top Y or bottom Y).

end X-coord

is the X-coordinate in the input map where copying should end; the X-coord opposite to 'start X-coord'.

end Y-coord

is the Y-coordinate in the input map where copying should end; the Y-coord opposite to 'start Y-coord'.

 

Tip: To use this operation on all raster maps in a map list, see Sub-map of raster map : command line (2).

When the definition symbol = is used, a dependent output map is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map has been calculated.

Furthermore, a georeference is created with the same name as the output map, unless you specify a new georeference name yourself.

See also: