[mapserver-users] MapScriptException

Jeff McKenna jmckenna at gatewaygeomatics.com
Fri Sep 16 04:58:00 PDT 2016


It seems that you are quite stuck on this.  Could you create a small 
test case (a few lines of php file, and small test data if needed) and 
file this as a new ticket in MS4W's tracker?  I'll see if I can debug 
your issue somehow. http://ms4w.com/trac

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2016-09-16 5:24 AM, ankur chitranshi wrote:
> 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\..\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);
> *
>






More information about the MapServer-users mailing list