Removed 0.5 limit on width and height in gdal plugin, added new visual tests
This commit is contained in:
parent
170e20e864
commit
adacb16a2c
2 changed files with 1 additions and 11 deletions
|
@ -187,16 +187,6 @@ feature_ptr gdal_featureset::get_feature(mapnik::query const& q)
|
||||||
int width = end_x - x_off;
|
int width = end_x - x_off;
|
||||||
int height = end_y - y_off;
|
int height = end_y - y_off;
|
||||||
|
|
||||||
// don't process almost invisible data
|
|
||||||
if (box.width() < 0.5)
|
|
||||||
{
|
|
||||||
width = 0;
|
|
||||||
}
|
|
||||||
if (box.height() < 0.5)
|
|
||||||
{
|
|
||||||
height = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
//calculate actual box2d of returned raster
|
//calculate actual box2d of returned raster
|
||||||
box2d<double> feature_raster_extent(x_off, y_off, x_off + width, y_off + height);
|
box2d<double> feature_raster_extent(x_off, y_off, x_off + width, y_off + height);
|
||||||
intersect = t.backward(feature_raster_extent);
|
intersect = t.backward(feature_raster_extent);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d96d1067796f1fe99da27941b216cb6991661a6a
|
Subproject commit 457eb219475d5a50e742d97ccbbe1015ff4f6246
|
Loading…
Add table
Reference in a new issue