I had a typo in the 2nd URL... it should be:<br><br>url:<br>
----<br>
<a href="http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map">http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map
</a><br><br>result:<br>--------<br>map image of full extent from mapfile is returned... not the zoomed image.<br><br><br><div class="gmail_quote">On Dec 6, 2007 3:03 PM, Matthew Pettis <<a href="mailto:matthew.pettis@gmail.com">
matthew.pettis@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I am trying to just do raw CGI calls to do some zooming (trying to see what the necessary raw CGI controls are to do certain functions, don't want to use templates to do zooming just yet until i understand this), but can't seem to do it. I try to pass a zoom parameter in, but I always get the map image of the extent set in my .map file. Can someone help me with the right incantation I need to pass in the address bar?
<br><br>here's what I have tried to no avail:<br><br>relevant mapfile settings (what i think is relevant):<br>---------------------------------------------------------------------------<br> ################<br> # Map attributes
<br> ################<br> IMAGETYPE PNG<br> EXTENT 189775.375 4810000 761662.375 5472414.5<br> SIZE 660 495<br>---------------------------------------------------------------------------<br>
<br><br>=========================<br>url (no zoom) that works:<br>------------------------------------<br><a href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map" target="_blank">
http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map</a><br>result:<br>---------<br>the right map of full extent is displayed in my browser<br><br>...<br><br>url:<br>
----<br>
<a href="http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=&189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map" target="_blank">
http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=&189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map
</a><br>
<br>result:<br>
---------<br>
msDrawMap(): Image handling error. Unable to initialize image. <br>
msCalculateScale(): General error message. Invalid image extent,
minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. <br>
msCalculateScale(): General error message. Invalid image extent,
minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.<br>
<br>=========================<br><font color="#888888">
<br clear="all"><br>-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>-- Murray Waas
</font></blockquote></div><br><br clear="all"><br>-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>-- Murray Waas