Opened 11 years ago

Closed 6 years ago

#1263 closed defect (wontfix)

strange waterway=stream widths

Reported by: detlef.reichl@… Owned by: osm@…
Priority: minor Milestone:
Component: osmarender Version:
Keywords: Cc: kay@…

Description

If you have a waterway=stream with no width assigned to it, it is at zoom level 17 really big and gets at level 16 *smaller*. If you assign a width to this stream i.e. 0.5 meters it is at zoom level 17 very small and get a little bit bigger at level 16, like expected.

Change History (14)

comment:1 Changed 11 years ago by osm@…

Do you have coordinates of a example?

comment:2 Changed 11 years ago by detlef.reichl@…

http://openstreetmap.org/?lat=48.86181&lon=8.72687&zoom=17&layers=0B00FTF

The nearly horizontal very short stream with the ID "Way 27702460".

In my original description i have confounded the zoom levels. So it has to be:

"If you have a waterway=stream with no width assigned to it, it is at zoom level 16 really big and gets at level 17 *smaller*. If you assign a width to this stream i.e. 0.5 meters it is at zoom level 16 very small and get a little bit bigger at level 17, like expected."

Sorry for the confusion.

comment:3 Changed 11 years ago by studerap@…

I can't find a waterway=stream without a with in your example. Your example has got a with of 0.5. The stylesheets look correct also.

comment:4 Changed 11 years ago by osm@…

Status: newassigned

He meant a river which is not tagged with a width. In that case the default width at zoom level 16 is wider than the default width at zoom level 17.

comment:5 Changed 11 years ago by studerap@…

Yes, but in his example there is no such river..

The default with in level 16 is 1 and in level 17 is 0.275. Maybe this could be a problem, but as there is no good example, i didn't changed anything.

comment:6 Changed 11 years ago by detlef.reichl@…

Replying to studerap@gmail.com:

I can't find a waterway=stream without a with in your example. Your example has got a with of 0.5. The stylesheets look correct also.

Because there is already a month gone since i posted the example, i've of course corrected the width of the streem some time ago.

But i have an other example for you: http://www.informationfreeway.org/?lat=51.55106184300019&lon=7.423281892200773&zoom=16&layers=B0000F000F

It's the streem, that goes from the vertical river east. Zoom in and the streem gets smaller.

Btw. the labels on canels with a width assigned are way to big in lower zoom levels. Look here: http://openstreetmap.org/?lat=48.88503&lon=8.69701&zoom=15&layers=0B00FTF It's about the canal called Metzelgraben. Shall i open a seperate bug for this?

comment:7 Changed 11 years ago by osm@…

Ah ok. There was one back when the example was submitted.

Are you sure about the default width settings? If you convert from pixel to meters (as per wiki.openstreetmap.org/index.php/FAQ) you can see that at zoom level 16 the default width is 2.4 meters, while at zoom level 17 it is 0.33 meters. That would be fine and I could close the bug.

comment:8 Changed 11 years ago by detlef.reichl@…

From that FAQ it is 1.2 meters/pixel at zoom level 17.

But take a close look at the map i send the link to (the informationfreeway.org one). At zoom level 17 the streem is aprox. 3 pixels width and at zoom level 16 - whe you have zoomed _out_ - the same streem is aprox. 5 pixels width. That's it what looks strange.

comment:9 in reply to:  6 Changed 11 years ago by studerap@…

Replying to detlef.reichl@gmx.org:

Because there is already a month gone since i posted the example, i've of course corrected the width of the streem some time ago.

But i have an other example for you: http://www.informationfreeway.org/?lat=51.55106184300019&lon=7.423281892200773&zoom=16&layers=B0000F000F

Thats a good example, looks wired your right.

Btw. the labels on canels with a width assigned are way to big in lower zoom levels. Look here: http://openstreetmap.org/?lat=48.88503&lon=8.69701&zoom=15&layers=0B00FTF It's about the canal called Metzelgraben. Shall i open a seperate bug for this?

I don't think we should change this, because nobody can read the text if its smaller :)

comment:10 in reply to:  7 Changed 11 years ago by studerap@…

Replying to osm@petschge.de:

Are you sure about the default width settings? If you convert from pixel to meters (as per wiki.openstreetmap.org/index.php/FAQ) you can see that at zoom level 16 the default width is 2.4 meters, while at zoom level 17 it is 0.33 meters. That would be fine and I could close the bug.

Yes I'm shure about this, and thats why we should NOT close the bug but fix it. The definitions are a somewhat confusing.

zoom 16 17 river 2 2 stream 1 0.275 canal 2 4 drain 2 1

Shoudn't they be always bigger or always smaller with the same scale factor?

comment:11 Changed 11 years ago by osm@…

In meters that is:

zoom 16 17 river 4.78 2.39 stream 2.39 0.33 canal 4.78 4.78 drain 4.78 1.19

So the bug is not in the stylesheet but in the osmarender itself.

comment:12 Changed 10 years ago by osm@…

Resolution: fixed
Status: assignedclosed

Should be fixed as of r12637.

comment:13 Changed 10 years ago by kay_D

Cc: kay@… added
Resolution: fixed
Status: closedreopened
Type: enhancementdefect

Still present. Please have a look at http://www.informationfreeway.org/?lat=49.820590643553864&lon=10.005760172372721&zoom=17&layers=B0000F000F Left hand side is River Kürnach (stream), right hand side a drain (drain).

The drain is visually VERY thick (just as thick as a track).

comment:14 Changed 6 years ago by iandees

Resolution: wontfix
Status: reopenedclosed

Cleaning aging tickets.

Note: See TracTickets for help on using tickets.