I need your idea
orkun
temiz at DEPREM.GOV.TR
Wed Jun 15 00:22:07 PDT 2005
thank you for your interest
Simpson wrote:
>I think the rectangle is what Mapserver zooms to within your extent.
>
>414562,4617510 521317,4617510
>0,0 400,0
>-------------------------------------
>| |
>| |
>| |
>| |
>| |
>| |
>| |
>| |
>| |
>| |
>-------------------------------------
>0,406 400,406
>414562,4510820 521317,4510820
>
>So in the above example, to zoom to the full extent you'd need to set the
>pixel extent rectangle to (0,406,400,0).
>The satellite imagery may not fill the entire output image, since Mapserver
>maintains aspect ratio.
>
>
if Mapserver maintains aspect ratio, all my efforts will be useless.
But with zoom tool I can achieve the zooming of satellite imagery.
Besides, I tried (0,406,400,0) pixel extent. The image is unzoomed.
>Drew.
>
>-----Original Message-----
>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
>Behalf Of orkun
>Sent: Tuesday, June 14, 2005 3:38 AM
>To: MAPSERVER-USERS at LISTS.UMN.EDU
>Subject: [UMN_MAPSERVER-USERS] I need your idea
>
>
>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.
>
>
>
>
regards
______________________________________
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