[Mapserver-users] demo installation

Louis Paladino loupaladino at yahoo.com
Thu May 15 15:39:34 PDT 2003


--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> </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> </DIV>
<DIV>I am a student and just began to work with Mapserver.  I am hoping receive help on the demo installation please.  </DIV>
<DIV> </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.  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.</DIV>
<DIV> </DIV>
<DIV>I have added those two files into the e-mail.  Thanks in advance!!</DIV>
<DIV> </DIV>
<DIV><U>DEMO_INIT</U></DIV>
<DIV><html><BR><head><title>MapServer Demo Interface</title></head><BR><body bgcolor="#FFFFFF"></DIV>
<DIV><center><h2>MapServer Demo Interface</h2></center><BR><p><hr><p><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><form method=GET action="/cgi-bin/mapserv.exe"></DIV>
<DIV><input type="hidden" name="map" value="C:\Apache\Apache2\htdocs\itasca\demo.map"><BR><input type="hidden" name="layer" value="lakespy2"><BR><input type="hidden" name="layer" value="dlgstln2"><BR><input type="hidden" name="zoomsize" value=2></DIV>
<DIV><input type="hidden" name="program" value="/cgi-bin/mapserv.exe"><BR><input type="hidden" name="map_web_imagepath" value="C:\Apache\Apache2\htdocs\tmp"><BR><input type="hidden" name="map_web_imageurl" value="/tmp/"></DIV>
<DIV><center><input type="submit" value="Initialize"></center></DIV>
<DIV></form></DIV>
<DIV><p><hr><p></DIV>
<DIV></body></html></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>#  "proj=utm"<BR>#  "ellps=GRS80"<BR>#  "zone=15"<BR>#  "north"<BR>#  "no_defs"<BR>#<BR>#  OR: <BR>#<BR>#  "init=epsg:26915"<BR>#END</DIV>
<DIV>#<BR># Start of web interface definition (including WMS enabling metadata)<BR>#<BR>WEB<BR>  HEADER demo_header.html<BR>  TEMPLATE demo.html<BR>  FOOTER demo_footer.html<BR>  MINSCALE 1000<BR>  MAXSCALE 1550000<BR>  IMAGEPATH "set in demo_init.html"<BR>  IMAGEURL "set in demo_init.html"<BR>  METADATA<BR>    WMS_TITLE "UMN MapServer Itasca Demo"<BR>    WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota."<BR>    WMS_ACCESSCONSTRAINTS none</DIV>
<DIV>    # change this value to match your setup<BR>    WMS_ONLINERESOURCE "<A href="http://emarcano2/itasca/demo_init.html">http://emarcano2/itasca/demo_init.html</A>"</DIV>
<DIV>    WMS_SRS "EPSG:26915"<BR>  END<BR>END</DIV>
<DIV>QUERYMAP<BR>  SIZE 200 200<BR>  STATUS ON<BR>  STYLE HILITE<BR>  COLOR 255 0 0<BR>END</DIV>
<DIV>#<BR># Start of reference map<BR>#<BR>REFERENCE<BR>  IMAGE graphics/reference.gif<BR>  EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127<BR>  SIZE 120 120<BR>  STATUS ON<BR>  COLOR -1 -1 -1<BR>  OUTLINECOLOR 255 0 0<BR>END</DIV>
<DIV>#<BR># Start of legend<BR>#<BR>LEGEND<BR>  KEYSIZE 18 12<BR>  LABEL<BR>    TYPE BITMAP<BR>    SIZE MEDIUM<BR>    COLOR 0 0 89<BR>  END<BR>  STATUS ON<BR>END</DIV>
<DIV>#<BR># Start of scalebar<BR>#<BR>SCALEBAR<BR>  IMAGECOLOR 255 255 255<BR>  LABEL<BR>    COLOR 255 255 255<BR>    SIZE tiny    <BR>  END<BR>  STYLE 1<BR>  SIZE 80 2<BR>  COLOR 255 255 255<BR>  UNITS MILES<BR>  INTERVALS 1<BR>  TRANSPARENT TRUE<BR>  STATUS TRUE<BR>END</DIV>
<DIV>#<BR># Start of symbol definitions (we're only using a few)<BR>#<BR>SYMBOL<BR>  NAME 'circle'<BR>  TYPE ELLIPSE<BR>  POINTS 1 1 END<BR>  FILLED TRUE<BR>END</DIV>
<DIV>#<BR># Start of layer definitions<BR>#</DIV>
<DIV>LAYER<BR>  NAME ctybdpy2<BR>  TYPE POLYGON<BR>  STATUS DEFAULT<BR>  DATA ctybdpy2<BR>  <BR>  CLASSITEM 'cty_name'<BR>  CLASS<BR>    EXPRESSION 'Itasca'<BR>    OUTLINECOLOR 128 128 128<BR>    COLOR 225 225 185<BR>  END<BR>  CLASS # every other county in the state<BR>    EXPRESSION /./ <BR>    OUTLINECOLOR 128 128 128<BR>    COLOR 255 255 255<BR>  END<BR>  METADATA<BR>    WMS_TITLE "County Boundary"<BR>    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>    WMS_SRS "EPSG:26915"<BR>  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--



More information about the MapServer-users mailing list