[Mapserver-users] demo installation

Louis Paladino loupaladino@yahoo.com
Thu, 15 May 2003 15:39:34 -0700 (PDT)


--0-1101040454-1053038374=:19783
Content-Type: text/plain; charset=us-ascii

MapServer users,
 
MapServer: ms363gif_gdal_wms
demo: itasca3.5
web server: Apache 2.0.45 
OS: Win2k
 
I am a student and just began to work with Mapserver.  I am hoping receive help on the demo installation please.  
 
My problem is as follows: When I go to test the demo installation as advised by typing in my URL, and click initialize, the MapServer Demo Interface appears.  However, my image window is all black, no maps.  I think it is something little; such as not correctly defining in the map or demo_init file where my maps sit.  But after playing around I cannot find the solution.
 
I have added those two files into the e-mail.  Thanks in advance!!
 
DEMO_INIT
<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="/cgi-bin/mapserv.exe">
<input type="hidden" name="map" value="C:\Apache\Apache2\htdocs\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="/cgi-bin/mapserv.exe">
<input type="hidden" name="map_web_imagepath" value="C:\Apache\Apache2\htdocs\tmp">
<input type="hidden" name="map_web_imageurl" value="/tmp/">
<center><input type="submit" value="Initialize"></center>
</form>
<p><hr><p>
</body></html>
MAP FILE
#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600
EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255
# you may need to change this to match your MapServer build
#IMAGETYPE PNG
#
# Projection definition, consult the PROJ.4 documentation for parameter discussion
#
#PROJECTION
#  "proj=utm"
#  "ellps=GRS80"
#  "zone=15"
#  "north"
#  "no_defs"
#
#  OR: 
#
#  "init=epsg:26915"
#END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  FOOTER demo_footer.html
  MINSCALE 1000
  MAXSCALE 1550000
  IMAGEPATH "set in demo_init.html"
  IMAGEURL "set in demo_init.html"
  METADATA
    WMS_TITLE "UMN MapServer Itasca Demo"
    WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota."
    WMS_ACCESSCONSTRAINTS none
    # change this value to match your setup
    WMS_ONLINERESOURCE "http://emarcano2/itasca/demo_init.html"
    WMS_SRS "EPSG:26915"
  END
END
QUERYMAP
  SIZE 200 200
  STATUS ON
  STYLE HILITE
  COLOR 255 0 0
END
#
# Start of reference map
#
REFERENCE
  IMAGE graphics/reference.gif
  EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127
  SIZE 120 120
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 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
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED TRUE
END
#
# Start of layer definitions
#
LAYER
  NAME ctybdpy2
  TYPE POLYGON
  STATUS DEFAULT
  DATA ctybdpy2
  
  CLASSITEM 'cty_name'
  CLASS
    EXPRESSION 'Itasca'
    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
  METADATA
    WMS_TITLE "County Boundary"
    WMS_ABSTRACT "Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information."
    WMS_SRS "EPSG:26915"
  END
END
etc..
etc..
etc..




