[Marble-devel] [Differential] [Request, 12 lines] D1996: Add styling for antarctic ice shelves
tandon (Akshat Tandon)
noreply at phabricator.kde.org
Fri Jun 24 18:28:09 UTC 2016
tandon created this revision.
tandon added reviewers: nienhueser, rahn.
tandon set the repository for this revision to rMARBLE Marble.
REVISION SUMMARY
**Rendering**
Only ice shelves
F157922: shelf9.png <https://phabricator.kde.org/F157922>
Ice shelves along with normal glaciers
F157924: shlef_glac9.png <https://phabricator.kde.org/F157924>
**Issues/Questions**
For rendering these ice shelves the following tag has been used
<tag k='glacier:type' v='shelf' /> which is a proposed glacier tag(http://wiki.openstreetmap.org/wiki/Proposed_features/Glaciers_tags). This tag is to be used in conjugation with <tag k='natural' v='glacier' /> i.e both of these tags have to be present so as to express an ice shelf. (however for now the shp2osm converter assigns only the former tag for expressing an ice shelf for correct rendering)
Now to render ice shelves a new visual category has been created(NaturalIceShelf). Since currently there is only one to one mapping between an osm tag(key - value pair) to a visual category, I have mapped NaturalIceShelf to OsmTag( "glacier:type", "shelf" ). However there also exists a mapping for OsmTag( "natural", "glacier" ) to NaturalGlaceir for rendering regular glaciers. It can happen that a regular OSM file containing both of these tags may not get rendered correctly since it may get assigned any styling instead of the right one.
What must be done in such a scenario ? (should a many OSM tags to one visual category map be introduced instead of the current one to one map in OsmPresetLibrary or should things be left as they are for now)
REPOSITORY
rMARBLE Marble
REVISION DETAIL
https://phabricator.kde.org/D1996
AFFECTED FILES
src/lib/marble/StyleBuilder.cpp
src/lib/marble/geodata/data/GeoDataFeature.cpp
src/lib/marble/geodata/data/GeoDataFeature.h
src/lib/marble/layers/GeometryLayer.cpp
src/lib/marble/osm/OsmPresetLibrary.cpp
tools/shp2osm/polyshp2osm.py
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: tandon, nienhueser, rahn
Cc: marble-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20160624/7c4ed8d6/attachment.html>
More information about the Marble-devel
mailing list