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