[maplab-users] Failure to preview in MapEdit, failure to produce map in GMAP

Ivan Kautter ivankautter at hotmail.com
Tue Aug 30 18:18:48 EDT 2005


Problem was solved by putting terminal slash on imagepath and imageurl 
parameters.  Something simple as it turned out.

<BLOCKQUOTE style='PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #A0C6E5 
2px solid; MARGIN-RIGHT: 0px'><font 
style='FONT-SIZE:11px;FONT-FAMILY:tahoma,sans-serif'><hr color=#A0C6E5 
size=1>
From:  <i>Jeff McKenna &lt;jmckenna at dmsolutions.ca&gt;</i><br>To:  <i>Ivan 
Kautter &lt;ivankautter at hotmail.com&gt;</i><br>CC:  
<i>maplab-users at lists.maptools.org</i><br>Subject:  <i>Re: [maplab-users] 
Failure to preview in MapEdit, failure to produce map in GMAP</i><br>Date:  
<i>Tue, 30 Aug 2005 10:40:47 -0400</i><br>&gt;Try commenting line 81 (or 
just remove it):<br>&gt;<br>&gt;# CONNECTIONTYPE 
LOCAL<br>&gt;<br>&gt;<br>&gt;<br>&gt;jeff<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;Ivan 
Kautter wrote:<br>&gt;&gt;List Subscribers,<br>&gt;&gt;<br>&gt;&gt;I am 
running msw4_1.0.2 with maplab and chameleon installed.  
<br>&gt;&gt;Tutorial map works perfectly.  I have edited my mapfile to 
resemble <br>&gt;&gt;its format as closely as I think it should be.  However 
I get these <br>&gt;&gt;errors with mapedit 
preview:<br>&gt;&gt;<br>&gt;&gt;Warning: [MapServer Error]: getSymbol(): 
Parsing error near <br>&gt;&gt;(LOCAL):(line 81) in 
<br>&gt;&gt;C:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_session.php on 
<br>&gt;&gt;line 215<br>&gt;&gt;<br>&gt;&gt;Warning: Failed to open map file 
/ms4w/tmp//430fc515bc66b.map in 
<br>&gt;&gt;C:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_session.php on 
<br>&gt;&gt;line 215<br>&gt;&gt;<br>&gt;&gt;Warning: [MapServer Error]: 
getSymbol(): Parsing error near <br>&gt;&gt;(LOCAL):(line 81) in 
<br>&gt;&gt;C:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_session.php on 
<br>&gt;&gt;line 215<br>&gt;&gt;<br>&gt;&gt;Warning: [MapServer Error]: 
getSymbol(): Parsing error near <br>&gt;&gt;(LOCAL):(line 81) in 
<br>&gt;&gt;C:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_session.php on 
<br>&gt;&gt;line 215<br>&gt;&gt;<br>&gt;&gt;Warning: Failed to open map file 
/ms4w/tmp//430fc515bc66b.map in 
<br>&gt;&gt;C:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_session.php on 
<br>&gt;&gt;line 215<br>&gt;&gt;<br>&gt;&gt;Fatal error: Call to a member 
function on a non-object in 
<br>&gt;&gt;C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 
308<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;Mapfile resides in its 
own folder in the same manner as the <br>&gt;&gt;tutorial map file with data 
and etc folders at the same directory <br>&gt;&gt;level as the tutorial 
folder.  I have tried to make it all exactly <br>&gt;&gt;the same as the 
tutorial folder is set up.<br>&gt;&gt;<br>&gt;&gt;Here is the map file.  I 
have no idea what I could be doing 
wrong:<br>&gt;&gt;<br>&gt;&gt;MAP<br>&gt;&gt;  NAME 
&quot;Test&quot;<br>&gt;&gt;  STATUS ON<br>&gt;&gt;  EXTENT -364597.669460 
-602103.803190 508783.376160 446079.722497<br>&gt;&gt;  SIZE 800 
600<br>&gt;&gt;  SHAPEPATH &quot;./data&quot;<br>&gt;&gt;  SYMBOLSET 
&quot;./etc/symbols.sym&quot;<br>&gt;&gt;  FONTSET 
&quot;./etc/fonts.txt&quot;<br>&gt;&gt;  IMAGETYPE PNG<br>&gt;&gt;  
IMAGECOLOR 255 255 255<br>&gt;&gt;  UNITS FEET<br>&gt;&gt;  SCALE 
100000<br>&gt;&gt;  WEB<br>&gt;&gt;    MINSCALE 100<br>&gt;&gt;    MAXSCALE 
1000000<br>&gt;&gt;    IMAGEPATH &quot;/ms4w/tmp/ms_tmp&quot;<br>&gt;&gt;    
IMAGEURL &quot;/ms_tmp&quot;<br>&gt;&gt;    METADATA<br>&gt;&gt;    
END<br>&gt;&gt;  END<br>&gt;&gt;  QUERYMAP<br>&gt;&gt;    STATUS 
ON<br>&gt;&gt;    COLOR 255 255 0<br>&gt;&gt;    STYLE HILITE<br>&gt;&gt;  
END<br>&gt;&gt;  LEGEND<br>&gt;&gt;    STATUS ON<br>&gt;&gt;    IMAGECOLOR 
255 255 255<br>&gt;&gt;    TRANSPARENT OFF<br>&gt;&gt;    POSITION 
LL<br>&gt;&gt;    KEYSIZE 18 12<br>&gt;&gt;    KEYSPACING 5 5<br>&gt;&gt;    
LABEL<br>&gt;&gt;      TYPE BITMAP<br>&gt;&gt;      SIZE MEDIUM<br>&gt;&gt;  
     OFFSET 0 0<br>&gt;&gt;      BUFFER 0<br>&gt;&gt;      MINDISTANCE 
