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

auto detection of closed ways / areas #1576

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

auto detection of closed ways / areas #1576

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

Comments

@openstreetmap-trac
Copy link

Reporter: osm[at]petschge.de
[Submitted to the original trac issue database at 10.57am, Monday, 9th February 2009]

It would be really handy to have an autoselecting thingy detecting if a way is closed to handle that case seperatly in the stylesheets without the need for K=area, v=yes. Possible handle for the stylesheets would be e=polygon.

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 4.03pm, Monday, 9th February 2009]

It wouldn't be a replacement for area=yes. The point of that is just to differentiate between for example highway=residential for a road that goes in a ring vs. highway=residential + area=yes where the entire area of the ring is paved.

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 5.04pm, Monday, 9th February 2009]

Perhaps the test should be something like area!='no' and count(nd) > 2 and nd[0] == nd[last].

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 5.57pm, Monday, 9th February 2009]

I'm taking a look at implementing this in XSLT

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 8.46pm, Monday, 9th February 2009]

Dilemma:

The way it's implemented in 1576_alpha1 e=way only matches if e=area wouldn't match, which means things like a highway going in a circle wouldn't render.

So what do we do?

  1. Have e=way work as before, and add e=area and e=non-area (suggestions for better names for the latter welcome)
  2. Change all the current e=way to e=way|area. Bad solution.
  3. ??? Any better ideas?

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 10.54pm, Monday, 9th February 2009]

Note to self: Update docs when committing.

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 5.10pm, Tuesday, 10th February 2009]

Committed in r13647

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 5.19pm, Tuesday, 10th February 2009]

Docs updated too.

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