How to Execute Map Algebra

Next, it will be presented the procedures to edit, execute and change a program using LEGAL.

Creating and Executing a Program using Legal:

  • Activate a Database( ) and a Project ( ).
  • click on <Analysis> <Legal..> in the Main Menu. The "Algebra" window is presented;
  • In the "Algebra" window click on <Directory...> to select the folder where the program will be stored, or type the path and click on the <CR>. It is recommended to create a folder inside the database folder, so when a backup is created all the programs will be stored with the Database;
  • In the Name text box type the Program's name and click on the <Create...> button. The "Model Editor" window is presented;
  • In the "Model Editor" window type the program's name;
  • Click on the <Save> button or the <Save as...> button to store the typed program;
  • In the "Algebra" window click on the <Apply> button;

NOTE: If there are syntax errors or invalid commands, the message "Syntax error in program. Verify errors in the console!" will be presented. When clicking on the OK button, the "Model Editor " window will be presented, displaying the errors and the corresponding line number. Make the required corrections in the program, save them, and try to execute the program again.

After executing the program, the results, as the information layer and cadastral objects, can be verified in the "Control Panel".

Changing the Legal Program:

  • Select, in the Program List, the program you want to change;
  • Click on <Edit...>;
  • In the "Model Editor" window, make the desired changes and click on the <Save> button, or the <Save as...> button.

Programming in Legal - Maps Algebra

See also:

SPRING analysis option
Numerical Modeling
Image Processing