[mapserver-users] getSymbol(): (BUFFER):395 error

Tim Sutton sutton_t at giug.net
Wed Dec 19 05:37:50 PST 2001


Hi

I have just upgraded my cvs to get up to date with 3.5 stable. My last
build was made about 1.5 months back. I am using phpmapscript with php
as a CGI. When I use the version built from todays cvs update, I get
an error reading my map file:

Warning: MapServer Error in getSymbol(): (BUFFER):(395)

It is the same mapfile I was using successfully with the previous cvs
build. Can anyone tell me what is going on? The map file is included
in full below.

Thanks

Tim

-- 
-----------------------------------------------------
Tim Sutton                          WRc plc
Consultant, GIS Solutions Group     Frankland Road
Direct line:  +44 (0) 1793 865056   Blagrove
Switchboard:  +44 (0) 1793 865000   Swindon
Fax:          +44 (0) 1793 865001   Wiltshire SN5 8YF
                                    United Kingdom

WRc - Solutions for Water, Waste and the Environment
-----------------------------------------------------
#
# Start of map file 
#
NAME europe.map
	SIZE 550 370
	EXTENT -11.576 36.060 29.804 69.777
	#File Bounds: (     -11.576,      36.060,0,0)
	#         to  (      29.804,      69.777,0,0)
	SYMBOLSET symbols/symbols.sym
	IMAGEQUALITY 86
	IMAGECOLOR 172 202 236 
	# IMAGECOLOR 207 232 249 
	UNITS dd
	FONTSET 'fonts/ms_fontset'
	SHAPEPATH '/shape/'
#
# Start of web interface definition
#
WEB
	TEMPLATE 'mapdisplay.html'
	IMAGEPATH '/tmp/ms_tmp/'
	IMAGEURL '/ms_tmp/'
END  #WEB
#
# Start of reference map
#
REFERENCE
	SIZE 150 160
	IMAGE /ms_europe/ref_map.jpg
	EXTENT 217356.950 465307.700 252617.812 504843.660
	STATUS ON
	COLOR -1 -1 -1
	OUTLINECOLOR 255 0 0
END  #REFERENCE
#
# Start of legend
#
LEGEND
	KEYSIZE 18 12
	LABEL
		TYPE BITMAP
		SIZE MEDIUM
		COLOR 172 202 238 
		POSITION UR
	END
	STATUS ON
END   #LEGEND
#
# Start of scalebar
#
SCALEBAR
	IMAGECOLOR 172 202 236 
	LABEL
		COLOR 0 0 0
		SIZE SMALL
	END  #LABEL
	SIZE 350 5
	COLOR 255 255 255
	BACKGROUNDCOLOR 0 0 0
	OUTLINECOLOR 0 0 0
	INTERVALS 10
	STYLE 1
	STATUS ON
END   #SCALEBAR

QUERYMAP
  STYLE HILITE
  COLOR 0 128 128 
END
#
# Start of layer definitions
#
#Layers draw in the order listed ie. last listed layers are on top

#--------------------------------------------------------

#shpdump EEA_region.shp |head
#Shapefile Type: Polygon   # of Shapes: 51

#File Bounds: (    -180.000,      27.637,0,0)
#         to  (     180.000,      81.852,0,0)

#shpdump NONEEA_region.shp |head
#Shapefile Type: Polygon   # of Shapes: 8
#File Bounds: (     -73.054,       3.493,0,0)
#         to  (     134.774,      83.624,0,0)


#shpdump STATION_point.shp |head
#Shapefile Type: Point   # of Shapes: 154

#File Bounds: (      -9.020,      37.370,0,0)
#         to  (      28.780,      68.900,0,0)

#shpdump WPEU3M_polyline.shp |head
#Shapefile Type: Arc   # of Shapes: 6158

#File Bounds: (     -22.979,      36.279,0,0)
#         to  (      66.209,      72.031,0,0)

#shpdump EEA_region_Clip.shp |head
#Shapefile Type: Polygon   # of Shapes: 376

