-
Notifications
You must be signed in to change notification settings - Fork 1
Union_data
Relational functions union_data
- union_data(domain unit, a, b, .. n)
union_data(domain unit, a, b, .. n) results in a new attribute with as domain unit the first argument: domainunit.
The resulting attribute contains the values of the data items a, b, .., n.
The first argument domainunit, is often made with the union_unit function.
The union_data function results in an attribute with as values unit the values units of data items a, b, ..n and as domain unit the first argument of the function (domainunit). In other words, it appends b to a and then c to a and b, etc.
union_data(newdomain, att_old_domain) can be used to convert attributes from a source to a target domain unit.
- unit domainunit with value type from the group CanBeDomainUnit
- data items a, b, ... n with Numeric, Point, uint2, uint4, bool or string value type
- The values unit of data items a, b, ... n must match.
unit<uint32> HollandCity := union_unit(NHCity, ZHCity)
{
attribute<string> name := union_data(., NHCity/name, ZH/City/name);
}
HollandCity/name |
---|
Amsterdam |
Haarlem |
Alkmaar |
Rotterdam |
DenHaag |
Leiden |
Dordrecht |
Leiden |
domain HollandCity, nr of rows = 8
NHCity/name |
---|
Amsterdam |
Haarlem |
Alkmaar |
domain NHCity, nr of rows = 3
ZHCity/name |
---|
Rotterdam |
DenHaag |
Leiden |
Dordrecht |
Leiden |
domain ZHCity, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.