Getting rid of "last update" labels in WMS tiles

14 views
Skip to first unread message

Luzian Scherrer

unread,
Apr 15, 2025, 4:12:15 AMApr 15
to GeoAdminCh API

Pascal Barth

unread,
Apr 16, 2025, 5:10:01 AMApr 16
to geoadm...@googlegroups.com
Hi Luzian,

You can do the same trick we do when we switch to the 3D viewer (we don't want this label on each tiles, as we need to tile it on 3D) and request each constituant parts of the obstacles on the WMS.
This change your URL to something like (look at the layers param) :

Cheers,
Pascal

--
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 visit https://groups.google.com/d/msgid/geoadmin-api/957bef77-fbd1-4f25-b323-83ac8b979b0en%40googlegroups.com.
Message has been deleted

Luzian Scherrer

unread,
Apr 16, 2025, 6:23:33 AMApr 16
to GeoAdminCh API
Hi Pascal,

That's perfect, thank you very much!

According to https://wms.geo.admin.ch/?service=WMS&version=1.3.0&style=test&request=GetStyles&layers=ch.bazl.luftfahrthindernis I think only ch.bazl.luftfahrthindernis_line and ch.bazl.luftfahrthindernis_point are the valid layers (besides the unwanted ch.bazl.luftfahrthindernis_datenstand).

Pascal Barth

unread,
Apr 16, 2025, 6:51:12 AMApr 16
to geoadm...@googlegroups.com
As you've pointed out, there are 4 layers in this "group layer"
I'd advise that you include all 3, point, line and poly (so all except 'ch.bazl.luftfahrthindernis_datenstand', which is the label you don't want) or you might lose some obstacle on the output
(that's not a good idea to omit obstacle when dealing with flight security :-P )

Luzian Scherrer

unread,
Apr 16, 2025, 6:54:09 AMApr 16
to GeoAdminCh API
Reply all
Reply to author
Forward
0 new messages