This was coming in via Geodata Abgabe swisstopo and Helpdesk BGDI. Thanks for having a look at these technical questions.
Von: Xavier Willemin <x.wil...@suncell.ch>
Gesendet: Mittwoch, 31. August 2022 16:20
An: Aeby Patrick swisstopo <Patric...@swisstopo.ch>
Cc: Nico Lugt <n.l...@suncell.ch>
Betreff: Re: problems accessing Swissbuildings3D
Dear Mr. Aeby,
Thank you very much for your quick reply.
This is not actually a problem access SwissBUILDINGS3D, but rather an issue with the swisstopo API. I have now been able to narrow down the root cause to the API not computing correctly the search radius for an "Identify Features" query.
We are using the API instructions to query the search radius we want and it worked perfectly fine before. But now, it looks like the query returns random places in Switzerland.
You can try it yourself with this example query we have on Wohnungs Register : https://api3.geo.admin.ch/rest/services/api/MapServer/identify?geometryType=esriGeometryPoint&geometry=6.9105433480854295,46.446226370234506&tolerance=29.98740863800049&imageDisplay=100,100,100&mapExtent=0,0,100,100&layers=all:ch.bfs.gebaeude_wohnungs_register&returnGeometry=true&sr=4326
It returns 200 results (I guess the max limit for the query), but the closest building to the GPS coordinates (Chaulin 18, 1822 Chernex) is not even in the list.
Note that this "tolerance", "imageDisplay" and "mapExtent" mess is one of the only thing I don’t get in the swisstopo API and stopped trying to figure out. I find the documentation very limited and unhelpful, except the paragraph mentioned above to indicate how to query the search radius. I suspect however that the API was wrong before, has been fixed meanwhile, but the documentation was not updated.
Thank you very much for your help. Feel free to contact me (email or phone below) if you need any additional information.
Best regards,
Xavier Willemin
079 759 39 70
Le 31 août 2022 à 11:36, <Patric...@swisstopo.ch> <Patric...@swisstopo.ch> a écrit :
Good morning Mr. Lugt
Thank you for the contact details of your colleague.
Could you briefly explain your problem in a few sentences or send us a screenshot of your error messages? This would make it easier to contact the right specialist.
Thanks and best regards
Patrick Aeby
-----------------------------------------------------------------------------
Patrick Aeby
Geodatenabgabe
Eidgenössisches Departement für Verteidigung, Bevölkerungsschutz und Sport VBS
Bundesamt für Landestopografie swisstopoBereich Topografie
Seftigenstrasse 264, CH-3084 Wabern
Tel +41 58 469 02 78 (direkt)
Tel +41 58 469 01 11 (Zentrale)
-----------------------------------------------------------------------------
Von: Nico LUGT - Suncell <n.l...@suncell.ch>
Gesendet: Mittwoch, 31. August 2022 11:09
An: Aeby Patrick swisstopo <Patric...@swisstopo.ch>
Cc: x.wil...@suncell.ch
Betreff: problems accessing Swissbuildings3D
Good morning Mr. Aeby,
As just discussed by phone I'm sending you the contact of my colleague Xavier Willemin, who leads the technical development of our software, I guess you have been in contact with him earlier.
So if you can please put him in touch with a colleague of yours who can provide information on the migration that took place lately on your side.
Thanks and best regards
Nico Lugt
--
Nico LUGT :: n.l...@suncell.ch :: mob +41 79 413 44 67 :: Suncell Energy SA :: Rue de l'Eglise catholique 6 :: 1820 Montreux :: Switzerland :: VAT : CHE-113.739.374 :: www.suncell.ch