Extending Spatial Modeler with IMAGINE Command Line Tools

0

With each update to the IMAGINE Spatial Modeler we add more traditional remote sensing capabilities. There are, however, many tools that have not yet been integrated.  Fortunately, you may be able to use some of these tools in your Spatial Model today by harnessing the power of the CommandLine operator. You can use this tool to pass simple data (file names, numbers and strings) to a command line program and then open the output file for further processing.command line model

The above example demonstrates a simple Spatial Model that will apply a color table to two input images and then use MosaicPro to create a mosaic of these images. The final mosaic will then be displayed as a preview.

The steps to using a command line program in Spatial Modeler are as follows:

  1. Drag a CommandLine operator into your Spatial Model.
  2. Double click to open the operator and choose the exe for the command line tool you want to use.
  3. Add input ports for the input parameters you wish to set from Spatial Modeler inputs. In the example above, we added ports for the file names of the images to mosaic.
  4. Add an output port for the output file name.
  5. Create the argument string in the Arguments box by manually adding parameters or double clicking on items in the Ports list to add them at the current cursor location.command line
  6. The arguments in this example add the two input images (computing active area by corner using the first layer and a min and max background value of 0), name the output file and direct MosaicPro to use Geometry-based seam lines.
  7. Close the Command Operator dialog and connect the input and output ports.

You can find documentation for many IMAGINE command line tools by searching the Online Help. This  documentation will help you to understand which parameters need to be passed in to the command line to generate your desired results.

Share.

About Author

Steve du Plessis

Steve du Plessis began his career in production photogrammetry in South Africa. In 1999, Steve joined ERDAS in the Atlanta headquarters as a Technical Marketing Manager, then as a Regional Manager for Europe Africa and Middle East. Steve later moved to the Singapore office, serving as the SE Asia Regional Manager, and then to the Perth, Australia office where he managed a direct sales territory. In 2010, Steve returned to Atlanta as the Photogrammetry Product Line Director then Global Product Line Executive and now Steve works with Intergraph Government Services, servicing US Federal accounts. Steve has more than 15 years of experience in the geospatial industry.

Leave A Reply