hello list,<br><br>i&#39;m trying to use this to convert minx,miny,maxx,maxy values to pixels.<br>what could be wrong?<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $XYp = $_REQUEST[&quot;INPUT_COORD&quot;];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $XYp_Array = explode(&#39;,&#39;,$XYp);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $Xp_Array = explode(&#39;;&#39;,$XYp_Array[&quot;1&quot;]);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $Xp1 = $XYp_Array[&quot;0&quot;];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $Xp2 = $Xp_Array[&quot;0&quot;];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $Yp1 = $Xp_Array[&quot;1&quot;];
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $Yp2 = $XYp_Array[&quot;2&quot;];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $K = $gpoMap-&gt;extent-&gt;minx - $_REQUEST[&quot;minx&quot;];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $Ndd = $K / $Xp1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $Xp_dd = $gpoMap-&gt;extent-&gt;minx / $Ndd;
<br><br><br>i think $Ndd its the conversion factor, isn&#39;t it? so, $Xp_dd should return the correct value of minx in pixels.<br>or maybe i&#39;m totally wrong. :D<br><br clear="all"><br>-- <br>Eduardo Zenaide