-
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
Add rendering for golf=* #661
Comments
+1 |
At least bunkers can be tagged with natural=sand and fairways/tees/greens as landuse=grass. Water hazards are a little dubious because they usually aren't exacly the same as the natural=water but the lakes and streams can be tagged as they would outside of golf courses anyway. Pins probably shouldn't be tagged since they are often moved around at different locations on a daily basis. Golf gps units usually count distances to the middle of the green or the green border. Anyway I like this proposal. |
2014-06-25 4:49 GMT+02:00 Grillmannen notifications@github.com:
yes, osm allows to add any tag to anything, and there is no verification landuse=grass isn't a nice tag either, (because "grass" is not a "use", and IMHO the main style sheet shouldn't encourage bad (against logics) tagging, I'm going to post something like this also on [tagging]. |
tile.openstreetmap.fr example is not the best example, default style displays almost the same things. Main difference is not rendering these Orange/Bleu/... lines, weird for somebody without golf knowledge (it is using barrier symbol, or at least something very similar). I am not sure is it a good idea for a default layer. |
A long time has passed and nothing has happened. So everybody uses tags that are rendered. That may be landuse=grass, leisure=pitch, highway=path (with golf=hole) etc. That is "Tagging for the renderer" and it is provoked when golf=* has not been rendered. |
"Nothing has happened" is not quite correct. This depends on the rendering database schema change, which is covered in #2533. So there is already a PR for the prerequisite to this issue and it is close to being merged. |
Given that all the prerequisites should be in place now, any chance something can be done about this in the near future? I just tried mapping part of a golf course, and while this is how it looks in josm: and this is how it's being rendered: which is... somewhat disappointing. As a minimum, I would be happy if areas (closed way or multipoly) with the following tags could just be rendered in different colors: golf=bunker (as sand) Also, I would VERY much like leisure=golf_course to use a different color than natural=scrub. Anything more complex than just coloring these areas can wait for later. But just these would greatly improve the visual feedback mappers get from mapping golf courses and would hopefully reduce the instances were golf features are tagged with nonsensical tags purely to make them show up in some way in the map. |
Would you like to prepare the code for this? |
I think it's too specialized for general map and we should reject this tha same as #3161 |
I guess you're right, it's even more specialized. |
Darn, I was totally in the process of testing it out too. Although I agree its rather specialized, I think we should render golf related stuff anyway because its being miss tagged quite a lot. Plus, its being rendered properly on the French and German maps also. So why not? |
@Adamant36 In the topic of golf courses, you can taka a look at #2069 and try with an outline, because area filling seem to not working good there. |
@Tomasz-W, from the discussion on issue #426, it sounds like that issue was particular to leisure=golf. Which I assume is different from the particular golf=whatever tags. Plus it only in one situation which wasbnt that bad and not rendering something based on one outlier seems a little muh to me. Plus, #2069 is about the golf course as a whole being rendered, not its individual features. So its different then this one. Whatever issues it has. Not to mention mapping things like a green with an outline will do nothing to detor it from tagged as grass, if every feature on a golf course is shown as an outline instead of fill they will class with each other and look bad like national parks in northern California do now, and showing things like a pin or sand trap as an outline just isnt realistic. So I still think this should be reopened and reconsidered. It seemed like there was more support for it then oposition and the tags have thousands of uses. |
Note rendering |
I think it would be worth rendering some of the golf tags. It would be straightforward to render fairways, tees and greens the same as grass and bunkers as sand. While it is somewhat specialized, the tags are used frequently are they are better than using landuse=grass and natural=sand to get the same rendering. @kocio-pl, would you consider reopening this? |
Sure, I will reopen if there will be a pending discussion, to reflect that there's some progress. |
Sure. I had them rendering a while back. It was a little complicated and took an extra .mss file for some reason. But im sure I can figure it out again. |
Reopened; requires database reload but we should decide first if these features should be added to the lua schema, so this requires some discussion about if it's worth considering. While I'm not a fan of golf myself, since these are such prominent features and double-tagging for rendering is some common, I think rendering might be worthwhile to improve the tagging . Most of the features could be rendered similarly to a common type of landcover, so it would not add to the burden of finding new colors, nor would new svg icons be required. The French style provides some ideas for implementation. |
#4017 is now open to import the features properly as polygons when mapped as closed ways. |
These features are now imported with the correct schema, so it is possible to open a PR to solve this issue. I would suggest looking at how golf features are rendered in the French style (https://github.com/cquest/osmfr-cartocss/blob/master/sports.mss) and the alt-colors style (https://github.com/imagico/osm-carto-alternative-colors/blob/alternative-colors/golf.mss). |
@jeisenbe, would it be coded like a normal feature now or does it still take the work around other styles use? I had it rendering fine before it was imported and I fail to see what the difference would be now. Less code and increased speed or something else? |
All closed ways with The tags are in the hstore "tags" column, I believe, so you would need to select the features like this:
|
I support the suggestion to render |
- Update landcover layer to include golf area features - Add golf-lines layer - Add style/golf.mss and specify rendering for: - golf=green and golf=tee (light green color between @grass and @park; tee with gray point labeled with ref) - golf=fairway and golf=driving_range (@grass) - golf=bunker (color and pattern for @sand and beach) - golf=rough (darker green between @scrub and @grass) - golf=hole as way (dashed line, darker green derived from @golf_course; labeled with ref) - golf=hole as point and golf=pin (symbols/golf_pin.svg; labeled with ref) Based largely on imagico/osm-carto-alternative-colors.
I've opened #4212 based on what I understand the current state of this issue is. All comments welcome. |
- Update landcover layer to include golf area features - Add golf-lines layer - Add style/golf.mss and specify rendering for: - golf=green and golf=tee (light green color between @grass and @park; tee with gray point labeled with ref) - golf=fairway and golf=driving_range (@grass) - golf=bunker (color and pattern for @sand and beach) - golf=rough (darker green between @scrub and @grass) - golf=hole as way (dashed line, darker green derived from @golf_course; labeled with ref) - golf=hole as point and golf=pin (symbols/golf_pin.svg; labeled with ref) Based largely on imagico/osm-carto-alternative-colors.
- Change leisure=golf_course/miniature_golf_course to @campsite, eliminating @golf_course color - Update landcover layer to include golf area features - Update amenity-points layer to include golf point features - Add golf-line layer - Add style/golf.mss and specify rendering for: - golf=tee/fairway/driving_range (@grass, z>=12) - golf=green (@pitch, z>=13) - golf=bunker (@sand, z>=13) - golf=rough (@grass, z>=12; with texture, z>=15) - golf=hole as way (solid @leisure-green line, labeled with ref, z>=16) - golf=hole as point and golf=pin (symbols/golf_pin.svg; labeled with ref in @leisure-green, z>=16)
Update leisure=golf_course color and render golf=* features (#661)
Hello good, We are looking for a database already made that contains the maps of the fields and fairways of a golf course or people who help us to do it. It's for a pilot project, can someone help or guide me? Thank you very much in advance. |
Please consider importing the "golf" key and render its values, they are documented here:
http://wiki.openstreetmap.org/wiki/Tag:leisure%3Dgolf_course
Particularly golf=
bunker (rendered as sand)
hole (the hole area)
pin (zoom 18/19?)
green
fairway
rough (rendered like natural=scrub)
The text was updated successfully, but these errors were encountered: