<!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.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV dir=ltr align=left><SPAN class=180352100-16022005><FONT face=Arial 
color=#0000ff size=2>Wokar,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=180352100-16022005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=180352100-16022005><FONT face=Arial 
color=#0000ff size=2>you MUST set a proper path for your shapefile, because 
otherwise it becomes relative to the application. That is why it 
says:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=180352100-16022005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=180352100-16022005>msSHPOpenFile(): Unable 
to access file. (/var/www/cgi-bin/nhtm93s3) </SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=180352100-16022005><FONT face=Arial color=#0000ff 
size=2>Because it is trying to find a shapefile called "nhtm93s3" inside your 
cgi-bin folder. Use an absolute path for your shapepath. And if your file is not 
a shapefile, I think you should convert it. I am not sure whether the OGR input 
supports e00 (Arc Export format). But I know for sure it definitely will not 
work if you try to access it as a normal shapefile.</FONT></SPAN></DIV>
<DIV><SPAN class=180352100-16022005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=180352100-16022005><FONT face=Arial color=#0000ff size=2>The 
errors you get so far are purely those of the input files not being found (or 
not being shapefiles). You must solve that first.</FONT></SPAN></DIV>
<DIV><SPAN class=180352100-16022005></SPAN>&nbsp;</DIV>
<DIV><SPAN class=180352100-16022005><FONT face=Arial color=#0000ff 
size=2>regards,</FONT></SPAN></DIV>
<DIV><SPAN class=180352100-16022005></SPAN>&nbsp;</DIV>
<DIV><SPAN class=180352100-16022005><FONT face=Arial color=#0000ff 
size=2>Jacob</FONT></SPAN></DIV>
<DIV><SPAN class=180352100-16022005></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>w m<BR><B>Sent:</B> 
16 February 2005 08:18<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] 
Layers don't show up<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Thank You Brent, </DIV>
<DIV>I did change&nbsp; the SHAPEPATH</DIV>
<DIV>Also, Instead of using those particular files, I replaced it with many 
different&nbsp;shapefiles....it still didn't show up. Only the map shows up and 
the layers don't.&nbsp; Even the legend doesn't show up. No clue why?</DIV>
<DIV><BR><BR><B><I>Brent Fraser &lt;bfraser@GEOANALYTIC.COM&gt;</I></B> 
wrote:</DIV>
<BLOCKQUOTE class=replbq 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
  <META content="MSHTML 6.00.2800.1491" name=GENERATOR>
  <STYLE></STYLE>

  <DIV><FONT size=2>Wokar,</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Two problems:</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>1. A file ending in .e00 is not a shapefile, it's an ESRI 
  export format.&nbsp;&nbsp;&nbsp; I don't think Mapserver will read 
  those.&nbsp; Search the MapServer email archive on how to convert e00 files to 
  shapefiles.</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>2.&nbsp;You need to set your SHAPEPATH to have a leading "/" 
  to indicate it's an absolute path:&nbsp;&nbsp;&nbsp; </FONT></DIV>
  <DIV><FONT size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SHAPEPATH 
  "/var/www/temp"</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Brent Fraser</FONT></DIV>
  <DIV>&nbsp;</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="mailto:wokar1@YAHOO.COM&#10;wokar1@YAHOO.COM" 
    href="mailto:wokar1@YAHOO.COM">w m</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A 
    title="mailto:MAPSERVER-USERS@LISTS.UMN.EDU&#10;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.&nbsp; My layers are still not showing up??&nbsp; 
    I have changed my SHAPEPATH, i also tried to put my data in different 
    folders but it still didn't work.&nbsp; I have named my CLASSES and they 
    still are not showing up on the le gend. </P>
    <P><A title=http://132.205.108.60/ 
    href="http://132.205.108.60/">http://132.205.108.60</A></P>
    <P>&nbsp;</P>
    <P>If I try to access my map by writing <A 
    title=http://132.205.108.60/cgi-bin/mapserv?map=/var/www/cgi-bin/ogr.map&amp;mode=map&amp;layer=mylandcover 
    href="http://132.205.108.60/cgi-bin/mapserv?map=/var/www/cgi-bin/ogr.map&amp;mode=map&amp;layer=mylandcover">http://132.205.108.60/cgi-bin/mapserv?map=/var/www/cgi-bin/ogr.map&amp;mode=map&amp;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&amp;mode=map&amp;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.&nbsp;Is there 
    a way to check if these files are corrupted??&nbsp; 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&nbsp; 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>&nbsp;</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>&nbsp;</P>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
    <P>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</P>
    <P>&nbsp;</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>&nbsp;</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>&nbsp;</P>
    <P>&nbsp;</P>
    <P>&nbsp;</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 
    title=http://us.rd.yahoo.com/evt=30648/*http://movies.yahoo.com/movies/feature/jibjabinaugural.html 
    href="http://us.rd.yahoo.com/evt=30648/*http://movies.yahoo.com/movies/feature/jibjabinaugural.html">Jib 
    Jab's 'Second Term'</A></BLOCKQUOTE></BLOCKQUOTE>
<P>
<HR SIZE=1>
Do you Yahoo!?<BR>Yahoo! Search presents - <A 
title=http://us.rd.yahoo.com/evt=30648/*http://movies.yahoo.com/movies/feature/jibjabinaugural.html 
href="http://us.rd.yahoo.com/evt=30648/*http://movies.yahoo.com/movies/feature/jibjabinaugural.html">Jib 
Jab's 'Second Term'</A> </FONT></DIV></BODY></HTML>