ObjectVision / GeoDMS

Source code for the GeoDMS software
Other
7 stars 1 forks source link

Add value composition to for_each #742

Closed jipclaassens closed 1 month ago

jipclaassens commented 1 month ago

image

unit<uint8> Continents := Classifications/Continents
, storagename = "= propvalue(store_Continents, 'storagename')", storagereadonly = "True"
{
    attribute<LatLong>  geometry       (poly);
    attribute<string>   name                  := Classifications/Continents/name;
    attribute<.>        per_grid     (domain) := poly2grid(geometry , domain);
    attribute<World>    World_rel             := const(0[WOrld],.);

    container V := for_each_nedv(AsItemName(name), String(ID(.))+'[..]', void, .);

    container perContinent := 
        for_each_nedv(
            name
            , 'geometry[V/'+name+']'
            , void
            , LatLong
        );
}
MaartenHilferink commented 1 month ago

image

MaartenHilferink commented 1 month ago

Alternative workaround: image

jipclaassens commented 1 month ago

@MaartenHilferink could you also add this to the documentation?

https://github.com/ObjectVision/GeoDMS/wiki/For_each

MaartenHilferink commented 1 month ago

TODO: documentatie aanpassen op vcp en vcs

MaartenHilferink commented 1 month ago

see additions in