-
Notifications
You must be signed in to change notification settings - Fork 1
Unique Values
mtbeek32 edited this page Jan 27, 2023
·
4 revisions
Configuration examples Unique Values
This example shows how to read data from a .csv file and make a domain unit with the unique values of an attribute.
container SourceData { unit<uint32> indicators : StorageName = "%SourceDataProjDir%/Indicators/datapacakage.csv" , StorageType = "gdal.vect" , StorageReadOnly = "True" { attribute<string> HeatOption; // HeatOption must be an attribute in the csv file attribute<HeatOptionUnique> HeatOptionUnique_rel := rlookup(HeatOption, HeatOptionUnique/values); } unit<uint32> HeatOptionUnique := unique(indicators/HeatOption) { attribute<uint32> number := pcount(indicators/HeatOptionUnique_rel); } }
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.