Skip to content

Commit

Permalink
#230 supplemental
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenHilferink committed Feb 21, 2025
1 parent 0876f78 commit e46c3fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cfg/main/Allocatie/StartState_metBAGnieuwbouw.dms
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
container StartState_metBAGnieuwbouw :=
for_each_nedv(
Sector/XSubsector/name
, 'max_elem(MakeDefined(StartState/'+Sector/XSubsector/name+' + collect_by_cond(CompactedAdminDomain, AdminDomain/IsCompactedDomain, BaseData/StartState/BAG_nieuwbouw/'+Sector/XSubsector/name+'), 0f), 0f)'
, 'max_elem(MakeDefined(StartState/'+Sector/XSubsector/name+' + BaseData/StartState/BAG_nieuwbouw/'+Sector/XSubsector/name+', 0f), 0f)'
, CompactedAdminDomain
, float32
), using = "CaseClassifications/Vastgoed/OP"
{
// pas op: dat er nieuwbouw van bepaalde subsector heeft plaatsgevonden betekent niet dat betreffende subsector dominant is in een cel
attribute<Sector/XSubsector> Subsector_rel_sw_case (CompactedAdminDomain) :=
='switch(
'+AsList('case(collect_by_cond(CompactedAdminDomain, AdminDomain/IsCompactedDomain, BaseData/StartState/BAG_nieuwbouw/'+Sector/XSubsector/name+') > 0f, '+string(id(Sector/XSubsector))+'[Sector/XSubsector])', ',')+'
'+AsList('case(BaseData/StartState/BAG_nieuwbouw/'+Sector/XSubsector/name+' > 0f, '+string(id(Sector/XSubsector))+'[Sector/XSubsector])', ',')+'
, (0f/0f)[Sector/XSubsector]
)';

Expand Down
8 changes: 4 additions & 4 deletions cfg/main/BaseData/BAG_Nieuwbouw.dms
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,17 @@ container BAG_nieuwbouw
Vastgoed/vbo_gebruiksdoel_plus/name
, 'sum(
recollect_by_cond(Pand_Nieuwbouw_Selection_condition, Footprint_perGebruiksdoel/'+Vastgoed/vbo_gebruiksdoel_plus/name+', 0f)
[BAG_RecentsteJaar_pand/ToedelingsMatrix/pand_rel] * BAG_RecentsteJaar_pand/ToedelingsMatrix/ToedelingPand, BAG_RecentsteJaar_pand/ToedelingsMatrix/AdminDomain_rel
[BAG_RecentsteJaar_pand/ToedelingsMatrix/pand_rel] * BAG_RecentsteJaar_pand/ToedelingsMatrix/ToedelingPand, BAG_RecentsteJaar_pand/ToedelingsMatrix/CompactedAdminDomain_rel
)[m2PandFootprint]'
, AdminDomain
, CompactedAdminDomain
, m2PandFootprint
);

container PerJobs6 :=
for_each_nedv(
Actor/Jobs6/name
, replace(Actor/Jobs6/vbo_gebruiksdoel_plus_ref, '@', 'PerGebruiksdoel/', '#', '')
, AdminDomain
, CompactedAdminDomain
, m2PandFootprint
);
}
Expand Down Expand Up @@ -256,7 +256,7 @@ container BAG_nieuwbouw

container Zon
{
attribute<MW> Totaal (AdminDomain) := const(0[MW], AdminDomain);
attribute<MW> Totaal (CompactedAdminDomain) := const(0[MW], CompactedAdminDomain);
}

container CalcNieuwbouw_perDoel := for_each_ne(vastgoed/vbo_gebruiksdoel_plus/name, 'CalcNieuwbouw_perDoel_T('+quote(vastgoed/vbo_gebruiksdoel_plus/name)+')');
Expand Down

0 comments on commit e46c3fc

Please sign in to comment.