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:
William Desportes 2021-04-17 00:29:21 +02:00
parent deac7cffde
commit a6a982fd77
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
4 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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) != '')

View File

@ -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,