Fix float values type errors on GIS export to PNG, SVG, PDF
Using: opengis database Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
deac7cffde
commit
a6a982fd77
@ -116,10 +116,10 @@ class GisLineString extends GisGeometry
|
||||
// draw line section
|
||||
imageline(
|
||||
$image,
|
||||
$temp_point[0],
|
||||
$temp_point[1],
|
||||
$point[0],
|
||||
$point[1],
|
||||
(int) $temp_point[0],
|
||||
(int) $temp_point[1],
|
||||
(int) $point[0],
|
||||
(int) $point[1],
|
||||
$color
|
||||
);
|
||||
$temp_point = $point;
|
||||
|
||||
@ -129,10 +129,10 @@ class GisMultiLineString extends GisGeometry
|
||||
// draw line section
|
||||
imageline(
|
||||
$image,
|
||||
$temp_point[0],
|
||||
$temp_point[1],
|
||||
$point[0],
|
||||
$point[1],
|
||||
(int) $temp_point[0],
|
||||
(int) $temp_point[1],
|
||||
(int) $point[0],
|
||||
(int) $point[1],
|
||||
$color
|
||||
);
|
||||
$temp_point = $point;
|
||||
|
||||
@ -115,7 +115,7 @@ class GisMultiPoint extends GisGeometry
|
||||
continue;
|
||||
}
|
||||
|
||||
imagearc($image, $point[0], $point[1], 7, 7, 0, 360, $color);
|
||||
imagearc($image, (int) $point[0], (int) $point[1], 7, 7, 0, 360, $color);
|
||||
}
|
||||
// print label for each point
|
||||
if ((isset($label) && trim($label) != '')
|
||||
|
||||
@ -112,8 +112,8 @@ class GisPoint extends GisGeometry
|
||||
if ($points_arr[0][0] != '' && $points_arr[0][1] != '') {
|
||||
imagearc(
|
||||
$image,
|
||||
$points_arr[0][0],
|
||||
$points_arr[0][1],
|
||||
(int) $points_arr[0][0],
|
||||
(int) $points_arr[0][1],
|
||||
7,
|
||||
7,
|
||||
0,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user