No GeoTable was found for ch.bakom.mobil-antennenstandorte-gsm

13 views
Skip to first unread message
Assigned to procras...@gmail.com by david...@gmail.com

Pascal Arnet

unread,
Feb 28, 2022, 3:07:47 AMFeb 28
to GeoAdminCh API

Hello,

I'm trying to use the identify service for the layer "ch.bakom.mobil-antennenstandorte-gsm". But with the follwing request
https://api3.geo.admin.ch/rest/services/api/MapServer/identify?geometry=2682735.362997658,1226283.3723653397&geometryFormat=geojson&geometryType=esriGeometryPoint&tolerance=0&lang=de&layers=all:ch.bakom.mobil-antennenstandorte-gsm&returnGeometry=true&sr=2056

I get the error:

400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
No GeoTable was found for ch.bakom.mobil-antennenstandorte-gsm

The layer "ch.bakom.mobil-antennenstandorte-gsm" shows up in https://api3.geo.admin.ch/rest/services/api/MapServer and is listed here http://api3.geo.admin.ch/api/faq/index.html#which-layers-have-a-tooltip

There is a similar error for the layer attributes https://api3.geo.admin.ch/rest/services/api/MapServer/ch.bakom.mobil-antennenstandorte-gsm
But this time it says "No Vector Table was found for ch.bakom.mobil-antennenstandorte-gsm"

But the Legend is working https://api3.geo.admin.ch/rest/services/api/MapServer/ch.bakom.mobil-antennenstandorte-gsm/legend
so there is no typo in the layername.

The same error occurs for the other Antennenstandorte
https://api3.geo.admin.ch/rest/services/api/MapServer/ch.bakom.mobil-antennenstandorte-5g
https://api3.geo.admin.ch/rest/services/api/MapServer/ch.bakom.mobil-antennenstandorte-lte
https://api3.geo.admin.ch/rest/services/api/MapServer/ch.bakom.mobil-antennenstandorte-umts

So what am I missing?

Best regards,
Pascal

Pascal Arnet

unread,
Mar 2, 2022, 2:48:42 AMMar 2
to GeoAdminCh API
I saw on https://map.geo.admin.ch/ that it's done with a GeoJSON for those layers. Is this the only way for getting the features?

GeoAdminCh API

unread,
Mar 7, 2022, 4:30:47 AMMar 7
to GeoAdminCh API

it is in the http://api.geo.admin.ch/api/faq/index.html#which-layers-have-a-tooltip  list-- we will look into that

Marc Monnerat

unread,
Mar 7, 2022, 8:15:28 AMMar 7
to geoadmin-api
Hello,

Well, the documentation is wrong. These layers obviously have tooltips, but they are not using the service `identify`I mentionned, because they are GeoJSON layers. The error message from the service ("No GeoTable was found for ch.bakom.mobil-antennenstandorte-gsm") is correct, but misleading in the context.

Regarding your problem, as you cannot use the service, you'll have to do it yourself. If you need it, I may provide you a simple example on how to do it. Do you work in the browser or backend?

I will correct the documentation.

Regards,

Marc

--
You received this message because you are subscribed to the Google Groups "GeoAdminCh API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/11bd025c-f9ff-4218-8258-54e6c4f424e1n%40googlegroups.com.


--
--
Всё идёт по плану
Reply all
Reply to author
Forward
0 new messages