Case parameter
Each template has at least one case parameter.
Case parameters are the arguments of a template. Case parameters are configured as the first set of subitems of the template.
Case parameters in the GeoDMS can be any tree-item (not only parameters). They are not explicitly marked in the GeoDMS syntax. Therefore it is a good habit to mark the begin and the end of the case parameters with comments, as in this example.
Template CombineDistWithANDcond { // begin case parameters attribute<meter> dist1 (bag/vbo); attribute<meter> dist2 (bag/vbo); // end case parameters attribute>meter> farest_dist (bag/vbo) := max_elem(dist1, dist1); container aggregations := Aggtemplate(farest_dist); }
In this example dist1 and dist2 are the case parameters:
To actually use this template to calculate the CombineDistWithANDcond, values need to be set for the dist1 and dist2 attributes.
With a case-instantiation, values are set for each case variable and the template is used in a expression.
default values
An expression or primary data can be configured for a case parameter. The default values are then used if in the case instantiation no values are set for the case parameter.
If case parameters are set in the case instantiation, they will overrule the default values.