<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Wokar,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Two problems:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>1. A file ending in .e00 is not a shapefile, it's an ESRI
export format. I don't think Mapserver will read those.
Search the MapServer email archive on how to convert e00 files to
shapefiles.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>2. You need to set your SHAPEPATH to have a leading "/"
to indicate it's an absolute path: </FONT></DIV>
<DIV><FONT size=2> SHAPEPATH
"/var/www/temp"</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Brent Fraser</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=wokar1@YAHOO.COM href="mailto:wokar1@YAHOO.COM">w m</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=MAPSERVER-USERS@LISTS.UMN.EDU
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 15, 2005 12:06
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [UMN_MAPSERVER-USERS] Layers
don't show up</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV><FONT size=2>
<P>Hi,</P>
<P>I have made a map file. My layers are still not showing up?? I
have changed my SHAPEPATH, i also tried to put my data in different folders
but it still didn't work. I have named my CLASSES and they still are not
showing up on the le gend. </P>
<P><A href="http://132.205.108.60">http://132.205.108.60</A></P>
<P> </P>
<P>If I try to access my map by writing <A
href="http://132.205.108.60/cgi-bin/mapserv?map=/var/www/cgi-bin/ogr.map&mode=map&layer=mylandcover ">http://132.205.108.60/cgi-bin/mapserv?map=/var/www/cgi-bin/ogr.map&mode=map&layer=mylandcover
</A></P>
<P>it gives me the following errors:</P>
<P>msDrawMap(): Image handling error. Failed to draw layer named
'mylandcover'. <BR>msSHPOpenFile(): Unable to access file.
(/var/www/cgi-bin/nhtm93s3) <BR>msSHPOpenFile(): Unable to access file.
(/var/www/cgi-bin/nhtm93s3) </P>
<P>When I try this
:http://132.205.108.60/cgi-bin/mapserv?map=ogr.map&mode=map&layer=myroads</P>
<P>msDrawMap(): Image handling error. Failed to draw layer named 'myroads'.
<BR>msSHPOpenFile(): Unable to access file. (/var/www/cgi-bin/rtf100k)
<BR>msSHPOpenFile(): Unable to access file. (/var/www/cgi-bin/rtf100k) </P>
<P>The rtf100k and the other file both have an e00 extension. Is there a
way to check if these files are corrupted?? They open up in otepad
though. I'm working in linux</P>
<P>I tried putting all my data to var/www/temp but when i change my shapepath
to this then int the above errors it says :</P>
<P>/var/www/cgi-bin/var/www/temp/rtf100k</P>
<P>why is that?why does it goes automatically to cgi-bin and then to
var/www/temp/rtf100k.</P>
<P>Thank You all for your help. It is greatly appreciated.</P>
<P>Wokar</P>
<P>NAME europe # set the map name to anything you like</P>
<P># Set the extent to match YOUR shapefile(s)</P>
<P># coordinates are Westernmost Southermost Easternmost Northernmost</P>
<P> </P>
<P># STATUS ON</P>
<P>IMAGETYPE PNG</P>
<P>#IMAGECOLOR 255 255 255 # white background</P>
<P>#IMAGECOLOR 25 12 60 # blue navy</P>
<P>IMAGECOLOR 255 200 255 #pinkish purple</P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P>EXTENT 407.997812 4103475.750 443135.000 4157027.250</P>
<P># here is an example for Lat/Lon.</P>
<P>#EXTENT -97.5 41.619778 -82.122902 49.38562</P>
<P># can leave the font-set alone</P>
<P>#FONTSET "/usr/local/etc/htdocs/mapserver/fonts/fonts.list"</P>
<P># set the size of the Image to be displayed</P>
<P>SIZE 500 500</P>
<P># Set the SHAPEPATH to point where you have stored your shapefiles</P>
<P># substitute your user ID for YOUR_ID below.</P>
<P># SHAPEPATH "/home/evsc468/public_html/YOUR_ID/"</P>
<P># or point to shapefiles in some other directory</P>
<P>SHAPEPATH ""</P>
<P># you will need to customize the layer definitions for YOUR layers</P>
<P># remember that the SHAPEFILES for the LAYERs should be stored in the</P>
<P># directory pointed to by SHAPEPATH above.</P>
<P># Set your template file to the name of YOUR template file</P>
<P># you can leave the image path and image URL alone</P>
<P>WEB</P>
<P>TEMPLATE "html/index.html"</P>
<P>IMAGEPATH "var/www/temp"</P>
<P>IMAGEURL "temp"</P>
<P>END</P>
<P> </P>
<P>LEGEND</P>
<P>KEYSIZE 12 12</P>
<P>#STATUS ON</P>
<P>LABEL</P>
<P>TYPE BITMAP</P>
<P>#TYPE TRUETYPE</P>
<P>#FONT arial</P>
<P>COLOR 0 0 0</P>
<P>SIZE MEDIUM #10</P>
<P>#ANTIALIAS TRUE</P>
<P>END</P>
<P>STATUS ON</P>
<P>END</P>
<P># LAYER DEFINITIONS -----------------------------------------</P>
<P>LAYER</P>
<P>NAME "myoutline"</P>
<P>DATA europa</P>
<P>STATUS DEFAULT # Show the layer at all times</P>
<P>TYPE POLYGON # polygon makes it clored on the inside. if TYPE </P>
<P>#line was chosen, the colour inide and outsde would be the same</P>
<P>#TYPE LINE # choices for type are POLYGON, LINE and POINT</P>
<P>CLASS</P>
<P>COLOR 255 220 60 # use black lines...yellow color 255 220 60</P>
<P>OUTLINECOLOR 255 120 60 # numbers represent brightness of Red, Green and
B</P>
<P># outisde line colour is orange-255 120 60</P>
<P>END</P>
<P>END</P>
<P> </P>
<P>LAYER</P>
<P>NAME "credits"</P>
<P>STATUS DEFAULT</P>
<P>TRANSFORM FALSE</P>
<P>TYPE ANNOTATION</P>
<P>FEATURE</P>
<P>POINTS</P>
<P>50 480 # changes the location of the text</P>
<P>END</P>
<P>TEXT 'Europe Map'</P>
<P>END</P>
<P>CLASS</P>
<P>LABEL</P>
<P>TYPE BITMAP</P>
<P>POSITION CR</P>
<P>COLOR 255 120 60 </P>
<P>END</P>
<P>END</P>
<P>END</P>
<P> </P>
<P> </P>
<P>LAYER #</P>
<P>NAME "mylandcover"</P>
<P>DATA nhtm93s3</P>
<P>STATUS ON # show layer, but allow it to be turned off</P>
<P>TYPE POLYGON # choices for type are POLYGON, LINE and POINT</P>
<P>CLASSITEM "LANDCOVER"</P>
<P>CLASS # water</P>
<P>NAME "Water"</P>
<P>EXPRESSION 'Water' # match only those where [landcover]='Water'</P>
<P>COLOR 225 225 255 </P>
<P>OUTLINECOLOR 0 0 0</P>
<P>END</P>
<P>CLASS # grassland</P>
<P>NAME "Grassland"</P>
<P>EXPRESSION /Planted*/ # search for landcovers starting with Planted</P>
<P>COLOR 0 240 0</P>
<P>OUTLINECOLOR 0 0 0</P>
<P>END</P>
<P>CLASS # forest</P>
<P>NAME "Forest"</P>
<P>EXPRESSION /Forest*/</P>
<P>COLOR 200 140 0</P>
<P>OUTLINECOLOR 0 0 0</P>
<P>END</P>
<P># CLASS # salt marsh</P>
<P># NAME Salt Marsh</P>
<P># EXPRESSION /Salt*/</P>
<P># COLOR 0 200 140</P>
<P># OUTLINECOLOR 0 0 0</P>
<P># END</P>
<P>CLASS # sand</P>
<P>NAME "Sand"</P>
<P>EXPRESSION /Bare*/</P>
<P>COLOR 240 240 240</P>
<P>OUTLINECOLOR 0 0 0</P>
<P>END</P>
<P>END # end of layer object</P>
<P> </P>
<P>LAYER</P>
<P>NAME "myroads"</P>
<P>DATA ROADSEG</P>
<P>#DATA rtf100k</P>
<P>STATUS ON</P>
<P>TYPE line</P>
<P>CLASS</P>
<P>NAME Roads</P>
<P>COLOR 200 0 200</P>
<P>OUTLINECOLOR 0 0 0</P>
<P>END # end of class</P>
<P>END # end of layer object</P>
<P> </P>
<P> </P>
<P> </P>
<P>END # end of map
file</P></FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>
<P>
<HR SIZE=1>
Do you Yahoo!?<BR>Yahoo! Search presents - <A
href="http://us.rd.yahoo.com/evt=30648/*http://movies.yahoo.com/movies/feature/jibjabinaugural.html">Jib
Jab's 'Second Term'</A></BLOCKQUOTE></BODY></HTML>