Use 'proj_backward_strategy' and avoid creating an extra proj_transform
This commit is contained in:
parent
ff14ad3425
commit
6cc353f8a2
1 changed files with 2 additions and 3 deletions
|
@ -326,10 +326,9 @@ void base_symbolizer_helper::initialize_points() const
|
|||
else if (type == geometry::geometry_types::Polygon)
|
||||
{
|
||||
auto const& poly = util::get<geometry::polygon<double>>(geom);
|
||||
proj_transform backwart_transform(prj_trans_.dest(), prj_trans_.source());
|
||||
view_strategy vs(t_);
|
||||
proj_strategy ps(backwart_transform);
|
||||
using transform_group_type = geometry::strategy_group<proj_strategy, view_strategy>;
|
||||
proj_backward_strategy ps(prj_trans_);
|
||||
using transform_group_type = geometry::strategy_group<proj_backward_strategy, view_strategy>;
|
||||
transform_group_type transform_group(ps, vs);
|
||||
geometry::polygon<double> tranformed_poly(geometry::transform<double>(poly, transform_group));
|
||||
if (how_placed == INTERIOR_PLACEMENT)
|
||||
|
|
Loading…
Reference in a new issue