-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite buildings code #565
Conversation
On 14, 15 buildings are invisible - see http://bl.ocks.org/pnorman/raw/c61d6b11193081910866/#14.00/38.9870/-76.9312 http://bl.ocks.org/pnorman/raw/c61d6b11193081910866/#15.00/38.9870/-76.9312 Maybe using here low zoom level style would be a good idea? It also makes #70 a critical issue. I am unsure how hard it would be to render another part of the map. If it is trivial to do in your situation - can you render Kraków? http://www.openstreetmap.org/#map=13/50.0749/19.9155 |
Not really, it's more subtle, and #243 causes it to be visually swamped. Of course, it's a mess with the footways looking like this: (old style).
Not clear what you're saying there. It is using the low zoom building style
I don't really see that parking is related. The same number of P's are displayed either way
It's a bit of a pain, it'd require a database reload and resetting up the extents of the layer. Maybe when I update the DB, since I'm already merging multiple extracts. |
See say http://bl.ocks.org/pnorman/raw/c61d6b11193081910866/#15.00/38.9870/-76.9308 With the new style parkings are far more visible than with the old style. Fading landuses (residential, industrial) is IMHO necessary.
Sorry, my mistake. |
Wow, this has a big impact. Especially since OSM standard style has always had prominent buildings compared to other maps. This would turn this distinction around. Don't know if that's good or bad. While I think buildings in zoom 14 and 15 should still be visible, even on landuses, they can be extremy subtle. I did a very quick test in Photoshop, and a residential colour of #e5e5e5 instead of #dddddd makes the buildings a bit more visible. On close zooms, I would prefer the buildings a bit stronger. We might not even need an outline then. If the differences are too subtle it might make the map hard to read for the elderly or on a bad screen in the sun. Too strong contrasts will make the map hard to read always ;) |
Could buildings have a transparent colour? So that they blend better with whatever landuse below? |
outlines are generally desirable to distinguish a big building from lots of small attached to each other buildings |
@daganzdaanda Is there any point in doing this? I expect that it will only encourage ridiculous tagging landuses as multipolygons with buildings as inner ways. |
Eh, I'm seeing this PR right after submitting my (less ambitious) PR #568. Overall I really like pnorman's less intrusive style (the current style being IMHO responsible for a large chunk of "osm is ugly" newbie comments). But it completely does away with "light buildings", which I think is a pity. My PR and a lot of my building-related comments concern light buildings, as I think that it's a useful thing to render. It can actually make the map more readable, the typical example being residential areas where all the garden sheds make the rendering too crowded. As a bonus, it highlights some of osm's data richness. |
It is a fairly major change. Not sure if I like it - sometimes I wonder if we are just going down the lets copy Google Maps route here. A couple of points. "Comments in this repository have shown that the light/dark distinction of buildings is not something easily understood, let alone something someone will grasp when viewing the map." Really? I thought this was fairly simple premise - important building are (to be) rendered darker/more noticeable (e.g. school, church, hospital, etc) and less important less so (e.g. garages,etc) . + and nothing is tagged e.g. building just as =yes then that could be rendered less prominently (to get people to tag more correctly) One thing to remember other mapping providers often do not do this because they do have that metadata hence everything is the same. It saddens me we should go down to their levels. Rather than give up on all the potential differing shades of building classification and make everything one washed out lighter shade I would make: Building=yes and 'lower' classifications (garages, etc) as they are with that grey shade. |
I am not happy about churches not rendered properly with amenity=place_of_worship on building. Is there a good reason for this? This tagging is really rare in linked area (most churches seem to be tagged as nodes) - but synagogue at http://bl.ocks.org/pnorman/raw/c61d6b11193081910866/#18.00/38.90004/-77.01866 is a good example. amenity=place_of_worship on building is standard tagging style in Poland (no idea about other countries). |
@dieterdreist -- you're right, good point about outlines. So we keep 'em.
You mean the idea of a transparent colour? Well, it may look good, see the mapquest example in the first post, or the mapquest layer. Of course, it will look stupid if the edge of an landuse goes through a building. I agree with @vincentdephily and @Rovastar about the usefulness of a light variant for lesser buildings. And I also would like buildings that are place_of_worship to keep having another colour. In many towns, churches really stand out and are a great help for orientation. |
My thoughts are "higher" classification would be noticeable/important like Churches, school, town halls, stations, hospitals, etc. |
I would suggest to resolve the building versus tunnel issue by rendering tunnels on top of houses. The layers in between are: citywalls castlewalls castlewalls-poly landuse-overlay line-barriers cliffs area-barriers ferry-routes turning-circle-casing highway-area-casing roads-casing highway-area-fill
|
That sounds weird! but I get it... But we need colours for the tunnel that work whether there is a building or not. Maybe transparency could help.
Agree with what you said. Highway-areas are semantically not a form of landuse, so buildings should not sit on top of them. If it were landcover=asphalt, that would be different. |
While lighter buildings looks more pleasant (especially at lower zoom levels, where building coverage in many places is patchy), this may not fit with the present style of high details / contrast, not only for industrial / commercial landuses but also green areas, amenities etc. e.g. buildings does not stand out from pedestrian ways / areas, esp. against a high contrast rendering of different shades of green Rendering of stadium Parking and construction areas more prominent than buildings That said, I think a less "drastic" watering down of building tones should be ok without redesigning the overall style - which as I understand it is deliberately rich for feedback to mappers rather than primarily for pleasant looking. |
I started expanding my changes to use attachments and render some POIs which were also buildings specially (
SELECT DISTINCT b.way, b.building, (p.way IS NOT NULL) AS is_place_of_worship
FROM planet_osm_polygon b
LEFT JOIN
(SELECT way FROM planet_osm_point WHERE amenity='place_of_worship'
UNION ALL SELECT way FROM planet_osm_polygon WHERE amenity='place_of_worship') p
ON (ST_Intersects(b.way, p.way))
WHERE b.building IS NOT NULL |
To clarify, actually doing SQL like that is not an option as well as probably horrible for performance. |
@pnorman, I'm not sure I understand correctly. Are you saying that a building=yes that has amenity=place_of_worship can't be treated differently than another building=yes? Apart from that, maybe it would be good if only the building value is looked at. Building=church|synagogue|mosque|cathedral|chapel|temple|... would get rendered different. This would get people to use these special values instead of generic "yes". The amenity=place_of_worship could be used for adding a name and icon only. |
@daganzdaanda What about buildings that were build as houses and are churches (happens frequently especially with less popular religions)? What about churches that are now closed/used as house/warehouse/shops etc (growing trend in Western Europe)? @pnorman I am confused by your link, as it seems that you are worried by performance and link to section that describes possible bit unwanted data processing. Also, what I want is in the current style. |
Yes, that's the question: "what is the building" versus "what is it used for". And what's the best way to tag it. I think in the first group it's building=yes and amenity=p_o_w if the church only uses part of it. If the church uses all of the building, it can be re-tagged building=church even if it doesn't look like one. In the second group, IMHO the building=church is still valid, if the building definitely looks like one. One could add disused:amenity=p_o_w to make it clear that the use has changed. If you just leave out the amenity, it may look like it's been forgotten. ...But then, would I like to have that disused church render like a normal active one just without the religious icon? Hm... don't know. Also, a church building that has been converted to apartments or office space can't have both building=church and building=apartments or office. So what would you do in that case? |
http://wiki.openstreetmap.org/wiki/Key:building [building=church] "A building that was built as a church." [building=apartments] "A building arranged into individual dwellings, often on separate floors." So church re-purposed into apartments should be tagged both as building=church and building=apartments. It would be a good idea to make consistent documentation before encouraging usage of this values. |
It doesn't handle places of worship within buildings or buildings within places of worship.
What I described in 4 is not present in the current stylesheet. The rendering for |
As far as I'm concerned, the following issues still need to be addressed:
Apart from the issues above, I didn't spot any problems in Luxembourg. Let me know if there's anything I can do to resolve these issues. |
I've been playing with making it darker, but there's an issue there as well. Right now in the PR some buildings are visible because they're lighter than some landuse. I suppose one solution is to make it darker (but still not as dark as now) and then work at getting landuse more consistent in saturation and darkness, rather than being all over the place.
I think we can do this first without any merge conflicts in this branch, and it would fix what is currently an issue as the tunnel issue isn't a regression. An opacity of 0.9 hardly lets the tunnels be visible.
I'd really rather handle them in the landcover and amenity layers, rather than styling a building based on amenities within it. |
I've darkened it up a bit, which actually makes buildings on industrial worse. I may need to take a look at landuse more extensively. Demo layer cache dumped, so everything there is fresh, but your browser may have cached tiles. |
I don't think so, it seems worth a try. Note i am not talking about a large threshold, at max a few pixels size. Look for example at a setting like http://bl.ocks.org/pnorman/raw/c61d6b11193081910866/#14.00/5.2814/-3.9942 where only larger buildings have been mapped - it does not look particularly weird to me. On the other hand if all buildings would be mapped there it would look truly cluttered - probably a bit like http://www.openstreetmap.org/#map=14/3.8636/11.5019. Note this is z=14, buildings are shown already at z=12/13. |
2014-11-27 10:50 GMT+01:00 Mateusz Konieczny [email protected]:
I agree because many small adjacent buildings can create a very dense |
Current demos for New York and Cracow show me that:
|
I'm missing the slight differentation that was visible between different building=* values previously (residential vs. garage). There's a comment saying: "Comments in this repository have shown that the light/dark distinction of buildings is not something easily understood, let alone something someone will grasp when viewing the map." I'm pretty sure you'd need to look at the map key to know what a specific colour means, and that's the same situation as with landuses, but the differentiation is both useful and nice to look at IMO. |
Both OSMAnd and Maps.me on Android do this. It makes sense on mobile for performance reasons, but it does look really weird. |
I also thinks so (layer containing PoW on buildings is named buildings-major), but IMHO it would be better to handle this features separately, not in this PR. |
I do like the lighter shade of most buildings. mkoniecz commented on Oct 17
mkoniecz commented an hour ago
So can you really handle these features separately and not change both here: buildings lighter and place_of_worship darker? |
I honestly don't see a reason for making certain buildings more prominent. IMHO, the way that makes most sense is colour them all the same and invite |
It would happen with uncontrolled adding of important building types. Doing this carefully will result in much better map (see comparison at the bottom of #565 (comment))
#565 (comment) affected only PoW for three reasons: currently only PoW building are rendered specially (and intention of my change was to keep this special rendering), because for many types of buildings it requires either tricky preprocessing or tagging change[*] and because I would prefer to discuss what is an important building in a separate issue (this one already has a gigantic and unwieldy discussion). [*] For example - there is currently no way to reliably decide whatever something is a school/university building. Checking whatever building is inside amenity=school/university polygon probably counts as overcomplicated and therefore unwanted data processing. Also, I am not sure is it doable with current database and what worse not all buildings in amenity=university polygon are university buildings (rendering sheds or substation as a special building just because it is on university area is a poor idea). Checking value of building tag would be also unreliable and would establish an undiscussed tagging scheme. |
2014-11-28 7:56 GMT+01:00 Mateusz Konieczny [email protected]:
IMHO we should indeed check the value of the building tag, aka the building |
As said above, I'd like the buildings to be a little bit darker and more of a neutral grey. I too hope we can make use of the different building values some time. How about grouping the values into 3 tiers: important/outstanding - standard/average - lesser importance ? |
I think that a more neutral gray would work better than the proposed yellowish/brownish gray, as has also been said by others here and on talk. In fact, in an earlier comment I suggested using the color d6d1c8, and @math1985 and @gravitystorm responded that they liked this color. Here is a comparison of the currently proposed building color (left) and my suggestion (right): |
@vholten: I guess the background is landuse=residential? Looks better for me, but could you also show a big picture on some other "troublesome" backgrounds (especially dark, like landuse=industrial, commercial and construction)? I prefer darker outline from the mentioned comment. The lighter one could be used for building=garages or something like that. |
@vholten: Buildings coloured like that are better on dark backgrounds in most cases and some other are still good enough. Let's check:
mkoniecz is right when talking about too small difference between buildings and living streets, but then I always thought they are strange and differs too much from the rest of streets - I think living streets should be much lighter. We should also make pitches and probably landuse=military+military=barracks lighter. |
|
Colour proposed by vholten in gravitystorm#565 (comment)
replaced by #1153 |
This is a relatively small change in terms of code, but substantial in what it impacts.
Fixes/superceeds
Railways:
#389
#327
Outlines:
#68
#490
#533
Supermarket
#520
Building=planned
#1061
Comments in this repository have shown that the light/dark distinction of buildings is not something easily understood, let alone something someone will grasp when viewing the map.
Comparisons to other providers
I reviewed a number of other map providers, and most use something very subtle at low zooms and moderately subtle at higher zooms, and in all cases, less obtrusive than the current rendering.
Lyrk
MapQuest
Here.com
Google
Bing
Mapbox
Samples
Outstanding issues
Low-zoom industrial buildings are too subtle
I may decrease the zoom at which the outlines appear and slightly strengthen the fill, but the solution here might be to fade back the
landuse=industrial
fill to be more in line with residential/retail/commercial.Roads under buildings are invisible.
Not a new issue. I'm tempted to punt on this. It also holds true for tunnels
Churches (and other place_of_worship)
In keeping with more modern tagging of the
amenity=place_of_worship
on either the area or combined withbuilding=*
on the church building, the grey is moved to landcover. The gray has also been lightened slightly, depending on the original colour which depends on background.amenity on area, building on buildings
amenity and building on buildings
Place of worship, no building
Railway stations
Railway stations were strange before. They've been fixed in line with #327 (comment). Unfortunately, I can't find any great examples in the areas I've loaded.
Demos
I've loaded up a portion of the northeast United States and made a comparison at http://bl.ocks.org/pnorman/raw/c61d6b11193081910866
Please keep in mind that the rendering server is less powerful, has a limited area, and is not consuming updates.
I have a small pre-rendered area from Seattle at http://a.tiles.mapbox.com/v3/pnorman.openstreetmap-carto/page.html which is faster.