rurseekatze / node-tileserver

A lightweight tileserver based on NodeJS for serving bitmap and vector tiles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rendering of dashes causes problems

rurseekatze opened this issue · comments

Currently the rendering of dashes does not work in every case.

Example: Süntelbahn http://www.openrailwaymap.org/canvas.php?lang=de&lat=52.197007066922616&lon=9.450516700744629&zoom=14&style=standard

abandoned-join

On zoom 15 it get's worse, but I suspect this could be the renderer doing something wrong:
dashes-5-6-z15

On zoom 16 it's all fine:
dashes-5-6-z16

I think what happens here is that the line is acutally drawn twice, with a slight offset.

The line is drawn twice, but to me it looks like node-tileserver is not to blame here. When you look on the data that is rendered, which is tile 15/17243/10795, you see that nearly the same way is twice in the list. One comes from the relation, which is errnously also tagged as route=railway;railway=abandoned, the other one is the way itself.

I don't understand:

  • why the part of the relation appears as simple way here
  • why the part of the relation is split differently than the way itself, which in OSM data is long enough to cross the tile border

Since I fixed the relation, I've also attached the data as it was rendered today:
10795.js.txt

Fixed by OpenRailwayMap/OpenRailwayMap@0e3431d.

Now relations are dropped before importing data into the database because they are not relevant for this project.