From 7c1910a36f5b8812a425749100f6fa9fe7b4078f Mon Sep 17 00:00:00 2001 From: Sylvie Lamy-Thepaut Date: Wed, 22 Nov 2023 11:47:00 +0000 Subject: [PATCH] Opencharts : Symbol Plotting by property --- src/visualisers/SymbolPlotting.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/visualisers/SymbolPlotting.cc b/src/visualisers/SymbolPlotting.cc index 362f29e8..aedc5782 100644 --- a/src/visualisers/SymbolPlotting.cc +++ b/src/visualisers/SymbolPlotting.cc @@ -200,10 +200,20 @@ void SymbolPlotting::by_property(Data& data, BasicGraphicsObjectContainer& out) height = height*property_height_scaling_factor_*factor; symbol->setHeight(height); + + UserPoint geo = UserPoint(point->longitude(), point->latitude()); + std::stack duplicates; + transformation.wraparound(geo, duplicates); + while (duplicates.empty() == false) { + PaperPoint xy = transformation(duplicates.top()); + symbol->push_back(xy); + duplicates.pop(); + + } - PaperPoint xy = transformation(UserPoint(point->longitude(), point->latitude())); + // PaperPoint xy = transformation(UserPoint(point->longitude(), point->latitude())); - symbol->push_back(xy); + // symbol->push_back(xy); out.push_back(symbol);