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)
|
else if (type == geometry::geometry_types::Polygon)
|
||||||
{
|
{
|
||||||
auto const& poly = util::get<geometry::polygon<double>>(geom);
|
auto const& poly = util::get<geometry::polygon<double>>(geom);
|
||||||
proj_transform backwart_transform(prj_trans_.dest(), prj_trans_.source());
|
|
||||||
view_strategy vs(t_);
|
view_strategy vs(t_);
|
||||||
proj_strategy ps(backwart_transform);
|
proj_backward_strategy ps(prj_trans_);
|
||||||
using transform_group_type = geometry::strategy_group<proj_strategy, view_strategy>;
|
using transform_group_type = geometry::strategy_group<proj_backward_strategy, view_strategy>;
|
||||||
transform_group_type transform_group(ps, vs);
|
transform_group_type transform_group(ps, vs);
|
||||||
geometry::polygon<double> tranformed_poly(geometry::transform<double>(poly, transform_group));
|
geometry::polygon<double> tranformed_poly(geometry::transform<double>(poly, transform_group));
|
||||||
if (how_placed == INTERIOR_PLACEMENT)
|
if (how_placed == INTERIOR_PLACEMENT)
|
||||||
|
|
Loading…
Add table
Reference in a new issue