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;
|
MapSubMapCorners |
is the command to start the sub-map of raster map operation;
|
MapSubMapCoords |
is the command to start the sub-map of raster map operation;
|
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:
Sub-map of raster map : command line (2)