Skip to content

Commit

Permalink
Opencharts : Symbol Plotting by property
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvielamythepaut committed Nov 22, 2023
1 parent 44b871f commit 7c1910a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/visualisers/SymbolPlotting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<UserPoint> 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);

Expand Down

0 comments on commit 7c1910a

Please sign in to comment.