Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

[roads] raceways not rendered if way is closed #3009

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

[roads] raceways not rendered if way is closed #3009

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: malenki
[Submitted to the original trac issue database at 2.30pm, Tuesday, 25th May 2010]

Mapnik does not render raceway=highway when the way is closed (as most raceways are).
See example [http://www.openstreetmap.org/?lat=50.9057950973511&lon=13.3844885230064&zoom=18 here]

The southern (in RL existing) raceway I split into two parts "for the renderer" which results in a rendered raceway. As I mentioned "my" racecourse at #osm-dev it was considered a single singularity. Today I stumbled over [http://article.gmane.org/gmane.comp.gis.openstreetmap/49768 this post] and decided to have a second look. I cloned the racecourse, closed the way - and Mapnik doesn't render it. The highway=residentials I drew for comparison purposes.

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 10.11pm, Wednesday, 26th May 2010]

The sport=motor tag causes this behaviour. Sport=* would usually be set on an area, and osm2pgsql's default.style thus has it set as 'polygon'. Meaning that any object that has sport=* applied to it, and can form a proper area (closed ring), will be made into a polygon in mapnik's database. No matter which other tags (highway=* in this case) are also present. Polygon wins over linear.

The current solution is to use area=no to say that this is not an area dedicated to motoring sports, but a track. I'm also working on a solution that does not require area=no.

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 9.54pm, Thursday, 3rd June 2010]

While I do have a working solution for this particular case, I also notice #2725.

We now have two different concepts:

  1. closed way that itself is the track (this ticket)[[BR]]
  2. closed way (or multipolygon) that is the track outline ([roads] Render multipolygons with highway=raceway #2725)

Both of these tracks are the same type according to the stylesheet, so I have to choose a single way to handle them. If I choose to fill the area, your example (1) would render with a solid fill, like (2) needs to be. If I choose to render the outline of your closed way (1) as a raceway, the other one (2) would render as a raceway line on every ring.

Even if I would keep them apart based on osm_id (positive for (1), negative for (2)), it would still break down for cases of (2) that are meant to describe the outline but are just a single way, not a relation.

Tough one.

@openstreetmap-trac
Copy link
Author

Author: math1985
[Added to the original trac issue at 11.58am, Monday, 26th May 2014]

This has been resolved in the meanwhile.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant