what i am doing wrong?

Eduardo Zenaide ezenaide at GMAIL.COM
Tue May 15 11:46:17 PDT 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.htm>


More information about the MapServer-users mailing list