[mapserver-users] Uncaught exception 'MapScriptException'
Carlos Ruiz
boolean10001 at yahoo.com
Mon Aug 29 11:22:35 PDT 2016
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 <ankuriimt at gmail.com>
To: mapserver-users <mapserver-users at lists.osgeo.org>
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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160829/a6ba3170/attachment.htm>
More information about the MapServer-users
mailing list