diff --git a/src/agg/process_raster_symbolizer.cpp b/src/agg/process_raster_symbolizer.cpp index bd7cc6af9..e64a07015 100644 --- a/src/agg/process_raster_symbolizer.cpp +++ b/src/agg/process_raster_symbolizer.cpp @@ -174,7 +174,7 @@ void agg_renderer::process(raster_symbolizer const& sym, colorizer->colorize(source,feature.props()); box2d target_ext = box2d(source->ext_); - prj_trans.backward(target_ext, 20); + prj_trans.backward(target_ext, PROJ_ENVELOPE_POINTS); box2d ext=t_.forward(target_ext); int start_x = (int)ext.minx(); diff --git a/src/feature_style_processor.cpp b/src/feature_style_processor.cpp index c0de56428..15451bf6f 100644 --- a/src/feature_style_processor.cpp +++ b/src/feature_style_processor.cpp @@ -229,7 +229,7 @@ void feature_style_processor::apply_to_layer(layer const& lay, Proces box2d layer_ext = lay.envelope(); // first, try intersection of map extent forward projected into layer srs - if (prj_trans.forward(map_ext, 20) && map_ext.intersects(layer_ext)) + if (prj_trans.forward(map_ext, PROJ_ENVELOPE_POINTS) && map_ext.intersects(layer_ext)) { layer_ext.clip(map_ext); } @@ -242,7 +242,7 @@ void feature_style_processor::apply_to_layer(layer const& lay, Proces return; } // next try intersection of layer extent back projected into map srs - else if (prj_trans.backward(layer_ext, 20) && map_ext.intersects(layer_ext)) + else if (prj_trans.backward(layer_ext, PROJ_ENVELOPE_POINTS) && map_ext.intersects(layer_ext)) { layer_ext.clip(map_ext); // forward project layer extent back into native projection @@ -261,7 +261,7 @@ void feature_style_processor::apply_to_layer(layer const& lay, Proces } box2d query_ext = m_.get_current_extent(); - prj_trans.forward(query_ext, 20); + prj_trans.forward(query_ext, PROJ_ENVELOPE_POINTS); query::resolution_type res(m_.width()/query_ext.width(), m_.height()/query_ext.height());