Opened 9 years ago

Closed 5 years ago

#2954 closed enhancement (duplicate)

[amenity-symbols] Adding rendering for (major) waterfalls

Reported by: SK53 Owned by: mapnik-team@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: waterfall Cc: RicoZ

Description

In various parts of the world major waterfalls are conspicuous landscape features and tourist attractions. Mapnik fails to render these at all with the result that certain waterfalls have been 'tagged for the renderer': e.g., Iguazu and Rheinfalle.

It is suggested that waterfalls pretty much fall in the same class as cliffs and barriers and can be treated using the same rules. Furthermore the type of line symbolizer required for waterfalls is similar to that of cliffs (a line, with some ornamentation on the lower (downstream) side).

Light experimentation suggests that the following changes are required:

  1. Create 2 new line symbols "wfall.png" and "wfall2.png". Example of latter attached.
  2. Create a new style, along these lines (basically 'cliffs')

<Style name="waterfalls">

<Rule>

<Filter>([waterway]='waterfall')</Filter> <MinScaleDenominator?>25000</MinScaleDenominator?> <MaxScaleDenominator?>100000</MaxScaleDenominator?> <LinePatternSymbolizer? file="E:/programs/mapnik_0_6_1/mapnik/symbols/wfall.png" type="png" width="10" height="4"></LinePatternSymbolizer?>

</Rule> <Rule>

<Filter>([waterway]='waterfall')</Filter> <MaxScaleDenominator?>25000</MaxScaleDenominator?> <LinePatternSymbolizer? file="E:/programs/mapnik_0_6_1/mapnik/symbols/wfall2.png" type="png" width="12" height="6"></LinePatternSymbolizer?>

</Rule>

</Style>

  1. Alter the layer 'line features' along the following lines

<Layer name="line features" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over" status="1" clear_label_cache="0">

<StyleName?>cliffs</StyleName?> <StyleName?>waterfalls</StyleName?> <StyleName?>barriers</StyleName?> <Datasource>

<Parameter name="dbname">mapnik</Parameter> <Parameter name="estimate_extent">true</Parameter> <Parameter name="extent"></Parameter> <Parameter name="host">localhost</Parameter> <Parameter name="password">mapnik</Parameter> <Parameter name="port">5432</Parameter> <Parameter name="table">

(select way,barrier,"natural",man_made, waterway from planet_osm_line where barrier is not null or "natural" in ('hedge','cliff') or man_made='embankment' or (waterway='waterfall')) as roads </Parameter>

<Parameter name="type">postgis</Parameter> <Parameter name="user">mapnik</Parameter>

</Datasource>

</Layer>

Attachments (2)

wfall2.png (209 bytes) - added by SK53 9 years ago.
example of Line Symbol for waterfall as way
niagara_wfall2.png (29.1 KB) - added by SK53 9 years ago.
example of suggested rendering for large waterfalls

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by SK53

Attachment: wfall2.png added

example of Line Symbol for waterfall as way

comment:1 Changed 9 years ago by steve8@…

Can I have a couple of URL examples please?

Changed 9 years ago by SK53

Attachment: niagara_wfall2.png added

example of suggested rendering for large waterfalls

comment:3 Changed 8 years ago by Federico Explorador

I support the request for rendering waterfalls. However, I would prefer a polygon for tagging, because many waterfalls are not vertical, but inclined and may descent on a longer way. So also rapids could included.

comment:4 Changed 6 years ago by RicoZ

Did everyone completely forget this ticket? Waterfalls are still not rendered at all. Even shoving a simple stupid icon would be a progress.

comment:5 Changed 6 years ago by RicoZ

Cc: RicoZ added

comment:7 Changed 5 years ago by math1985

Summary: Adding rendering for (major) waterfalls[amenity-symbols] Adding rendering for (major) waterfalls

comment:8 Changed 5 years ago by math1985

Resolution: duplicate
Status: newclosed

This issue is now discussed on Github: https://github.com/gravitystorm/openstreetmap-carto/issues/336

Therefore, I will close the issue here.

Note: See TracTickets for help on using tickets.