[maplab-users] preview of mapfile does not work

Marcel Krautkrämer mkrautkraemer at web.de
Sat Mar 31 15:19:52 EST 2007


hi list
my mapfile is:
"MAP
 SIZE 600 450

EXTENT -22 29 45 80 

 IMAGECOLOR 180 180 250
 UNITS DD


#REFERENCE
LEGEND
	STATUS EMBED
	POSITION LL
	TRANSPARENT TRUE
END

 SCALEBAR
  STATUS EMBED
  UNITS KILOMETERS
  INTERVALS 4
  POSITION LR
  TRANSPARENT TRUE
  #IMAGECOLOR 255 255 255
  #COLOR  0 0 0
  
  OUTLINECOLOR 0 0 0
#  SIZE 200 2
SIZE 150 2
END
WEB
	TEMPLATE template.html
	IMAGEPATH "C:\ms4w\tmp\ms_tmp\"
	IMAGEURL "\ms_tmp/"
	METADATA
END

LAYER
	METADATA
	 "wms_title "bEISPIEL"

	NAME countries
	TYPE POLYGON
	STATUS DEFAULT
	DATA countries_simpl
	LABELITEM 'NAME'
	CLASSITEM 'NAME'
	CLASS
		NAME "Switzerland"
		EXPRESSION 'Switzerland'
		STYLE
#			OUTLINECOLOR 240 80 100
OUTLINECOLOR 10 10 10
			COLOR 240 80 100
#			COLOR 10 10 10
		END
		LABEL 
			SIZE LARGE
			MINFEATURESIZE 40
		END
	END
	CLASS
		NAME "OTHER COUNTRIES"
		EXPRESSION ('[NAME]' ne 'Switzerland')
		STYLE
			OUTLINECOLOR 10 10 10
			COLOR 220 220 220
		END
END
END
END
"
I try to open it in maplab, mapedit but the preview says only:
Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'countries'. in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\preview.php on line 472

Warning: [MapServer Error]: msSHPOpenFile(): (/ms4w/apps///maplab-2.2.1/tutorial/data/countries_simpl) in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\preview.php on line 472

Warning: [MapServer Error]: msSHPOpenFile(): (/ms4w/apps///maplab-2.2.1/tutorial/data/countries_simpl) in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\preview.php on line 472

Warning: [MapServer Error]: msFreeHashItems(): Can't free NULL table in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\preview.php on line 472

Warning: [MapServer Error]: msFreeHashItems(): Can't free NULL table in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\preview.php on line 472

Warning: [MapServer Error]: msInsertHashTable: Invalid hash table or key in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\preview.php on line 472

Fatal error: Call to a member function on a non-object in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\preview.php on line 477

i get the map with:
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/k4.map&layer=countries&mode=map
(ok it is a different path but the same mapfile)
i am new in maplab, so please help me further.

thanks in advance
marcel
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192



More information about the Maplab-users mailing list