Styling antarctic ice shelves[ still incomplete ]
Needs ReviewPublic

Authored by tandon on Jun 24 2016, 3:03 PM.

Details

Reviewers
nienhueser
rahn
Summary

Issue
For displaying ice shelves Marble needs to parse the following tags [('glacier:type','shelf'), ('natural', 'glacier')]. Due to the ('natural', 'glacier') key-valye pair, the corresponding placemark gets a visual category of NaturalGlacier however since the OSM way also contains an additional tag ('glacier:type','shelf'), the placemark must be styled differently from a plain NaturalGlacier. Now an antarctic ice shelf can either be a single GeoDataLinearRing or it may be a GeoDataPolygon which consists of several inner and outer rings.

Currently when Marble parses an OSM relation which describes a multipolygon, it does not store the the tags(key-value) pairs of a relation's component ways. During parsing it just determines the visual category of the OSM multipolygon relation from its component ways and stores it into the corresponding placemark. Also it stores the key-value pairs of the OSM relation but discards the key-value pairs of the OSM relation's component ways which effects the conditional styling of certain placemarks.

Problem
In spite of modifying the OSM parsing classes so as to handle the above issues I am not able to store the key-value pairs of the OSM relation's component ways into its OsmPlacemarkData. When I tried to add a few qDebug() statements in OsmParser.cpp and OsmRelation.cpp to check any mistake which I may be making, these statements are displaying nothing, i.e qDebug() is not working when I use it inside OsmParser.cpp or OsmRelation.cpp**

Current Rendering

As you can see in the image below, the GeoDataLinearRings i.e rings which don't have any holes are rendered properly, but GeoDataPolygons i.e rings which have holes in them are rendered as if they are plain NaturalGlaciers and not ice shelves.

Diff Detail

Repository
R34 Marble
Lint
Lint Skipped
Unit
Unit Tests Skipped
tandon updated this revision to Diff 4703.Jun 24 2016, 3:03 PM
tandon retitled this revision from to Styling antarctic ice shelves[ still incomplete ].
tandon updated this object.
tandon edited the test plan for this revision. (Show Details)
tandon added reviewers: nienhueser, rahn.
tandon set the repository for this revision to R34 Marble.
tandon added subscribers: nienhueser, rahn.