fix large viewbox computation

Fixes #1137.
This commit is contained in:
Sarah Hoffmann 2018-08-13 20:52:49 +02:00
parent 569184a5b0
commit 0394f32438

View File

@ -108,8 +108,8 @@ class SearchContext
$aViewBox[3]
);
$fHeight = $aViewBox[0] - $aViewBox[2];
$fWidth = $aViewBox[1] - $aViewBox[3];
$fHeight = abs($aViewBox[0] - $aViewBox[2]);
$fWidth = abs($aViewBox[1] - $aViewBox[3]);
$this->sqlViewboxLarge = sprintf(
'ST_SetSRID(ST_MakeBox2D(ST_Point(%F,%F),ST_Point(%F,%F)),4326)',