GME

Geospatial Modelling Environment

setparameter (Sets GME Parameter Values)

Provides the user with a way of changing important GME system variables that control the behaviour of GME

Description

Provides the user with a way of changing important GME system variables that control the behaviour of GME. The available parameters are:

  1. "interpretonly". If TRUE, the GME interface will interpret command text but will not run the commands. Instead, the interpreted commands are written to the output window. This is useful for testing scripts that use any of the strategic commands, functions and clauses.
  2. "maxattempts". The default number of maximum attempts to complete an algorithm is 1000000. For computationally intensive algorithms this means you can wait a long time for a mis-parameterized algorithm to fail. If you reduce this value it is recommended that you do not reduce it below 10000. This settings may be particularly useful when generating random points while enforcing a minimum distance between points (this can lead to a problem with no solution).
  3. "debug". If TRUE, you will activate my debugging message system, which provides slightly a slightly more detailed stack trace. This is useful for providing detailed information on a problem you have encountered.

Syntax

setparameter([interpretonly], [maxattempts], [debug]);

[interpretonly](TRUE/FALSE) if TRUE, the GME interface interprets command text but does not execute the commands (default=FALSE)
[maxattempts]an integer that controls the maximum number of attempts an algorithm will make to solve a problem
[debug](TRUE/FALSE) if TRUE, the debugging message system is activated (default=FALSE)

Example

setparameter(interpretonly=TRUE);

setparameter(interpretonly=FALSE);

setparameter(maxattempts=10000);


Messages

Please consider making a purchase to support the continued development of these tools  Read more...

Tips on how to use this interface efficiently  Read more...

Links

Open Source GIS

Copyright © 2001-2014 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn