enable lazy initialization of proj4 in rendering pipeline - refs #1703
This commit is contained in:
parent
f8b1520d1a
commit
e7f648eceb
1 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@ void feature_style_processor<Processor>::apply()
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
projection proj(m_.srs());
|
projection proj(m_.srs(),true);
|
||||||
double scale_denom = mapnik::scale_denominator(m_,proj.is_geographic());
|
double scale_denom = mapnik::scale_denominator(m_,proj.is_geographic());
|
||||||
scale_denom *= scale_factor_;
|
scale_denom *= scale_factor_;
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ void feature_style_processor<Processor>::apply(mapnik::layer const& lyr, std::se
|
||||||
p.start_map_processing(m_);
|
p.start_map_processing(m_);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
projection proj(m_.srs());
|
projection proj(m_.srs(),true);
|
||||||
double scale_denom = mapnik::scale_denominator(m_,proj.is_geographic());
|
double scale_denom = mapnik::scale_denominator(m_,proj.is_geographic());
|
||||||
scale_denom *= scale_factor_;
|
scale_denom *= scale_factor_;
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ void feature_style_processor<Processor>::apply_to_layer(layer const& lay, Proces
|
||||||
progress_timer layer_timer(std::clog, "rendering total for layer: '" + lay.name() + "'");
|
progress_timer layer_timer(std::clog, "rendering total for layer: '" + lay.name() + "'");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
projection proj1(lay.srs());
|
projection proj1(lay.srs(),true);
|
||||||
proj_transform prj_trans(proj0,proj1);
|
proj_transform prj_trans(proj0,proj1);
|
||||||
|
|
||||||
#if defined(RENDERING_STATS)
|
#if defined(RENDERING_STATS)
|
||||||
|
|
Loading…
Reference in a new issue