mapserver can't find images

Bruce Winn bwinn at BERKSHIRE.RR.COM
Sun Mar 4 07:59:51 PST 2007


My mapserver application is up and running fine except that I can't get
images to display if they are in the template.  For example, the legend
works fine if it is embedded, but if I try to put it somewhere in the
template the server looks for it at  .../cgi-bin/mapserv/image.jpg.  The
same is true for any other images I try to put in the template.  The map
itself displays just fine.  I'm working on a remote server.  My service
provider installed the application so I don't have access to anything above
the httpdocs folder and I don't know much about the installation except that
it is ms4w on an apache server.  Here's my mapfile.  (the URL is
www.thebeatnews.com/BEAT_maps).  Thanks in advance for any help.
Bruce



MAP

NAME "BEAT"

SIZE 640 480

IMAGECOLOR 250 250 250
IMAGETYPE jpeg

SHAPEPATH "/home/httpd/vhosts/thebeatnews.com/httpdocs/BEAT_maps/mapdata/"
FONTSET "/home/httpd/vhosts/thebeatnews.com/httpdocs/Fonts/fontset.txt"

EXTENT 33861.263590 861649.561400 113491.312540 945607.500716
UNITS METERS

LEGEND
	STATUS ON
	POSITION LR
END

SYMBOL
	NAME "Thickline"
	TYPE ELLIPSE
	POINTS 1 1 END
END

SCALEBAR
	STATUS EMBED
	STYLE 0
	TRANSPARENT TRUE
	OUTLINECOLOR 0 0 0
END

WEB
	TEMPLATE  "/home/httpd/vhosts/thebeatnews.com/httpdocs/BEAT_maps/template.html"
	IMAGEPATH  "/home/httpd/vhosts/thebeatnews.com/httpdocs/ms_tmp/"
	IMAGEURL "/ms_tmp/"
END

LAYER
	NAME "caps"
	STATUS on
	TYPE raster
	DATA "caps.tif"	
	CLASS
		NAME "caps"
	END	
END

   
LAYER

    	NAME "Biomap"

	STATUS on
	TRANSPARENCY 80 
	TYPE polygon   
	DATA "biocorp1_Clip"

    	CLASS
		NAME "BioMap"
		STYLE
			COLOR 50 90 150 
		END
	END
END

LAYER

  	NAME "SupportingNaturalLandscape"

	STATUS on
	TRANSPARENCY 80 
	TYPE polygon   
	DATA "biosnlp1_Clip"

    	CLASS
		NAME "BioMap (SNL)"
		STYLE
			COLOR 70 150 150 
		END
	
	END


END

LAYER
	NAME "OpenSpace"
	STATUS on
	TRANSPARENCY 80
	TYPE polygon
	DATA "BC_OpenSpace"
	CLASSITEM "LEV_PROT"
	CLASS
		EXPRESSION "L"
		STYLE
			COLOR 102 204 0
		END
	END
	CLASS
		EXPRESSION "P"
		STYLE
			COLOR 51 102 0
		END
	END
	CLASS
		EXPRESSION "T"
		STYLE
			COLOR 102 153 0
		END
	END
	CLASS
		EXPRESSION "X"
		STYLE
			COLOR 102 255 0
		END
	END
	CLASS
		EXPRESSION "N"
		STYLE
			COLOR 102 255 0
		END
	END
END

LAYER
	NAME "Towns"
	STATUS on
	TYPE polygon
	DATA "TOWNS_POLY_Clip"
	CLASS
		NAME "Town Boundaries"
		STYLE
			OUTLINECOLOR 0 0 0
		END
	END
END

LAYER

  	NAME "Roads"

	STATUS on 
	TYPE line   
	DATA "EOTMAJROADS_ARC_Clip"

    	CLASS
		NAME "Roads"
		STYLE
			COLOR 102 51 0 
		END
	
	END


END

LAYER

  	NAME "Streams"

	STATUS on 
	TYPE line   
	DATA "maj_sta1_Clip"

    	CLASS
		STYLE
			COLOR 50 100 150
		END
	
	END


END
LAYER
	NAME "RoadsN"
	DATA "EOTMAJROADS_ARC_Clip"
	STATUS on
	TYPE ANNOTATION
	LABELCACHE on
	LABELITEM "STREET_NAM"
	MAXSCALE 123000
	CLASS
		LABEL	
			TYPE truetype
			FONT "arial-bolditalic"
			SIZE 10
			COLOR 0 0 0
			ANGLE auto
			MINFEATURESIZE 60
			MINDISTANCE 175
		END
	END	
END
LAYER

    	NAME "Watersheds"

	STATUS on 
	TYPE polygon   
	DATA "BC_watersheds1"

    	CLASS
		STYLE
			SIZE 1
			OUTLINECOLOR 255 30 30
		END
	END

END 



LAYER
	NAME "TownsN"
	DATA "TOWNS_POLY_Clip"
	STATUS on
	TYPE ANNOTATION
	LABELCACHE on
	LABELITEM "TOWN"
	CLASS
		LABEL	
			TYPE truetype
			FONT "arial-bolditalic"
			SIZE 10
			MINFEATURESIZE 62
			COLOR 230 230 30
			OUTLINECOLOR 0 0 0
		END
	END	
END

LAYER
	NAME "WatershedN"
	DATA "BC_watersheds1"
	STATUS off
	TYPE ANNOTATION
	LABELCACHE on
	LABELITEM "NAME"
	MINSCALE 123000
	CLASS
		LABEL	
			TYPE truetype
			FONT "arial-bolditalic"
			SIZE 9
			COLOR 236 80 33
			OUTLINECOLOR 0 0 0
			MINFEATURESIZE 30
		END
	END
END

END # mapfile



More information about the MapServer-users mailing list