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

Use a web API to request building attributes #47

Open
Ylannl opened this issue Feb 26, 2021 · 1 comment
Open

Use a web API to request building attributes #47

Ylannl opened this issue Feb 26, 2021 · 1 comment

Comments

@Ylannl
Copy link
Member

Ylannl commented Feb 26, 2021

Instead of relying on the B3DM attributes, which does not contain all the 3DBAG attributes. In addition we could also show the standard BAG attributes.

@Ylannl
Copy link
Member Author

Ylannl commented Mar 22, 2021

This can be achieved through WFS based on the identificatie attribute, eg:

let url = "https://data.3dbag.nl/api/BAG3D_v2/wfs?service=wfs&version=2.0.0&request=GetFeature&typeNames=BAG3D_v2:lod22&outputFormat=json&filter=";
let filter = "<Filter><PropertyIsEqualTo><PropertyName>identificatie</PropertyName><Literal>NL.IMBAG.Pand.0329100000002936</Literal></PropertyIsEqualTo></Filter>";
url = url + encodeURIComponent( filter );

fetch( url )
.then( response => response.json() )
.then( data => console.log( data ) );
}

But this is very slow; ~9s vs <1s for a GetFeature request on the FeatureId (which is the gid in the database, not accessible in b3dm). In addition: several features might be returned (roofparts, buildingparts of same building), and which one should we show for the building? Not entirely clear.

In short, I'm leaving this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant