image coordinates to geographic coordinates

temiz temiz at DEPREM.GOV.TR
Thu Oct 21 10:03:08 EDT 2004


hello

Despite all my  efforts, I can not correctly convert image coordinates
to geographic coordinates (UTM).
 what might  the javascript code be ?

here is my code:
   x_pct = (evt.clientX / width);
    y_pct = 1 - (evt.clientY / height);
    x_map = ext0 + ( (ext2 - ext0) * x_pct);
    y_map = ext1+ ( (ext3 - ext1) *  y_pct);


thanks in advance

Ahmet Temiz


______________________________________
Inflex - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster at deprem.gov.tr

______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041021/e5eacc53/attachment.html


More information about the mapserver-users mailing list