I need your idea

orkun temiz at DEPREM.GOV.TR
Tue Jun 14 01:38:07 PDT 2005


hello

I need your idea
how can I show an satellite imagery in full extent when
you click in menu.

if you have time please look at :

"http://landslide.deprem.gov.tr/cgi/map4.php" and click in "satellite"
I just want it to fill whole map's window.

I used php-mapscript and here is the code fragment:

     /$uydulayer->set("status",1); # on
  
      $minx=414562.225;
      $miny=4510820;
      $maxx=521317.775;
      $maxy=4617510;
     
      $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]);
      $map->setextent($extent_to_set[0],$extent_to_set[1],
               $extent_to_set[2],$extent_to_set[3]);

          
      $my_extent = ms_newrectObj();

      $my_extent->setextent($extent_to_set[0],$extent_to_set[1],
                                        
$extent_to_set[2],$extent_to_set[3]);

     
      $zoom_rect = ms_newRectObj();

      $zoom_rect->setextent(200,203,200,203);   //satellite imagery 
pixel extents
     
      $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent);

      $extent_to_html = $minx." ".$miny." "
                      .$maxx." ".$maxy;

/I will appreciate if you give a sense/

/Ahmet Temiz

______________________________________
XamimeLT - 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.



More information about the MapServer-users mailing list