我在使用 Geoserver 提供的矢量切片设置 Openlayers 地图时遇到问题。线条沿着瓷砖的边缘拧在一起。看起来线条是先被剪裁,然后再设计样式,而不是相反。这使得宽线看起来很难看。
更改 LOL 客户端中的渲染缓冲区不会产生任何影响。
我有标签的类似问题 https://stackoverflow.com/questions/40234804/ol3-geoserver-vector-tile-labels-gets-cropped也许这两种情况的解决方案几乎是相同的。
编辑:QGIS 中的 geojson 显示图块周围有一个缓冲区:
QGIS 中的 geojson 输出 https://i.stack.imgur.com/JpLvj.png
EDIT 2: I have been doing som more research on the phenomenom and I think both Geoserver and Openlayers are to blame for the artifacts. As seen below, Geoserver does render with a buffer (the pink polygons(1 and 2) contains the black bordered tile extent) but does not include features that lies outside of the tile but inside of the buffer, like the green line(3) in the circle.
That makes the tile rendered with a jack as in the left circle below.
However, even when you have a line in a tile that goes close to the tile border, styled with quite a thick stroke, Openlayers wont render enough of the line outside the tile to make it styled without a jack. Like the right circle below. I have mote obvious examples of that bahviour. This could probably easily be fixed by setting a higher buffer/tolerance value for the tilerendering.
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)