This is an old revision of the document!


PHP's gd library is missing or unable to create PNG images

Useful Tips

Increasing Performance

To maximize the performance of Dinamica EGO execution, follow the guidelines below:

  • Make sure the GUI option “Tools → Options | Advanced | Detect the number of processors available” is selected. If your are running your models using the Console Launcher Tool, make sure the “Processors” option for each model is set to 0.
  • If you have enough RAM memory, make sure the GUI option “Tools → Options | Advanced | Disable raster map swapping” is checked. On the Console Launcher Tool, check the Disable map swapping option. It will force EGO to use memory (not the hard disc) to do most calculations. It also allows the use of parallel algorithms by several operators. Beware of memory limits whether you are using a Windows XP/Vista/7 32 bit SO.
  • Make sure the “MinGW for Dinamica EGO” extension is installed and the GUI option “Tools → Options | Advanced | Disable native expression compilation” is unchecked. On the Console Launcher, uncheck “Disable expression compilation”.
  • Make sure the GUI option “Tools → Options | General | Main level” is set to Result.
  • Avoid the definition of maps using cell type “1 Bit Integer”. This cell type saves memory, but it also has a huge negative impact in performance.
  • Keep updated the Dinamica EGO installed in your system.

File Paths

The Dinamica EGO interface shows absolute filepaths for easier reading, but they are relative indeed. So, to easily change the location of a model, keep the same path between the script file (ego or xml) and your data directory. This will work as expected.

Another way is to use the Workdir functor where you set a working directory and every Load and Save functors inside it will be relative to the directory you have set. You can use several Workdir in a the same model. See the example located in the folder Examples\run_lucc_northern_mato_grosso\run_roads_with_comments_and_workdirs of the Dinamica examples.