[mapserver-users] MapScriptException

ankur chitranshi ankuriimt at gmail.com
Wed Aug 31 23:32:54 PDT 2016


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:26 Stack 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);*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160901/edc72ca6/attachment.htm>


More information about the MapServer-users mailing list