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

已查看 16 次
跳至第一个未读帖子
已由david...@gmail.com分配给procras...@gmail.com

Pascal Arnet

未读,
2022年2月28日 03:07:472022/2/28
收件人 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

未读,
2022年3月2日 02:48:422022/3/2
收件人 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

未读,
2022年3月7日 04:30:472022/3/7
收件人 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

未读,
2022年3月7日 08:15:282022/3/7
收件人 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.


--
--
Всё идёт по плану
回复全部
回复作者
转发
0 个新帖子