WG: problems accessing Swissbuildings3D

76 views
Skip to first unread message

web...@swisstopo.ch

unread,
Sep 2, 2022, 11:08:43 AM9/2/22
to geoadm...@googlegroups.com, David...@swisstopo.ch

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.

 

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 swisstopo

Bereich 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

-- 

Das Bild wurde vom Absender entfernt. suncell

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

 

GeoAdminCh API

unread,
Sep 6, 2022, 4:37:09 AM9/6/22
to GeoAdminCh API
Hi  Xavier

A) Working with tolerances
 As the tolerance is in pixels, these value are used to convert it to map units, _i.e._ meters. https://api3.geo.admin.ch/services/sdiservices.html#tolerance-mapextent-and-imagedisplay which in meters only works with LV95 

So you need to work with metric LV95 Coordinates
https://api3.geo.admin.ch/rest/services/api/MapServer/identify?geometryType=esriGeometryPoint&geometry=2559419,1144011&tolerance=30&imageDisplay=100,100,100&mapExtent=0,0,100,100&layers=all:ch.bfs.gebaeude_wohnungs_register&returnGeometry=true&sr=2056 

Whcih returns Ruc Chaulin 18,1

B)Documentation of the API:
The api was initally made for the viewer - so it is somehow cumbersome to use it.
Our api is aging --- we are planning to migrate it  in 202* but we dont have yet a concrete roadmap


Parbat Pithiya

unread,
Sep 8, 2022, 9:31:29 AM9/8/22
to GeoAdminCh API
yes this is same problem for me, 

before it was working fine and now getting all data and not working with tolerance.
anyone please help ! 

Reply all
Reply to author
Forward
0 new messages