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