<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1472494714059_4774"><span>Ankur,</span></div><div id="yui_3_16_0_ym19_1_1472494714059_4701"><span><br></span></div><div id="yui_3_16_0_ym19_1_1472494714059_4659" dir="ltr"><span id="yui_3_16_0_ym19_1_1472494714059_4719">Did you check the values that the </span><span id="yui_3_16_0_ym19_1_1472494714059_4646"><b id="yui_3_16_0_ym19_1_1472494714059_4720">$extent_to_set</b> array have ? Are they numbers ? Because the error message explains </span>"mapObj::setExtent() expects parameter 1 to be double, string
given".</div><div id="yui_3_16_0_ym19_1_1472494714059_4591" class="qtdSeparateBR"><div id="yui_3_16_0_ym19_1_1472494714059_4758"><br></div><div id="yui_3_16_0_ym19_1_1472494714059_4756"><br></div></div><div style="display: block;" id="yui_3_16_0_ym19_1_1472494714059_4670" class="yahoo_quoted"> <div id="yui_3_16_0_ym19_1_1472494714059_4669" style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div id="yui_3_16_0_ym19_1_1472494714059_4668" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1472494714059_4704" dir="ltr"> <font id="yui_3_16_0_ym19_1_1472494714059_4755" size="2" face="Arial"> <hr id="yui_3_16_0_ym19_1_1472494714059_4754" size="1"> <b><span style="font-weight:bold;">From:</span></b> ankur chitranshi <ankuriimt@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> mapserver-users <mapserver-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, August 29, 2016 1:21 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] Uncaught exception 'MapScriptException'<br> </font> </div> <div id="yui_3_16_0_ym19_1_1472494714059_4667" class="y_msg_container"><br><div id="yiv1991649706"><div id="yui_3_16_0_ym19_1_1472494714059_4666" dir="ltr"><div id="yui_3_16_0_ym19_1_1472494714059_4688"><span style="color:rgb(0,0,0);font-size:medium;">Dear All,</span><b><br></b></div><div id="yui_3_16_0_ym19_1_1472494714059_4690"><span style="color:rgb(0,0,0);font-size:medium;"><br></span></div><div id="yui_3_16_0_ym19_1_1472494714059_4691"><span style="color:rgb(0,0,0);font-size:medium;">How to resolve this error,</span></div><div id="yui_3_16_0_ym19_1_1472494714059_4692"><span style="color:rgb(0,0,0);font-size:medium;"><br></span></div><b>Fatal error</b>: 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 <b id="yui_3_16_0_ym19_1_1472494714059_4775">C:\ms4w\Apache\htdocs\indore\index.php</b> on line <b>26</b><div id="yui_3_16_0_ym19_1_1472494714059_4671"><b><br></b></div><div id="yui_3_16_0_ym19_1_1472494714059_4672"><b>my code is </b></div><div id="yui_3_16_0_ym19_1_1472494714059_4673"><b><br></b></div><div id="yui_3_16_0_ym19_1_1472494714059_4676"><b id="yui_3_16_0_ym19_1_1472494714059_4675"><div id="yui_3_16_0_ym19_1_1472494714059_4674">$map->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);</div><div><b><div style="display:inline!important;">$my_point = ms_newpointObj();</div></b><br></div><div>$my_point->setXY($_POST["map_x"],$_POST["map_y"]);</div><div>$my_extent = ms_newrectObj();</div><div>$my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]);</div><div>if($zoom!=2)</div><div>$map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent);</div></b><div><br></div><div class="yiv1991649706gmail_signature"><br></div>
</div></div></div><br>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br></div> </div> </div> </div></div></body></html>