hash table error
David Bitner
osgis.lists at GMAIL.COM
Tue Jan 11 10:28:46 PST 2005
MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
I am getting the following error in my mapserver log with the
following map file:
msFreeHashItems(): Hash Table Error. Can't free Null table
The map draws, but does not contain the postgis layers.
Map File:
MAP
NAME "macnoise"
DEBUG ON
STATUS ON
EXTENT 475600 4962000 492500 4974000
SIZE 500 400
SHAPEPATH "../data"
SYMBOLSET "../etc/symbols.sym"
FONTSET "../etc/fonts.txt"
IMAGETYPE jpeg
IMAGECOLOR 245 226 168
UNITS METERS
WEB
TEMPLATE "mapserver.html"
IMAGEPATH "/var/apache/htdocs/tmp/"
IMAGEURL "../tmp/"
END
QUERYMAP
STATUS ON
SIZE 1 1
COLOR 255 255 0
STYLE HILITE
END
LEGEND
STATUS ON
KEYSIZE 21 14
TEMPLATE "legend.html"
IMAGECOLOR 240 232 200
END
SCALEBAR
STATUS EMBED
COLOR 255 255 255
OUTLINECOLOR 255 255 255
BACKGROUNDCOLOR 0 102 153
IMAGECOLOR 0 102 153
TRANSPARENT OFF
UNITS MILES
INTERVALS 2
SIZE 150 5
STYLE 1
POSITION LL
LABEL
TYPE BITMAP
SIZE SMALL
OFFSET 0 0
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE -1
COLOR 255 255 255
PARTIALS TRUE
FORCE FALSE
END
END
SYMBOL
NAME "Intersates"
TYPE PIXMAP
IMAGE "../etc/interstate-shield.png"
END
OUTPUTFORMAT
NAME "PNG"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE PC256
TRANSPARENT FALSE
END
OUTPUTFORMAT
NAME "jpeg"
MIMETYPE "image/jpeg"
DRIVER "GD/JPEG"
EXTENSION "jpg"
IMAGEMODE RGB
TRANSPARENT FALSE
END
PROJECTION
"proj=utm"
"ellps=GRS80"
"zone=15"
"north"
"no_defs"
END
LAYER
NAME "Landmark Areas"
GROUP "Landmarks"
STATUS ON
DATA "tlglmk_areas_a"
TYPE POLYGON
CLASSITEM "F_CLASS"
UNITS METERS
SIZEUNITS PIXELS
LABELITEM "F_NAME"
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
NAME "Water"
EXPRESSION /H10|H30/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 5
MINSIZE 4
MAXSIZE 256
POSITION CC
OFFSET 0 0
ANGLE 0.000000
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE 50
COLOR 24 69 128
ANTIALIAS TRUE
PARTIALS FALSE
FORCE FALSE
END
STYLE
SYMBOL 0
COLOR 179 198 213
OUTLINECOLOR 159 178 193
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Greenspace"
EXPRESSION /D81|D82|D83|D85|D86|D87|D88|D89/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 5
MINSIZE 4
MAXSIZE 256
POSITION CC
OFFSET 0 0
ANGLE 0.000000
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE 100
COLOR 122 115 102
ANTIALIAS TRUE
PARTIALS FALSE
FORCE FALSE
END
STYLE
SYMBOL 0
COLOR 220 220 174
OUTLINECOLOR 220 220 174
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Airports"
EXPRESSION /D51/
STYLE
SYMBOL 0
COLOR 222 215 202
OUTLINECOLOR 197 197 140
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Military"
EXPRESSION /D10/
STYLE
SYMBOL 0
COLOR 242 235 222
OUTLINECOLOR 197 197 140
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
METADATA
LEGEND_TITLE "Landmark Areas"
LEGEND_META_GROUP "foreground"
LEGEND_DISPLAY_LEVEL "3"
END
END
LAYER
NAME "Airport Pavement"
GROUP "Landmarks"
STATUS ON
DATA "mac_airports_20040213"
TYPE POLYGON
CLASSITEM "TYPE"
UNITS METERS
SIZEUNITS PIXELS
LABELITEM "AIRPORT"
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
NAME "Airport Pavement"
EXPRESSION /Pavement|PAVEMENT/
STYLE
SYMBOL 0
COLOR 190 181 177
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
LAYER
NAME landmarks_legend_control
GROUP "Landmarks"
MAXSCALE 0
STATUS OFF
TYPE polygon
METADATA
GROUP_MAXSCALE "600000"
LEGEND_TITLE "Landmark Areas"
LEGEND_META_GROUP "foreground"
LEGEND_DISPLAY_LEVEL "1"
END
END
LAYER
NAME "Revised Draft 2007 Mitigated Blocks"
GROUP "Noise"
STATUS ON
DATA "blocks_2007m_0304"
TYPE POLYGON
CLASSITEM "revmit2007"
UNITS METERS
SIZEUNITS PIXELS
LABELITEM "revmit2007"
LABELMAXSCALE 20000
TOLERANCE 0
TOLERANCEUNITS PIXELS
FILTER "1"
FILTERITEM "blkstocons"
CLASS
NAME "Block 65 DNL"
EXPRESSION ([revmit2007]>=65)
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
POSITION CC
OFFSET 0 0
END
STYLE
SYMBOL 0
COLOR 0 45 0
OUTLINECOLOR 115 115 115
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS FALSE
END
END
CLASS
NAME "Block 64 DNL"
EXPRESSION /64/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
POSITION CC
OFFSET 0 0
END
STYLE
SYMBOL 0
COLOR 0 95 0
OUTLINECOLOR 115 115 115
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS FALSE
END
END
CLASS
NAME "Block 63 DNL"
EXPRESSION /63/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
POSITION CC
OFFSET 0 0
END
STYLE
SYMBOL 0
COLOR 0 135 0
OUTLINECOLOR 115 115 115
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS FALSE
END
END
CLASS
NAME "Block 62 DNL"
EXPRESSION /62/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
POSITION CC
OFFSET 0 0
END
STYLE
SYMBOL 0
COLOR 0 175 0
OUTLINECOLOR 115 115 115
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS FALSE
END
END
CLASS
NAME "Block 61 DNL"
EXPRESSION /61/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
POSITION CC
OFFSET 0 0
END
STYLE
SYMBOL 0
COLOR 0 215 0
OUTLINECOLOR 115 115 115
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS FALSE
END
END
CLASS
NAME "Block 60 DNL"
EXPRESSION /60/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
POSITION CC
OFFSET 0 0
END
STYLE
SYMBOL 0
COLOR 0 255 0
OUTLINECOLOR 115 115 115
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS FALSE
END
END
END
LAYER
NAME "Revised Draft 2007 Mitigated Blocks - complete"
GROUP "Noise"
STATUS ON
DATA "blocks_2007m_0304"
TYPE POLYGON
CLASSITEM "STATUS96"
UNITS METERS
SIZEUNITS PIXELS
LABELITEM "revmit2007"
LABELMAXSCALE 20000
TOLERANCE 0
TOLERANCEUNITS PIXELS
FILTER "1"
FILTERITEM "blkstocons"
CLASS
NAME "Completed in 96 Program"
EXPRESSION /Complete_96/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
POSITION CC
OFFSET 0 0
END
STYLE
SYMBOL 0
COLOR 250 80 50
OUTLINECOLOR 115 115 115
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS FALSE
END
END
END
LAYER
NAME "Flight Tracks Grid"
GROUP "flighttracks"
STATUS ON
CONNECTION //intentionally left out for email
CONNECTIONTYPE postgis
DATA "the_geom from (select count(f.oid) as count,g.the_geom as
the_geom from mkgrid('%mapext%',1000)as g, flighttrack as f where
g.the_geom && f.targets and (f.stime between '%sDate%' and '%eDate%'
or f.etime between '%sDate%' and '%eDate%') group by g.the_geom)as
tracks USING UNIQUE the_geom USING SRID=-1"
TYPE POLYGON
TRANSPARENCY 50
CLASSITEM "count"
CLASS
EXPRESSION ([count]>0 and [count]<=10)
COLOR 200 200 200
OUTLINECOLOR 255 255 255
END
CLASS
EXPRESSION ([count]>10 and [count]<=20)
COLOR 130 130 130
OUTLINECOLOR 255 255 255
END
CLASS
EXPRESSION ([count]>20)
COLOR 60 60 60
OUTLINECOLOR 255 255 255
END
END
LAYER
NAME "Roads"
GROUP "Roads"
STATUS ON
DATA "tlg_roads_l"
TYPE LINE
CLASSITEM "F_CLASS"
UNITS METERS
SIZEUNITS PIXELS
LABELITEM "STREETNAME"
TOLERANCE 0
TOLERANCEUNITS PIXELS
TEMPLATE "/var/apache/htdocs/maps/geocode_result.php"
CLASS
NAME "Interstates"
EXPRESSION /A10|A15/
STYLE
SYMBOL 8
COLOR 230 101 17
SIZE 7
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
STYLE
SYMBOL 8
COLOR 255 153 0
SIZE 4
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
END
CLASS
NAME "Primary Highways"
EXPRESSION /A20|A25/
MAXSCALE 300000
STYLE
SYMBOL 8
COLOR 205 120 45
SIZE 6
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
STYLE
SYMBOL 8
COLOR 249 208 144
SIZE 3
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
END
CLASS
NAME "Secondary Highways"
EXPRESSION /A30/
MAXSCALE 150000
STYLE
SYMBOL 8
COLOR 171 158 137
SIZE 4
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
STYLE
SYMBOL 8
COLOR 254 244 131
SIZE 2
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
END
CLASS
NAME "Local Roads"
MAXSCALE 60000
STYLE
SYMBOL 0
COLOR 171 158 136
OUTLINECOLOR 255 255 255
SIZE 1
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
END
METADATA
LEGEND_TITLE "Roads"
LEGEND_META_GROUP "foreground"
LEGEND_DISPLAY_LEVEL "3"
END
END
LAYER
NAME "Roads Annotation"
GROUP "Roads"
STATUS ON
DATA "tlg_roads_l"
TYPE ANNOTATION
CLASSITEM "F_CLASS"
UNITS METERS
SIZEUNITS PIXELS
LABELITEM "HIGHWAY_NU"
TOLERANCE 0
TOLERANCEUNITS PIXELS
REQUIRES "[Roads]"
CLASS
NAME "Interstates"
EXPRESSION /A10|A15/
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 8
MINSIZE 4
MAXSIZE 6
POSITION CC
OFFSET 0 0
ANGLE 0.000000
BUFFER 0
MINDISTANCE 200
MINFEATURESIZE -1
COLOR 255 255 255
ANTIALIAS TRUE
PARTIALS TRUE
FORCE FALSE
END
STYLE
SYMBOL 1
SIZE 20
MINSIZE 1
MAXSIZE 100
ANTIALIAS TRUE
END
END
CLASS
NAME "Primary Highways"
EXPRESSION /A20|A25/
MAXSCALE 150000
TEXT ([highway_nu])
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
MINSIZE 4
MAXSIZE 256
POSITION CC
OFFSET 0 0
ANGLE 0.000000
BUFFER 0
MINDISTANCE 200
MINFEATURESIZE AUTO
COLOR 0 0 0
ANTIALIAS TRUE
PARTIALS TRUE
FORCE FALSE
END
STYLE
SYMBOL 5
COLOR 255 255 255
OUTLINECOLOR 0 0 0
SIZE 16
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Secondary Highways"
EXPRESSION /A30/
MAXSCALE 60000
TEXT ([STREETALL])
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
MINSIZE 4
MAXSIZE 256
POSITION UC
OFFSET 0 0
ANGLE AUTO
BUFFER 0
MINDISTANCE 200
MINFEATURESIZE -1
COLOR 200 0 0
OUTLINECOLOR 245 226 168
ANTIALIAS TRUE
PARTIALS TRUE
FORCE FALSE
END
END
CLASS
NAME "Local Roads"
EXPRESSION /40/
MAXSCALE 40000
TEXT ([STREETALL])
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 7
MINSIZE 4
MAXSIZE 256
POSITION UC
OFFSET 0 0
ANGLE AUTO
BUFFER 0
MINDISTANCE 200
MINFEATURESIZE -1
COLOR 102 102 102
OUTLINECOLOR 245 226 168
ANTIALIAS TRUE
PARTIALS TRUE
FORCE FALSE
END
END
END
LAYER
NAME roads_legend_control
GROUP "Roads"
MAXSCALE 0
STATUS OFF
TYPE polygon
METADATA
GROUP_MAXSCALE "600000"
LEGEND_TITLE "Roads"
LEGEND_META_GROUP "foreground"
LEGEND_DISPLAY_LEVEL "1"
END
END
LAYER
NAME "Cities"
GROUP "Cities"
STATUS ON
DATA "citybnd"
TYPE POLYGON
UNITS METERS
SIZEUNITS PIXELS
MINSCALE 20000
LABELITEM "NAME"
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
NAME "Cities"
LABEL
TYPE TRUETYPE
FONT "arial"
SIZE 8
MINSIZE 4
MAXSIZE 256
POSITION CC
OFFSET 0 0
ANGLE 0.000000
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE 40
COLOR 189 0 0
SHADOWCOLOR 255 255 0
ANTIALIAS TRUE
PARTIALS TRUE
FORCE TRUE
END
STYLE
SYMBOL 0
OUTLINECOLOR 255 0 0
SIZE 2
MINSIZE 1
MAXSIZE 100
END
END
METADATA
LEGEND_TITLE "Cities"
LEGEND_META_GROUP "foreground"
LEGEND_DISPLAY_LEVEL "1"
END
END
LAYER
NAME "Revised Draft 2007 Mitigated Contours"
GROUP "Noise"
STATUS ON
DATA "m2007_vmar04_pm3b_ContourLine_Lines"
TYPE LINE
CLASSITEM "Level"
MAXSCALE 1000000
LABELITEM "Level"
CLASS
NAME "5db increments"
EXPRESSION /60|65|70|75/
MAXSCALE 1000000
TEXT ([Level] DNL)
LABEL
TYPE TRUETYPE
FONT "arial-bold"
SIZE 10
OFFSET 0 0
END
STYLE
SYMBOL 8
COLOR 0 0 0
SIZE 2
ANTIALIAS TRUE
END
END
CLASS
NAME "1db increments"
MAXSCALE 60000
STYLE
SYMBOL 8
COLOR 0 0 0
SIZE 1
END
END
METADATA
LEGEND_TITLE "Revised Draft 2007 Mitigated Contours"
LEGEND_META_GROUP "foreground"
LEGEND_DISPLAY_LEVEL "3"
END
END
LAYER
NAME "Flight Tracks"
GROUP "flighttracks"
STATUS ON
CONNECTION //intentionally left out for email
CONNECTIONTYPE postgis
DATA "targets from (select * from flighttrack where stime between
'%sDate%' and '%eDate%' or etime between '%sDate%' and '%eDate%')as
tracks USING UNIQUE opnum USING SRID=-1"
TYPE LINE
CLASSITEM "adflag"
CLASS
EXPRESSION /A/
COLOR 0 255 0
END
CLASS
EXPRESSION /D/
COLOR 255 0 0
END
CLASS
COLOR 160 160 160
END
END
LAYER
NAME "draft"
STATUS DEFAULT
TYPE POINT
TRANSFORM FALSE
TRANSPARENCY 5
CLASS
NAME "draft"
TEXT "DRAFT"
LABEL
TYPE TRUETYPE
FONT "arial-bold"
SIZE 40
POSITION LR
OFFSET 0 0
COLOR 236 240 238
OUTLINECOLOR 108 108 108
ANTIALIAS TRUE
PARTIALS TRUE
FORCE TRUE
END
STYLE
SYMBOL 8
COLOR 230 230 230
SIZE 22
END
END
FEATURE
TEXT "draft"
POINTS
0 0
END
END
END
END
More information about the MapServer-users
mailing list