TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.
https://terria.io
Apache License 2.0
1.16k stars 360 forks source link

WMS missing tilesorigin - Geoserver #4870

Open zoran995 opened 3 years ago

zoran995 commented 3 years ago

I just run into the issue of getting duplicated labels for same features. The data is loaded as WMS from Geoserver. When requesting tiled WMS, Geoserver requires also to the origin of lower-left corner be specified (https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#tiled), parameter tilesorigin. I am not sure about other service providers. image

zoran995 commented 3 years ago

this is not cause of the issue, check here for an idea on how fix this https://gis.stackexchange.com/a/265965

zoran995 commented 3 years ago

Little description of investigation for this because close and open will bring confusion The idea when I closed the #4870 was to create a style for labels and use it as separate layers but I couldn't find the option to add untiled WMS layer (it could also work to load entire layer untiled). The geoserver is using a concept of metatiling when providing the tiled result which requires tilesOrigin parameter along with tiled=true. I managed to add this parameter on terriajs side (should be probably moved to terriajs-cesium or cesium directly). But when the layer is loaded the labelling issue is not solved completely although it is much better, sometimes 2 labels show for the same feature instead of having 20 at some zoom levels and that is issue on geoserver side (we can't do anything else to make metatiling better AFAIK). According to the mentioned answer on StackExchange, the only way to completely solve the issue is to request the untiled layer.

Does anyone know how to request the untiled layer using Cesium?