[Mapserver-users] Re: mapserver & win2k

Dubnansky, Andrew adubnansky at 3eTI.com
Tue Aug 12 10:31:42 EDT 2003


Thanks so much for your reply. Sorry it took me a while to respond, but our
email server IDs listserver email as "spam" (odd that it only stops me from
receiving the email I want to get) ...anyway...

I am confident about the paths. The .png files referenced in the html below
dont appear anywhere on my hard drive.

In another bizarre twist , I did some experimenting and found that if I add
"&mode=map" on to the end of the URL you obtain from the map place holder,
the map image displays all by itself in the browser. The aforementioned file
is being stored to a directory called "mapserv_png_files" that the
application created. 

I am encouraged that Mapserver works for me on some level,but now I am more
confused than ever.


thanks again for your help.



*****************************************
***DEMO_INIT.HTML***

<html>
<head><title>MapServer Demo Interface</title></head>
<body bgcolor="#FFFFFF">

<center><h2>MapServer Demo Interface</h2></center>
<p><hr><p>
Click on the initialize button to fire up the demo with 3 layers turned on
will be accessible for browsing. The
data are of Itasca County, MN and were derived, for the most part, from USGS
1:24,000 quadrangles. Some things to note are:

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

<input type="hidden" name="map" value="c:\inetpub\wwwroot\itasca\demo.map">

<input type="hidden" name="layer" value="lakespy2">
<input type="hidden" name="layer" value="dlgstln2">
<input type="hidden" name="zoomsize" value=2>

<input type="hidden" name="program" value="/scripts/mapserv.exe">
<input type="hidden" name="map_web_imagepath"
value="C:\inetpub\wwwroot\tmp\">

<input type="hidden" name="map_web_imageurl" value="/tmp/">

<center><input type="submit" value="Initialize"></center>

</form>

<p><hr><p>

</body></html>


___________________________________________________________________________

**********************************************************
***RESULTANT PAGE*** 

<!-- MapServer version 4.0 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 INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<html>
<head><title>MapServer Demo Interface</title></head>
<body bgcolor=#FFFFFF>

<center><h1>MapServer Demo Interface</h1></center>
<hr>
<form method=GET action="/scripts/mapserv.exe">

<center>
<table border=0 cellspacing=0 cellpadding=4 bgcolor="#000000">
<tr>
<td valign="top" align=center>
  <table cellpadding="0" cellspacing="0" border="0">
    <tr><td colspan="2"><INPUT NAME="img" TYPE="image"
SRC="/tmp/DEMO10606946861364.png" width=600 height=600 border=0></td></tr>
    <tr>
      <td>&nbsp;<font size=-1 face="arial,helvetica"
color="#FFFFFF"><b>Powered by MapServer</b></font></td>
      <td align="right"><img src="/tmp/DEMOsb10606946861364.png"></td>
    </tr>
  </table>
</td>
<td valign="top" bgcolor=#ffffff>
  <table cellpadding="5" cellspacing="0" border="0" bgcolor="#ffffff">
    <tr><td>
      <center><input type="submit" value="Refresh/Query"></center>
      <p>

      <input type="radio" name="mode" value="browse" checked> <b>Browse
map</b><br>
      <input type="radio" name="mode" value="query"> <b>Query
feature</b><br>
      <input type="radio" name="mode" value="nquery"> <b>Query multiple
features</b>

      <hr>

      <p>
      <b>Select Layers to Display: </b><br>
      <select multiple name="layer" size=3>
        <option value="airports" > Airports
        <option value="cities" > Cities
        <option value="lakespy2" selected> Lakes & Rivers
        <option value="dlgstln2" selected> Streams
        <option value="roads" > Roads
        <option value="twprgpy3" > Townships
      </select>

      <p>
      Zoom In <input type=radio name=zoomdir value=1 > 
      Pan <input type=radio name=zoomdir value=0 checked>
      Zoom Out <input type=radio name=zoomdir value=-1 >
      <p>
      Zoom Size <input type=text name=zoomsize size=4 value=2>
      <p>

      <font size=+1><b>Legend</b></font><br><hr>
      <img src="/tmp/DEMOleg10606946861364.png"><hr>

      <p>
      <center><INPUT NAME="ref" TYPE="image"
SRC="/tmp/DEMOref10606946861364.png" border="0"></center>
    </td></tr></table>

  </td></tr>
</table>
</center>

<input type="hidden" name="imgxy" value="299.5 299.5">
<input type="hidden" name="imgext" value="388107.634400 5200301.166444
500896.339020 5313063.023754">
<input type="hidden" name="map" value="c:\inetpub\wwwroot\itasca\demo.map">
<input type="hidden" name="savequery" value="true">

<input type="hidden" name="program" value="/scripts/mapserv.exe">
<input type="hidden" name="map_web_imagepath"
value="C:\inetpub\wwwroot\tmp\">
<input type="hidden" name="map_web_imageurl" value="/tmp/">

</form>

<p><hr><p>

</body></html>


******************************************************
******************************************************









-----Original Message-----
From: Tyler Mitchell [mailto:TMitchell at lignum.com]
Sent: Monday, August 11, 2003 4:47 PM
To: Dubnansky, Andrew
Cc: mapserver-users at lists.gis.umn.edu
Subject: adubnansky at 3eTI.com - Email found in subject - Re:
[Mapserver-users] mapserver & win2k







Hi Andrew, are you confident that your path and url settings in your
"init.html" files and map file are set properly?  If you are getting
placeholder images instead of maps, but no errors, that suggests to me that
the web server isn't finding the images that mapserver created.  I suggest
you try to view the map again, then do a search of files on your server to
see ones that have been modified in the last day and then see if you find
any gif or png files hanging around.  For example, it may be creating them
in another folder that you didn't realize.  Mine are caled DEMOnnnnn.gif or
DEMleg and DEMOref for map, legend and reference map respectively.

Posting your html and map files will help others help you.

Tyler


                                                                           
             "Dubnansky,                                                   
             Andrew"                                                       
             <adubnansky at 3eTI.                                          To 
             com>                      "'mapserver-users at lists.gis.umn.edu 
             Sent by:                  '"                                  
             mapserver-users-a         <mapserver-users at lists.gis.umn.edu> 
             dmin at lists.gis.um                                          cc 
             n.edu                                                         
                                                                    Fax to 
                                                                           
             08/11/2003 01:11                                      Subject 
             PM                        [Mapserver-users] mapserver & win2k 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




 I have downloaded & installed  ms40_gif_pg.zip  &  ms366_gif_wms.zip (on
separate win2k machines) .
   I am using win2k and IIS 5.0.

   I have installed everything according to the respective "readme" files,
the only minor exception being that I have put     mapserv.exe in the
"scripts" directory in IIS instead "cgi-bin", and:

(1) Version 4 was missing a file called "libpq.dll" which I found on the
internet and copied to my system directory.
(2) Version 3.6.6 was missing a file called "zlib.dll" which I found on the
internet and copied to my system directory.

  I cannot get the ver. 3.5 demo or the ver. 4.0 demo to run at all. The
"demo_init" webpage will bring up the display page, but there are red "x"s
where the map, legend, and scalebar image should be.

 Typing "mapserv -v" at the command line returns the expected responses.

e.g.  - MapServer version 4.0 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 INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 I am at a loss to locate what I have missed. I have double checked the
directory struct, capitalization issues, etc.Any help would be very
appreciated.

thanks in advance,

- AJ

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list