Skip to content

IntegrityCheck

mtbeek32 edited this page Jan 2, 2023 · 9 revisions

introduction

In modelling, especially when complexity rises, errors are easily made.

The GeoDMS contains ways of assisting modeller's on tracking down and solving errors, think for instance on Unit_metric consistency.

Another useful feature is the configuration of integrity checks for data items

An IntegrityCheck is used to check if an (intermediate) result meets certain requirements, for instance that all values need to be within a certain range or that no missing data may occur.

examples

No missing data

attribute city_rel (neighborhood) := rlookup(city_code, regions/city/city_code), IntegrityCheck = "isDefined(city_rel)";

The attributes uses the lookup function to find the index numbers of the regions/city domain unit, the configured IntegrityCheck checks if for each neighborhood a city is found.

In such an IntegrityCheck it is allowed to refer to the item for which the IntegrityCheck is configured, the GeoDMS has a workaround to work with such self references.

Recent version

container root: IntegrityCheck = "GeoDmsVersion() >= 7.123"

This IntegrityCheck at the root container of the configuration checks if the configuration is opened in a GeoDMS version 7.123 or later.

Clone this wiki locally