---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
--0-1101040454-1053038374=:19783
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>
<DIV>MapServer users,</DIV>
<DIV>&nbsp;</DIV>
<DIV>MapServer: ms363gif_gdal_wms</DIV>
<DIV>demo: itasca3.5</DIV>
<DIV>web server: Apache 2.0.45 </DIV>
<DIV>OS: Win2k</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am a student and just began to work with Mapserver.&nbsp; I am hoping&nbsp;receive help on the demo installation please.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>My problem is as follows: When I go to test the demo installation as advised by typing in my URL, and click initialize, the MapServer Demo Interface appears.&nbsp; However, my image window is all black, no maps.&nbsp; I think it is something little; such as not correctly defining in the map or demo_init file where my maps sit.&nbsp; But after playing around I cannot find the solution.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have added those two files into the e-mail.&nbsp; Thanks in advance!!</DIV>
<DIV>&nbsp;</DIV>
<DIV><U>DEMO_INIT</U></DIV>
<DIV>&lt;html&gt;<BR>&lt;head&gt;&lt;title&gt;MapServer Demo Interface&lt;/title&gt;&lt;/head&gt;<BR>&lt;body bgcolor="#FFFFFF"&gt;</DIV>
<DIV>&lt;center&gt;&lt;h2&gt;MapServer Demo Interface&lt;/h2&gt;&lt;/center&gt;<BR>&lt;p&gt;&lt;hr&gt;&lt;p&gt;<BR>Click on the initialize button to fire up the demo with 3 layers turned on will be accessible for browsing. The<BR>data are of Itasca County, MN and were derived, for the most part, from USGS 1:24,000 quadrangles. Some things to note are:</DIV>
<DIV>&lt;form method=GET action="/cgi-bin/mapserv.exe"&gt;</DIV>
<DIV>&lt;input type="hidden" name="map" value="C:\Apache\Apache2\htdocs\itasca\demo.map"&gt;<BR>&lt;input type="hidden" name="layer" value="lakespy2"&gt;<BR>&lt;input type="hidden" name="layer" value="dlgstln2"&gt;<BR>&lt;input type="hidden" name="zoomsize" value=2&gt;</DIV>
<DIV>&lt;input type="hidden" name="program" value="/cgi-bin/mapserv.exe"&gt;<BR>&lt;input type="hidden" name="map_web_imagepath" value="C:\Apache\Apache2\htdocs\tmp"&gt;<BR>&lt;input type="hidden" name="map_web_imageurl" value="/tmp/"&gt;</DIV>
<DIV>&lt;center&gt;&lt;input type="submit" value="Initialize"&gt;&lt;/center&gt;</DIV>
<DIV>&lt;/form&gt;</DIV>
<DIV>&lt;p&gt;&lt;hr&gt;&lt;p&gt;</DIV>
<DIV>&lt;/body&gt;&lt;/html&gt;</DIV>
<DIV><U>MAP FILE</U></DIV>
<DIV>#<BR># Start of map file<BR>#<BR>NAME DEMO<BR>STATUS ON<BR>SIZE 600 600<BR>EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897<BR>UNITS METERS<BR>SHAPEPATH "data"<BR>IMAGECOLOR 255 255 255</DIV>
<DIV># you may need to change this to match your MapServer build<BR>#IMAGETYPE PNG</DIV>
<DIV>#<BR># Projection definition, consult the PROJ.4 documentation for parameter discussion<BR>#<BR>#PROJECTION<BR>#&nbsp; "proj=utm"<BR>#&nbsp; "ellps=GRS80"<BR>#&nbsp; "zone=15"<BR>#&nbsp; "north"<BR>#&nbsp; "no_defs"<BR>#<BR>#&nbsp; OR: <BR>#<BR>#&nbsp; "init=epsg:26915"<BR>#END</DIV>
<DIV>#<BR># Start of web interface definition (including WMS enabling metadata)<BR>#<BR>WEB<BR>&nbsp; HEADER demo_header.html<BR>&nbsp; TEMPLATE demo.html<BR>&nbsp; FOOTER demo_footer.html<BR>&nbsp; MINSCALE 1000<BR>&nbsp; MAXSCALE 1550000<BR>&nbsp; IMAGEPATH "set in demo_init.html"<BR>&nbsp; IMAGEURL "set in demo_init.html"<BR>&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp; WMS_TITLE "UMN MapServer Itasca Demo"<BR>&nbsp;&nbsp;&nbsp; WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota."<BR>&nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS none</DIV>
<DIV>&nbsp;&nbsp;&nbsp; # change this value to match your setup<BR>&nbsp;&nbsp;&nbsp; WMS_ONLINERESOURCE "<A href="http://emarcano2/itasca/demo_init.html">http://emarcano2/itasca/demo_init.html</A>"</DIV>
<DIV>&nbsp;&nbsp;&nbsp; WMS_SRS "EPSG:26915"<BR>&nbsp; END<BR>END</DIV>
<DIV>QUERYMAP<BR>&nbsp; SIZE 200 200<BR>&nbsp; STATUS ON<BR>&nbsp; STYLE HILITE<BR>&nbsp; COLOR 255 0 0<BR>END</DIV>
<DIV>#<BR># Start of reference map<BR>#<BR>REFERENCE<BR>&nbsp; IMAGE graphics/reference.gif<BR>&nbsp; EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127<BR>&nbsp; SIZE 120 120<BR>&nbsp; STATUS ON<BR>&nbsp; COLOR -1 -1 -1<BR>&nbsp; OUTLINECOLOR 255 0 0<BR>END</DIV>
<DIV>#<BR># Start of legend<BR>#<BR>LEGEND<BR>&nbsp; KEYSIZE 18 12<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; TYPE BITMAP<BR>&nbsp;&nbsp;&nbsp; SIZE MEDIUM<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 89<BR>&nbsp; END<BR>&nbsp; STATUS ON<BR>END</DIV>
<DIV>#<BR># Start of scalebar<BR>#<BR>SCALEBAR<BR>&nbsp; IMAGECOLOR 255 255 255<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; COLOR 255 255 255<BR>&nbsp;&nbsp;&nbsp; SIZE tiny&nbsp;&nbsp;&nbsp; <BR>&nbsp; END<BR>&nbsp; STYLE 1<BR>&nbsp; SIZE 80 2<BR>&nbsp; COLOR 255 255 255<BR>&nbsp; UNITS MILES<BR>&nbsp; INTERVALS 1<BR>&nbsp; TRANSPARENT TRUE<BR>&nbsp; STATUS TRUE<BR>END</DIV>
<DIV>#<BR># Start of symbol definitions (we're only using a few)<BR>#<BR>SYMBOL<BR>&nbsp; NAME 'circle'<BR>&nbsp; TYPE ELLIPSE<BR>&nbsp; POINTS 1 1 END<BR>&nbsp; FILLED TRUE<BR>END</DIV>
<DIV>#<BR># Start of layer definitions<BR>#</DIV>
<DIV>LAYER<BR>&nbsp; NAME ctybdpy2<BR>&nbsp; TYPE POLYGON<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; DATA ctybdpy2<BR>&nbsp; <BR>&nbsp; CLASSITEM 'cty_name'<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; EXPRESSION 'Itasca'<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 128 128 128<BR>&nbsp;&nbsp;&nbsp; COLOR 225 225 185<BR>&nbsp; END<BR>&nbsp; CLASS # every other county in the state<BR>&nbsp;&nbsp;&nbsp; EXPRESSION /./ <BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 128 128 128<BR>&nbsp;&nbsp;&nbsp; COLOR 255 255 255<BR>&nbsp; END<BR>&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp; WMS_TITLE "County Boundary"<BR>&nbsp;&nbsp;&nbsp; WMS_ABSTRACT "Itasca County boundary shapefile. See <A href="http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html">http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html</A> for more information."<BR>&nbsp;&nbsp;&nbsp; WMS_SRS "EPSG:26915"<BR>&nbsp; END<BR>END<BR>etc..</DIV>
<DIV>etc..</DIV>
<DIV>etc..</DIV></DIV></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo.
--0-1101040454-1053038374=:19783--
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users