Ankur,
Did you check the values that the $extent_to_set array have ? Are they numbers
? Because the error message explains "mapObj::setExtent() expects parameter 1
to be double, string given".
From: ankur chitranshi <[email protected]>
To: mapserver-users <[email protected]>
Sent: Monday, August 29, 2016 1:21 AM
Subject: [mapserver-users] Uncaught exception 'MapScriptException'
Dear All,
How to resolve this error,
Fatal error: Uncaught exception 'MapScriptException' with message
'mapObj::setExtent() expects parameter 1 to be double, string given' in
C:\ms4w\Apache\htdocs\indore\index.php:26Stack trace:#0
C:\ms4w\Apache\htdocs\indore\index.php(26): mapObj->setExtent('minx', 'miny',
'maxx', 'maxy')#1 C:\ms4w\Apache\htdocs\indore\index.php(386):
zoom1(Object(mapObj), Array, -2, -1)#2 {main} thrown in
C:\ms4w\Apache\htdocs\indore\index.php on line 26
my code isĀ
$map->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);$my_point
= ms_newpointObj();
$my_point->setXY($_POST["map_x"],$_POST["map_y"]);$my_extent =
ms_newrectObj();$my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);if($zoom!=2)$map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,
$my_extent);
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users