Hi Markus,
You might find what you search on the layer "ch.swisstopo.vec25-gebaeude" using the point you received through your first request.
This other layer sadly doesn't link to the EGDI number, so you might receive more if buildings are "linked" together (and can't directly search with an EGID on it).
If I take the first building of your request, the second request would look like
The trick is, you need to run an identify request on this layer (and not
a find) and that requires a bit more params and fine tuning. Here's how
I achieve this URL :
- add tolerance=10 (pixels) to the request
- add a fake viewport of 10px x 10px with 96dpi : imageDisplay=10,10,96
- take the coordinate you receive and create a "fake" bbox with it by flooring the coordinates to the 4th decimal and ceiling to the 4th ( floorX, floorY, ceilX, ceilY ) : mapExtent=8.7952,47.3663,8.7953,47.3664
- change layer param to layers, and add a all: before the layer ID
Note that this layer (Vector25 buildings) is not updated anymore, and will not contain up-to-date data. We unfortunately don't provide a valid up-to-date alternative for ease of access to building shapes. You might get by by parsing all roofs on the solar potential layer (ch.bfe.solarenergie-eignung-daecher) but that will be quite cumbersome to build...
Hope I could point you in the right direction,
Cheers,
Pascal