#File Bounds: (     -10.475,      36.065,0,0)
#         to  (      29.804,      69.753,0,0)

#shpdump NONEEA_region_Clip.shp |head
#Shapefile Type: Polygon   # of Shapes: 9

#File Bounds: (       0.157,      36.069,0,0)
#         to  (      29.804,      42.110,0,0)

#shpdump WPEU3M_polyline_Clip.shp |head
#Shapefile Type: Arc   # of Shapes: 4933

#File Bounds: (     -10.158,      36.279,0,0)
#         to  (      29.804,      69.751,0,0)


#--------------------------------------------------------
#BOD5-broken 

LAYER
	NAME bod_idw
	TYPE raster
	STATUS off
	OFFSITE 0 #palette entry no to be considered transparent
	DATA bod_idw.tif
END  # LAYER

#--------------------------------------------------------
#Phosphorous - works

LAYER
	NAME phosphorus_idw
	TYPE raster
	STATUS off
	OFFSITE 0 #palette entry no to be considered transparent
	DATA Phosphorus_idw.tif 
END  # LAYER

#--------------------------------------------------------
#Nitrate image - works

LAYER
	NAME nitrate_idw
	TYPE raster
	STATUS off
	OFFSITE 0 #palette entry no to be considered transparent
	DATA nitrate_idw.tif 
END  # LAYER

#--------------------------------------------------------
#PH image - works

LAYER
	NAME ph_idw
	TYPE raster
	STATUS on
	OFFSITE 0 #palette entry no to be considered transparent
	DATA PH_IDW8bit2.tif 
END  # LAYER

#--------------------------------------------------------
#shpdump SEA_rectangle.shp |head
#Shapefile Type: Polygon   # of Shapes: 1

#File Bounds: (     -11.576,      36.060,0,0)
#         to  (      29.804,      69.777,0,0)

LAYER
	NAME Sea
	TYPE Polygon
	STATUS off
	DATA SEA_rectangle
	#MAXSCALE 5000
	CLASS
		Name 'Sea'
		COLOR 172 202 238 
		OUTLINECOLOR -1 -1 -1
	END  # CLASS

END  # LAYER

#--------------------------------------------------------
#shpdump EEA_region_Clip.shp |head
#Shapefile Type: Polygon   # of Shapes: 376

#File Bounds: (     -10.475,      36.065,0,0)
#         to  (      29.804,      69.753,0,0)
# This is to make a double layer for the country boundaries
#-------------------------------------------------------
LAYER
	NAME EEARegions 
	TYPE Polygon
	STATUS on 
	DATA EEA_region_Clip
	#MINSCALE 5000
	#MAXSCALE 75000
	CLASS
		Name 'EEA Region'
		COLOR -1 -1 -1
		OUTLINECOLOR 0 0 0
		SIZE 5
		SYMBOL 0 
	END  # CLASS
END  # LAYER
#--------------------------------------------------------
#shpdump NONEEA_region_Clip.shp |head
#Shapefile Type: Polygon   # of Shapes: 9

#File Bounds: (       0.157,      36.069,0,0)
#         to  (      29.804,      42.110,0,0)
LAYER
	NAME NONEEARegion 
	TYPE Polygon
	STATUS on 
	DATA NONEEA_region_Clip
	CLASS
		Name 'Non EEA Region'
		#COLOR 255 0 0
		OUTLINECOLOR 216 0 0
		#SYMBOL 'dashed-line'
		SIZE 4 
	END  # CLASS
END  # LAYER

#--------------------------------------------------------
#shpdump WPEU3M_polyline_Clip.shp |head
#Shapefile Type: Arc   # of Shapes: 4933

