what i am doing wrong?

Eduardo Zenaide ezenaide at GMAIL.COM
Tue May 15 14:46:17 EDT 2007


hello list,

i'm trying to use this to convert minx,miny,maxx,maxy values to pixels.
what could be wrong?

            $XYp = $_REQUEST["INPUT_COORD"];
            $XYp_Array = explode(',',$XYp);
            $Xp_Array = explode(';',$XYp_Array["1"]);

            $Xp1 = $XYp_Array["0"];
            $Xp2 = $Xp_Array["0"];
            $Yp1 = $Xp_Array["1"];
            $Yp2 = $XYp_Array["2"];

            $K = $gpoMap->extent->minx - $_REQUEST["minx"];
            $Ndd = $K / $Xp1;
            $Xp_dd = $gpoMap->extent->minx / $Ndd;


i think $Ndd its the conversion factor, isn't it? so, $Xp_dd should return
the correct value of minx in pixels.
or maybe i'm totally wrong. :D


-- 
Eduardo Zenaide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070515/163ff8e2/attachment.html


More information about the mapserver-users mailing list