[Mapserver-users] Blank Image problem by a beginner

Prashanth Ram pram at pramcentral.com
Mon Dec 23 02:21:01 EST 2002


This is a multi-part message in MIME format.
--------------58341E84E14354FD37227D52
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi, I was wondering if someone could tell me how to solve my problem. I
cannot seem to draw the image, besides the ref.  image. I read the
mailing list, but that did not help. The data I'm using is from the
Census 2000 TIGER/Line Shapefiles.  I setup mapserver  3.6.3 on my
server. The demo files work fine, which to me, says the server is
configured correctly. The files that I'm using are attached. Assuming
that my ISP does not have problems the server can be accessed using this
link:
http://216.195.8.253:8000/map/massGis/

Thank you
-Prashanth

--------------58341E84E14354FD37227D52
Content-Type: text/html; charset=us-ascii;
 name="mass_init.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mass_init.html"


<form method=GET action="/cgi-bin/mapserv">

<input type="hidden" name="map" value="/usr/shared/public/www/map/massGis/mass.map">
<input type="hidden" name="layer" value="tgr25027lkA">
<input type="hidden" name="layer" value="Line">

<input type="hidden" name="zoomsize" value=2>

<input type="hidden" name="program" value="/cgi-bin/mapserv">
<input type="hidden" name="map_web_imagepath" value="/usr/shared/public/www/tmp/">
<input type="hidden" name="map_web_imageurl" value="/tmp/">

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

<!-- 192.168.0.2 -->
--------------58341E84E14354FD37227D52
Content-Type: text/plain; charset=us-ascii;
 name="mass.map"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mass.map"


NAME MassMap
STATUS ON
SIZE 500 300
EXTENT -180.0 -90.0 180.0 90.0

UNITS MILES
SHAPEPATH "data"
IMAGECOLOR 200 255 255
#SYMBOLSET

LAYER
  NAME "roads"
  TYPE LINE
  STATUS ON 
  DATA tgr25027lkA

 CLASSITEM "FENAME"
  CLASS
    EXPRESSION /./
     COLOR 250 175 25 
   OUTLINECOLOR 128 128 128
      COLOR 225 225 185
    END
    CLASS # every other county in the state
      EXPRESSION /./ 
      OUTLINECOLOR 128 128 128
      COLOR 255 255 255
    END
 
END

REFERENCE
   IMAGE graphics/towns.jpg
   SIZE 500 300
   STATUS ON
  # COLOR -1 -1 -1 -1
  EXTENT -180.0 -90.0 180.0 90.0
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0

END
   
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  TEMPLATE mass.html
  MINSCALE 1000
  MAXSCALE 1550000
  IMAGEPATH "set in mass_init.html"
  IMAGEURL "set in mass_init.html"
  METADATA

    # change this value to match your setup
    WMS_ONLINERESOURCE "http://192.168.0.2/map/massGis/mass_init.html"

   	WMS_SRS "EPSG:26915"
  END
END


QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END   

#
# Start of legend
#
LEGEND
  KEYSIZE 18 12
  LABEL
    TYPE BITMAP
    SIZE MEDIUM
    COLOR 0 0 89
  END
  STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 255 255 255
    SIZE tiny    
  END
  STYLE 1
  SIZE 80 2
  COLOR 255 255 255
  UNITS MILES
  INTERVALS 1
  TRANSPARENT TRUE
  STATUS TRUE
END


END #MAP FILE
--------------58341E84E14354FD37227D52
Content-Type: text/html; charset=us-ascii;
 name="mass.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mass.html"

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

<center><h1>MapServer Demo Interface</h1></center>
<hr>
<form method=GET action="http://192.168.0.2/cgi-bin/mapserv">

<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="[img]" 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="[scalebar]"></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="roads" [roads_select] selected> Roads
      </select>

      <p>
      Zoom In <input type=radio name=zoomdir value=1 [zoomdir_1_check]>
      Pan <input type=radio name=zoomdir value=0 [zoomdir_0_check]>
      Zoom Out <input type=radio name=zoomdir value=-1 [zoomdir_-1_check]>
      <p>
      Zoom Size <input type=text name=zoomsize size=4 value=[zoomsize]>
      <p>

      <font size=+1><b>Legend</b></font><br><hr>
      <img src="[legend]"><hr>

      <p>
      <center><INPUT NAME="ref" TYPE="image" SRC="[ref]" 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="[mapext]">
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="savequery" value="true">

<input type="hidden" name="program" value="[program]">
<input type="hidden" name="map_web_imagepath" value="[map_web_imagepath]">
<input type="hidden" name="map_web_imageurl" value="[map_web_imageurl]">

</form>

<p><hr><p>

</body></html>


--------------58341E84E14354FD37227D52--





More information about the mapserver-users mailing list