I'm not able to see my zoomed image!!!

aborruso at spaziogis.it aborruso at spaziogis.it
Wed Jun 14 12:15:43 EDT 2000


I'm working under NT with ms_3.3.009_win32. I have builded a page with only
one layer: a tif image. When I open my page
(http://mapserver/mapserv.exe?map=c:%5Cinetpub%5Cwwwroot%5Ccgi-bin%5Craster.map&layer=landsat&zoomsize=2)

I see everything in correct manner, but when I zoom I see only my correcct
scalebar and my correct reference image, but I don't see my zoomed map.
What's wrong??
This is my map file:

NAME raster1
EXTENT 92994 944996 94003 946002
SIZE 300 300
SHAPEPATH "ms_demo/data"
UNITS METERS

  WEB
    TEMPLATE ms_demo/raster.htm
    IMAGEPATH "ms_demo/data/tmp/"
    IMAGEURL "ms_demo/data/tmp/"
  END

SCALEBAR
    STATUS ON
    INTERVALS 4
    SIZE 200 2
    COLOR 0 0 0
    OUTLINECOLOR 0 0 0
    UNITS meters
    LABEL
      COLOR 0 0 0
      SIZE small
    END
  END


REFERENCE
    STATUS ON
    IMAGE ms_demo/data/bcs156.gif
    SIZE 150 150
    EXTENT  92994 944996 94003 946002
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
  END


LAYER
  NAME landsat
  TYPE RASTER
  STATUS ON
  DATA bcs156.tif
  OFFSITE 0
  END
END


And this is my template file:

<html>

<head>
<title></title>
<style>
<!--
BODY { font-family: Georgia; font-size: 10pt; margin-left: 10px;
margin-right: 10px; margin-top: 5px; margin-bottom: 5px }
H1 { font-family: Georgia, serif; font-size: 32pt; color: rgb(128,0,0) }
H2 { font-family: Georgia, serif; font-size: 26pt }
H3 { font-family: Georgia, serif; font-size: 18pt }
H4 { font-family: Georgia, serif; font-size: 16pt }
H5 { font-family: Georgia, serif; font-size: 14pt }
H6 { font-family: Georgia, serif; font-size: 12pt }
P { font-family: Georgia, serif; font-size: 10pt }
.Indent { text-indent: 20px }
.Teal { color: rgb(0,128,128) }
.Maroon {color: rgb(128,0,0) }
.Small { font-size: 8pt }
I, EM, ADDRESS { font-family: Georgia, serif }
B, STRONG { font-family: Georgia, serif }
TD, TR { font-family: Georgia, serif; font-size: 10pt }
TH { font-family: Georgia, serif; font-size: 12pt; font-weight: bold }
-->
</style>
</head>

<body>

<h3>&nbsp;</h3>

<form method="GET" action="mapserv.exe">

    <input type="hidden" name="map" value="[map]">
    <input type="hidden" name="imgext" value="[mapext]">
  <table border=1 cellpadding=3>
    <tr>
    <td align=center>
        <p>
          <input type="image" name="img" src="[img]" border="0">
        </p>
        <p><img src="[scalebar]"><br>
        </p>
      </td>
    <td valign=top>
      <font size=+1 face=arial,helvetica>Map Controls</font>
      <p>
      Set your zoom option:<br>
      <select name="zoom" size="1">
      <option value="10" [zoom_10_select]> Zoom in 10 times
      <option value="8" [zoom_8_select]> Zoom in 8 times
      <option value="4" [zoom_4_select]> Zoom in 4 times
      <option value="3" [zoom_3_select]> Zoom in 3 times
      <option value="2" [zoom_2_select]> Zoom in 2 times
      <option value="1"  [zoom_1_select]> Recenter Map
      <option value="-2" [zoom_-2_select]> Zoom out 2 times
      <option value="-3" [zoom_-3_select]> Zoom out 3 times
      <option value="-4" [zoom_-4_select]> Zoom out 4 times
      <option value="-8" [zoom_-8_select]> Zoom out 8 times
      <option value="-10" [zoom_-10_select]> Zoom out 10 times
      </select>
        <p align="center"><img src="[ref]">
        </td>
    </tr></table>
    </form>


  </body>
</html>



Thank you,

Andrea




More information about the mapserver-users mailing list