Crop Raster Files
I am trying to develop scripts to assist in the compilation of map pieces into a large map. Using the DIR_LOOP_START and IMPORT function, I can load the map pieces into the general location using a suitable gcp file. The map pieces will then be manually checked and their location adjusted to match the mapping grid. I then need to crop the map element to a known shape. I tried to used the IMPORT_ASCII function to load the coordinates and planned to use the SET_LAYER_OPTIONS to perform the crop. However the LAYER function does not seem to support this approach; requiring a polygon defined with the DEFINE_SHAPE command to perform the crop. However, there seems no way to import data. Is there way to import XY coordinates to be used by the DEFINE_SHAPE command or are there any other function I can use to crop the raster elements?