GIS ObjectLand. User Manual
previouscontentsnext / Filters / Chapter 36. Using table information about features in filters / Relations

Variants of relations

If the feature type is linked with a table by a multiple link, for specifying a simple condition it is not enough just to indicate the relation which should be satisfied for the field of linked record. It is also necessary to specify how the situation should be interpreted when the present relation is satisfied for some linked records, and for other records linked with the same feature it is not satisfied. When the simple condition is defined, ObjectLand allows the user to specify if the relation should be satisfied for all linked records or it is enough if the condition was satisfied for one record at least. Apart from that, possibilities of building complex filters are considerably extended if one can use not only field values of individual records in simple conditions, but such “integral” characteristics as total value of the specified field of all records linked with the feature, average value of the field, minimal or maximal field value as well. All these possibilities can be used when specifying the simple condition using the appropriate relation variant.

There are seven variants of relations in ObjectLand.

Table 36-2 shows all possible variants of relations for different types of relations and types of fields of the linked table.

Relations

Field types

Variants

comparison,
diapasons,
intervals

integer, real

ANY

MINIMUM

SUM

EACH

MAXIMUM

AVERAGE

date, time, timestamp

ANY
MINIMUM

EACH

MAXIMUM

string, Boolean

ANY

EACH

no

COUNT

matching the pattern

date, time, timestamp, string

ANY

EACH

existence of value

integer, real, date, time, timestamp, string, Boolean

ANY

EACH

existence of record

no

ANY

Table 36-2. Variants of relations in filter simple conditions

It can be seen from the table that the only variant admissible for all types of relations and for any types of record fields is the variant ANY. This variant is accepted by the system by default if the user didn't choose some other variant.

In case of a unique link between feature type and a table the notion of relation variant is useless. It is evident that in case of unique linked record the variants ANY, EACH, SUM, AVERAGE, MINIMUM and MAXIMUM will always give the same results, and the variant COUNT can be replaced by the relation of existence of record in this case. In this connection, if a table with unique link is selected in the course of simple condition input, the field of selecting the variant is not present in the window pane.

previoustopnext