-1<br>&gt;&gt;      MINFEATURESIZE -1<br>&gt;&gt;      COLOR 0 0 
89<br>&gt;&gt;      PARTIALS TRUE<br>&gt;&gt;      FORCE FALSE<br>&gt;&gt;   
  END<br>&gt;&gt;  END<br>&gt;&gt;  SCALEBAR<br>&gt;&gt;    STATUS 
ON<br>&gt;&gt;    COLOR 255 255 255<br>&gt;&gt;    IMAGECOLOR 255 255 
255<br>&gt;&gt;    TRANSPARENT OFF<br>&gt;&gt;    UNITS MILES<br>&gt;&gt;    
INTERVALS 5<br>&gt;&gt;    SIZE 150 5<br>&gt;&gt;    STYLE 0<br>&gt;&gt;    
POSITION LC<br>&gt;&gt;    LABEL<br>&gt;&gt;      TYPE BITMAP<br>&gt;&gt;    
   SIZE SMALL<br>&gt;&gt;      POSITION AUTO<br>&gt;&gt;      OFFSET 0 
0<br>&gt;&gt;      BUFFER 0<br>&gt;&gt;      MINDISTANCE -1<br>&gt;&gt;      
MINFEATURESIZE -1<br>&gt;&gt;      COLOR 0 0 0<br>&gt;&gt;      PARTIALS 
TRUE<br>&gt;&gt;      FORCE FALSE<br>&gt;&gt;    END<br>&gt;&gt;  
END<br>&gt;&gt;  OUTPUTFORMAT<br>&gt;&gt;    NAME 
&quot;png&quot;<br>&gt;&gt;    MIMETYPE &quot;image/png&quot;<br>&gt;&gt;    
DRIVER &quot;GD/PNG&quot;<br>&gt;&gt;    EXTENSION 
&quot;png&quot;<br>&gt;&gt;    IMAGEMODE PC256<br>&gt;&gt;    TRANSPARENT 
OFF<br>&gt;&gt;  END<br>&gt;&gt;  LAYER<br>&gt;&gt;    NAME 
&quot;DFGLands&quot;<br>&gt;&gt;    STATUS ON<br>&gt;&gt;    DATA 
&quot;./data/dfg_lands&quot;<br>&gt;&gt;    TYPE POLYGON<br>&gt;&gt;    
CONNECTIONTYPE LOCAL<br>&gt;&gt;    UNITS FEET<br>&gt;&gt;    SIZEUNITS 
PIXELS<br>&gt;&gt;    MINSCALE 1<br>&gt;&gt;    MAXSCALE 100<br>&gt;&gt;    
SYMBOLSCALE 1<br>&gt;&gt;    TOLERANCE 0<br>&gt;&gt;    TOLERANCEUNITS 
PIXELS<br>&gt;&gt;    DEBUG ON<br>&gt;&gt;    CLASS<br>&gt;&gt;      NAME 
&quot;DFG_Lands&quot;<br>&gt;&gt;      MINSCALE 1<br>&gt;&gt;      MAXSCALE 
100<br>&gt;&gt;      DEBUG ON<br>&gt;&gt;      STYLE<br>&gt;&gt;        
SYMBOL 0<br>&gt;&gt;        COLOR 153 84 42<br>&gt;&gt;        OUTLINECOLOR 
0 0 0<br>&gt;&gt;        SIZE 1<br>&gt;&gt;        MINSIZE 1<br>&gt;&gt;     
    MAXSIZE 100<br>&gt;&gt;      END<br>&gt;&gt;    END<br>&gt;&gt;  
END<br>&gt;&gt;END<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;What am I missing?  
This is the closest I have gotten maplab to <br>&gt;&gt;work, i.e. 
functioning tutorial map.  It would be really great if I <br>&gt;&gt;could 
get this finally working.<br>&gt;&gt;<br>&gt;&gt;The only GIS data in the 
map is a single shape file.  If I can't <br>&gt;&gt;get that to work, I 
don't what I can get to work.<br>&gt;&gt;<br>&gt;&gt;Thanks for any and all 
assistance.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;Ivan 
Kautter<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;--<br>&gt;Jeff McKenna<br>&gt;DM 
Solutions Group 
Inc.<br>&gt;http://www.dmsolutions.ca<br>&gt;<br></font></BLOCKQUOTE>




More information about the Maplab-users mailing list