#File Bounds: (     -10.158,      36.279,0,0)
#         to  (      29.804,      69.751,0,0)
LAYER
	NAME Rivers
	TYPE Line
	STATUS on
	#MINSCALE 1000000
	DATA WPEU3M_polyline_Clip
	HEADER 'rivers_header.html'
	METADATA
    		"DESCRIPTION"   "Rivers"
		"RESULT_FIELDS" "WPCDCN1 WPCDCN2"
	END
	#LABELITEM 'WPCDCN1'
	CLASS
		Name 'Rivers'
		COLOR 0 0 255
		OUTLINECOLOR 0 0 0
    		TEMPLATE "river_query_query.html"
	#	LABEL
	#		ANGLE AUTO
	#		SIZE 8
	#		MINSIZE 8
	#		MAXSIZE 16
	#		COLOR 0 0 0
	#		#WRAP ' ' #character to wrap lines with
	#		#OUTLINECOLOR 255 0 0 #for 'glow' labels
	#		TYPE TRUETYPE
	#		FONT arial
	#		ANTIALIAS
	#		BUFFER 4
	#	END
	END  # CLASS
END  # LAYER
#--------------------------------------------------------
#shpdump Europe_Towns.shp |head
#Shapefile Type: Point   # of Shapes: 21731

#File Bounds: (      -9.700,      35.010,0,0)
#         to  (      30.930,      68.650,0,0)
#NAME TOWN_CLASS POPN_BAND_ COUNTRY 1ST_ORDER_ 2ND_ORDER_ EASTING NORTHING POPN_000S popbnd 
LAYER
	NAME Towns 
	TYPE POINT
	#MAXSCALE 10000
	STATUS on 
	DATA Europe_Towns
	TEMPLATE 'towns_header.html'
	POSTLABELCACHE true #render this layer after all others
	#LABELCACHE on
	METADATA
    		"DESCRIPTION"   "Population Centers"
		"RESULT_FIELDS" "NAME COUNTRY POPN_000S"
	END
	CLASSITEM 'TOWN_CLASS'
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 1 MILLION TO 2 MILL'
    		SYMBOL 2
		SIZE 9   
		COLOR 255 0 0 
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 2 MILLION TO 3 MILL'
		SIZE 9   
    		SYMBOL 2
		COLOR 255 0 0 
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 3 MILLION TO 4 MILL'
		SIZE 9   
    		SYMBOL 2
		COLOR 255 0 0 
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL OVER 5 MILLION'
		#TEXT '*'   
    		SIZE 10
		SYMBOL 2
		COLOR 255 0 0 
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 500,000 TO 1 MILLIO'
		SIZE 8   
    		SYMBOL 2
		COLOR 255 0 0 
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 250,000 TO 500,000'
		SIZE 7   
    		SYMBOL 2
		COLOR 255 0 0 
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 50,000 TO 100,000'
		SIZE 6
    		SYMBOL 2
		COLOR 255 0 0 
	END  # CLASS
END  # LAYER
#--------------------------------------------------------
# This is a layer for smaller towns
#--------------------------------------------------------
#shpdump Europe_Towns.shp |head
#Shapefile Type: Point   # of Shapes: 21731

#File Bounds: (      -9.700,      35.010,0,0)
#         to  (      30.930,      68.650,0,0)
#NAME TOWN_CLASS POPN_BAND_ COUNTRY 1ST_ORDER_ 2ND_ORDER_ EASTING NORTHING POPN_000S popbnd 
LAYER
	NAME Towns 
	TYPE POINT
	#MAXSCALE 10000
	STATUS on 
	DATA Europe_Towns
	TEMPLATE 'towns_header.html'
	CLASSITEM 'TOWN_CLASS'
	CLASS
		EXPRESSION ('[popbnd]' gt 200000)
		NAME 'OTHER'
		SIZE 2 
		SYMBOL 3
		COLOR 255 0 0
	END #  CLASS
END  # LAYER

#--------------------------------------------------------
#shpdump Europe_Towns.shp |head
#Shapefile Type: Point   # of Shapes: 21731

