Skip to content

Ambiguity with for each and an explicitly configured item #812

@jipclaassens

Description

@jipclaassens

In the list of vbo_gebruiksdoel_plus is already 'logistiek', but logistiek is also explicitly configured. GeoDMS evaluates this to discard the explicitly configure item, without me knowing it. I would like to see an error here.

container Footprint_perGebruiksdoel :=
	for_each_nedv(
		vbo_gebruiksdoel_plus/name
		,'IsLogistiekFunctie ? 0[m2PandFootprint] : (VBOopp_perGebruiksdoel/'+vbo_gebruiksdoel_plus/name+' / (vbo_opp * 1[units/pandUnit])) * footprint'
		, pand
		, m2PandFootprint
	), Descr = "per gebruiksdoel de pand footprint obv de share van vbo oppervlaktes in het pand"
{
	attribute<m2PandFootprint> Logistiek       (pand) := IsLogistiekFunctie ? footprint : 0[m2PandFootprint];
	attribute<m2PandFootprint> Utiliteit_Combi (pand) := ((sum(vbo/gebruiksdoelen_cbs/Utiliteit_Combi ? vbo/oppervlakte_trunc : (0/0)[m2_vbo], vbo/pand_rel) * 1[units/verblijfsobject]) / (vbo_opp * 1[units/pandUnit])) * footprint;
}

OVSRV09
C:\ProjDir_Jip\_Issues\RSopen_RVFriesland_issue812\cfg\main.dms

/SourceData/Vastgoed/BAG/PerJaar/Y2022/pand/Oppervlaktes/Footprint_perGebruiksdoel/Logistiek

Metadata

Metadata

Labels

OVSRV09testcase available on ovsrv09diagnosticsinhoud eventlog: warnings, progress report, errors, Error messages

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions