Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguity with for each and an explicitly configured item #812

Closed
jipclaassens opened this issue Oct 14, 2024 · 3 comments
Closed

Ambiguity with for each and an explicitly configured item #812

jipclaassens opened this issue Oct 14, 2024 · 3 comments
Assignees
Labels
diagnostics inhoud eventlog: warnings, progress report, errors, Error messages OVSRV09 testcase available on ovsrv09 PBL
Milestone

Comments

@jipclaassens
Copy link
Member

jipclaassens commented Oct 14, 2024

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

@jipclaassens jipclaassens added OVSRV09 testcase available on ovsrv09 diagnostics inhoud eventlog: warnings, progress report, errors, Error messages PBL labels Oct 14, 2024
@MaartenHilferink
Copy link
Collaborator

MaartenHilferink commented Nov 4, 2024

for_each: Foutmelding gewenst of juist: specifiek voor generiek
select_with_attr: nu wel foutmelding, zou daar ook specifiek voor generiek kunnen gelden.

@jipclaassens jipclaassens removed the bug label Jan 27, 2025
@MaartenHilferink MaartenHilferink added this to the v17.0 milestone Feb 11, 2025
@jipclaassens
Copy link
Member Author

Image

@jipclaassens
Copy link
Member Author

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostics inhoud eventlog: warnings, progress report, errors, Error messages OVSRV09 testcase available on ovsrv09 PBL
Projects
None yet
Development

No branches or pull requests

2 participants