#File Bounds: (      -9.700,      35.010,0,0)
#         to  (      30.930,      68.650,0,0)
#NAME TOWN_CLASS POPN_BAND_ COUNTRY 1ST_ORDER_ 2ND_ORDER_ EASTING NORTHING POPN_000S popbnd 
#
# THIS IS AN ANNOTATION LAYER FOR TOWNS
#--------------------------------------------------------
LAYER
	NAME TownLabels 
	TYPE ANNOTATION
	#MAXSCALE 10000
	STATUS on 
	DATA Europe_Towns
	TEMPLATE 'towns_header.html'
	POSTLABELCACHE true #render this layer after all others
	#LABELCACHE on
	LABELITEM 'NAME'
	CLASSITEM 'TOWN_CLASS'
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL OVER 5 MILLION'
		LABEL
			SIZE 13
			FONT arialbold
			TYPE TRUETYPE
			POSITION uc 
			COLOR 0 0 0
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			ANTIALIAS
			BUFFER 4 
		END
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 3 MILLION TO 4 MILL'
		LABEL
			SIZE 12
			FONT arialbold
			TYPE TRUETYPE
			POSITION uc 
			COLOR 0 0 0
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			ANTIALIAS
			BUFFER 4 
		END
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 2 MILLION TO 3 MILL'
		LABEL
			SIZE 11
			FONT arialbold
			TYPE TRUETYPE
			COLOR 0 0 0
			POSITION uc 
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			ANTIALIAS
			BUFFER 2 
		END
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 1 MILLION TO 2 MILL'
		LABEL
			SIZE 10
			FONT arialbold
			TYPE TRUETYPE
			POSITION uc 
			COLOR 0 0 0
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			ANTIALIAS
			BUFFER 2 
		END
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 500,000 TO 1 MILLIO'
		LABEL
			SIZE 10
			FONT arialbold
			TYPE TRUETYPE
			POSITION uc 
			COLOR 255 0 0
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			ANTIALIAS
			BUFFER 2 
		END
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 250,000 TO 500,000'
		LABEL
			SIZE 7
			FONT arialbold
			TYPE TRUETYPE
			COLOR 0 0 0
			POSITION uc 
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			ANTIALIAS
			BUFFER 2 
		END
	END  # CLASS
	CLASS
		NAME 'NationalCapital'
		EXPRESSION 'NATIONAL CAPITAL 50,000 TO 100,000'
		LABEL
			SIZE 6
			FONT arialbold
			TYPE TRUETYPE
			COLOR 255 0 0
			POSITION uc 
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			ANTIALIAS
			BUFFER 2 
		END
	END  # CLASS

END  # LAYER

#--------------------------------------------------------
#shpdump STATION_point.shp |head
#Shapefile Type: Point   # of Shapes: 154

#File Bounds: (      -9.020,      37.370,0,0)
#         to  (      28.780,      68.900,0,0)
# Fields in dbf:
# CO STNR QUALIFIER LOCATION R_NAME EEASTNR LAT LONG OLD_ID FLOW PH CONDUCTIVI 
# CHLORIDES DO BOD5 COD AMMONIUM NITRATE PHOSPHORUS IAMMONIUM INITRATE IPHOSPHORU 
LAYER
	NAME Stations 
	TYPE POINT
	#MAXSCALE 10000
	STATUS on 
	DATA STATION_point
	TEMPLATE 'stations_header.html'
	HEADER 'stations_header.html'
	METADATA
    		"DESCRIPTION"   "Sampling Stations"
		"RESULT_FIELDS" "STNR R_NAME FLOW"
	END
	#QUERY
		#TEMPLATE os labels_query.html
	#END #  QUERY
	#CLASSITEM 'LOCATION'
	CLASS
		Name 'Stations'
		TEXT 'x'   
		COLOR 153 153 153 
		LABEL
			SIZE 8 
			MINSIZE 6 
			MAXSIZE 16
			FONT tomahabold
			COLOR 0 0 0
			#WRAP ' ' #character to wrap lines with
			OUTLINECOLOR 255 255 255 #for 'glow' labels
			TYPE TRUETYPE
			ANTIALIAS
		END
	END  # CLASS
END  # LAYER

#--------------------------------------------------------
END  # MAPFILE


 




More information about the MapServer-users mailing list