Problem

Ferencik Ioan ferencik.ioan at PERSONAL.RO
Fri Apr 1 03:59:51 EST 2005


Hi list,

I am a new user of Mapserver an I am running the MS4W from DM
Solutions/Maptools.org Mapserver/Apache/PhpMapScript. I encountered some
problems with this map file:
MAP
  IMAGETYPE PNG24
  EXTENT 382625 577088 404045 595508
  FONTSET "fonts/fonts.list"
  SIZE 1000 1000
  SHAPEPATH "date"
  IMAGECOLOR 255 555 255
  TEMPLATEPATTERN "index"
  PROJECTION
   "init=epsg:31700"
  END
  # Start of LAYER DEFINITIONS ---------------------------------------------
  LAYER # layer de tip raster
        NAME dem
        DATA "cj.tif"
        TYPE RASTER
        PROJECTION
                 "init=epsg:31700"
         END
         STATUS default
         PROCESSING "BANDS=1,2,3"
  END #--sfarsit layer de tip raster
  LAYER # States polygon layer begins here
    NAME test
    DATA strazi
    STATUS DEFAULT
    TYPE LINE
    PROJECTION
      "init=epsg:31700"
    END
    #CLASSITEM "NAME"
    LABELITEM "NAME"
    CLASS

      COLOR 255 255 190
      LABEL
      COLOR 0 0 0
        TYPE TRUETYPE
        FONT arial
        SIZE 8

        POSITION LL
        PARTIALS true
        MINDISTANCE 300
        #BUFFER 4
      END
    END
  END

  # End of LAYER DEFINITIONS -------------------------------
        WEB
                IMAGEPATH "c:\ms4w\rosia\tmp\ms_tmp\"
                IMAGEURL "c:\ms4w\rosia\tmp\"
                TEMPLATE 'index.html'


        END


END # end of map file/object


I can display the map In IE in map mode but when i substitute the browse mode
with the folowing template:


<!-- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<html>
<title> Aplicatie Mapserver</title>
<body>
<FORM action="/cgi-bin/mapserv.exe" method="GET" target="_self">
  <input type="hidden" name="map" value="c:\ms4w\rosia\raster.map" >
  <input type="hidden" name="imgext" value="312153.200000 633250.640000
333573.200000 654670.640000">
  <input type="hidden" name="imgxy" value="500 500">
  <input type="hidden" name="zoom" value="1">
  <input type="hidden" name="mode" value="browse">
  <p align="center" style="border: 1px dashed red;   "> Aplicatie
Mapserver</p><hr>
  <div align="center" style="border: 1px dashed red; width: 502px; height:
502px; ">

        <input type="image" name="img"
value="c:\ms4w\rosia\tmp\MS1112343259276.png" width="500" height="500">



  </div>


</FORM>


</body>


</html>


In browse mode i see only a blank image but i can still pan through this
image....Mapserver seems to work. In ta same time in MapServer's  temp folders
there are png images. I don't understand why I can't see those images in
template and browse mode. Same results on Mandrake Linux with same
mapfile and template. I think i am missing something. Any suggestions?
Thanks






_____________________________________________
Castiga peste 1000 de premii cu Wella Design!
http://wella.boom.ro



More information about the mapserver-users mailing list