Opened 11 years ago
Last modified 9 years ago
#10529 closed enhancement
Visually deprecate old multipolygon styles — at Version 17
| Reported by: | stoecker | Owned by: | team |
|---|---|---|---|
| Priority: | major | Milestone: | 17.04 |
| Component: | Core | Version: | |
| Keywords: | multipolygon | Cc: | skyper, Klumbumbus, pnorman |
Description (last modified by )
Currently we still support old styles of multipolygon see ElemStyles.java. I think it is time to somehow deprecate them more than we do now.
- So probably first is to disable the VERY old method of inner=outer completely.
- second is to never display outer styles for complete multipolygon anymore.
- Third is probably to visually mark the no-style on multipolygons as bad for these cases, where the outers have one common style.
Probably instead of removing code, we can turn it of with a default-false variable?
Change History (17)
comment:1 by , 11 years ago
follow-up: 8 comment:3 by , 11 years ago
Unclosed areas (multipolygon or not) should no longer be displayed as proper area. They should be marked somehow.
With proper old-style handling cases 03 and 04 of example should be identical. They are not, so this is also broken ATM.
There should be a real cleanup of area style handling.
comment:4 by , 11 years ago
| Cc: | added |
|---|
comment:6 by , 11 years ago
| Keywords: | multipolygon added |
|---|
follow-up: 9 comment:7 by , 11 years ago
Replying to stoecker:
Currently we still support old styles of multipolygon see ElementStyles.java. I think it is time to somehow deprecate them more than we do now.
- So probably first is to disable the VERY old method of inner=outer completely.
I think we should remove the very old style completely. This should get rid of some ugly special handling in the code.
- second is to never display outer styles for complete multipolygon anymore.
- Third is probably to visually mark the no-style on multipolygons as bad for these cases, where the outers have one common style.
There are basically two styles in use:
(a) area tags on multipolygon relation
(b) area tags on outer way(s)
If in (b), the tags of the outer ways do not match, this is an error.
The 3rd suggestion I understand that you like to discourage the style (b) somehow. Before we can remove support for this, we should get some kind statistics, how much style (a) and (b) is used overall in the data base and maybe how much it is used in multipolygons that have been created / modified in the last year.
What do you mean by suggestion 2? Surely the outer way can be a highway, so a line style is okay.
follow-up: 10 comment:8 by , 11 years ago
Replying to stoecker:
Unclosed areas (multipolygon or not) should no longer be displayed as proper area. They should be marked somehow.
With proper old-style handling cases 03 and 04 of example should be identical. They are not, so this is also broken ATM.
Aren't they identical? Just the tag is different, so there is a another color.
comment:9 by , 11 years ago
Replying to bastiK:
Replying to stoecker:
Currently we still support old styles of multipolygon see ElementStyles.java. I think it is time to somehow deprecate them more than we do now.
- So probably first is to disable the VERY old method of inner=outer completely.
I think we should remove the very old style completely. This should get rid of some ugly special handling in the code.
Fine with me.
- second is to never display outer styles for complete multipolygon anymore.
- Third is probably to visually mark the no-style on multipolygons as bad for these cases, where the outers have one common style.
There are basically two styles in use:
(a) area tags on multipolygon relation
(b) area tags on outer way(s)
If in (b), the tags of the outer ways do not match, this is an error.
The 3rd suggestion I understand that you like to discourage the style (b) somehow. Before we can remove support for this, we should get some kind statistics, how much style (a) and (b) is used overall in the data base and maybe how much it is used in multipolygons that have been created / modified in the last year.
What do you mean by suggestion 2? Surely the outer way can be a highway, so a line style is okay.
Broken thinking. :-) 2 and 3 boil down to "Never care for area styles on multipolygon outer members". Currently with a default false variable to be able to turn it back.
I think our task as editor is to get cleaner style, so we should not wait for the DB anymore, but start acting. Compatibility phase was long enough. It's deprecated for years now. Based on a request on dev mailinglist some month ago.
So my suggestions would be:
- cleanup
- fix 2 broken validator cases
- check or fix validator: any area draw styles on outer ways should be warnings
- disable handling of "outer" styles for multipolygons
- disable display of unclosed areas (polygon or unclosed ways)
Last 2 should be announced in start page.
I had a look at multipolygon/boundary now again and JOSM's (or also my) secret (or not so secret) steps to cleanup database resulted in major reduction of ambiguities. E.g. exclave/enclave is completely dead. Special cases dropped. Boundary type Multipolygon is dying. So a new task ...
comment:10 by , 11 years ago
Replying to bastiK:
Replying to stoecker:
Unclosed areas (multipolygon or not) should no longer be displayed as proper area. They should be marked somehow.
With proper old-style handling cases 03 and 04 of example should be identical. They are not, so this is also broken ATM.
Aren't they identical? Just the tag is different, so there is a another color.
Right. Why the hell did I use different styles for each row? No idea.
comment:11 by , 11 years ago
| Cc: | added |
|---|
comment:17 by , 11 years ago
| Description: | modified (diff) |
|---|
Added a parameter now. Question is how the default value should be.
I didn't find the relevant code yet where I can tell JOSM, that unclosed areas aren't areas. The value "pretendWayIsClosed" seems to be wrong place. Any suggestions where to search?



According to trunk/data_nodist/multipolygon.osm type 1 (very old) is anyway broken :-)