[Mapserver-users] 3.7_23mar breaking where 3.6.3 ran fine ??
Dylan Keon
keon at nacse.org
Sun Mar 23 10:28:25 PST 2003
George,
After just a cursory glance I noticed you have OFFSITE defined on at
least one layer. The syntax for OFFSITE has changed (now requires RGB
value instead of color index value), and I know for a fact that will
cause your app to fail with no warning.
There are probably other issues you need to address, so please see the
3.7 migration guide for details on OFFSITE and more. There's quite a
bit to do when migrating from 3.6.x to 3.7, and almost all (?) of it is
covered in the guide:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide
--Dylan
George Planansky wrote:
> I just moved from mapserver-3.6.3 to
> mapserver_3.7_dev_2003-03-23 ... and my stuff
> now fails, with and without error messages.
>
> I've 5 closely related map file example below,
> the first two just fail silently, the second three
> produce the same error message, but at different
> lines.
>
> Could someone knowledgeable have a look, and
> hopefully see in a flash, what I need to change
> to accommodate 3.7 ?
>
> thanks,
>
> George
>
> fwiw Solaris 2.8 gcc
> Only change from 3.6.3, is I added libcurl, and,
> the --with-wfs --with-wfs-client options
> ---------------------------------------------------
> ./configure \
> --disable-rxposix-conflict-error \
> --with-gd \
> --without-tiff \
> --with-jpeg=/usr/local \
> --with-zlib=/usr \
> --with-png=/usr/local \
> --with-freetype=/usr/local/bin/freetype-config \
> --with-eppl \
> --with-proj=/usr/local \
> --with-gdal=/usr/local/bin/gdal-config \
> --with-ogr \
> --with-postgis=/usr/local/pgsql/bin/pg_config \
> --with-wfs \
> --with-wmsclient \
> --with-wfsclient \
> --enable-debug \
> --with-php=/usr/local/src/php-4.3.2RC1 \
> --enable-runpath >& configure.out &
>
> mapfiles:
> ---------
>
> These both work fine with mapserver-3.6.3,
> both fail silently (no image produced, no
> error message) with mapserver_3.7_dev_20030323:
>
>
> s23a.map
> 1:NAME S23a
> 4:EXTENT 360772.000 3757330.000 387202.000 3777160.00
> 5:SIZE 800 600
> 6:
> 7:SHAPEPATH "/l/www/wacke/htdocs/mapserver/cfm/data"
> 8:FONTSET "/l/www/wacke/htdocs/mapserver/fonts/fonts.list"
> 9:
> 10:IMAGETYPE png
> 11:
> 12:PROJECTION
> 13: "init=epsg:26711" # our raster file
> 14:END
> 15:
> 16:LAYER # Shaded Relief Raster
> 17: NAME "relief"
> 18: DATA "strm_scal_utma.tif"
> 20: STATUS off
> 21: TYPE RASTER
> 22: OFFSITE 0
> 23:END
> 24:
> 25:SYMBOL #Solid circle
> 26: NAME 'circle'
> 27: TYPE ELLIPSE
> 28: POINTS 1 1 END
> 29: FILLED TRUE
> 30:END
> 31:
> 32:LAYER
> 33: NAME "faultlines"
> 34: DATA "jennings"
> 35: STATUS DEFAULT
> 36: TYPE LINE
> 37: CLASS # class
> 38: NAME "faultlines"
> 39: COLOR 255 255 0
> 40: SYMBOL 'circle'
> 41: SIZE 4
> 42: END
> 43:END
> 44:
> 45:LAYER
> 46: NAME "faultlinesnames"
> 47: DATA "jennings"
> 48: STATUS DEFAULT
> 49: TYPE ANNOTATION
> 50: LABELITEM "NAME"
> 52: CLASS # NAME's class
> 53: COLOR -1 -1 -1
> 54: LABEL
> 55: COLOR 0 0 0
> 56: MINDISTANCE 25
> 57: OUTLINECOLOR 255 255 0
> 58: TYPE BITMAP
> 59: SIZE MEDIUM
> 60: POSITION CC
> 61: PARTIALS FALSE
> 62: BUFFER 2
> 63: END
> 64: END
> 65:END
> 66:
> 67:LAYER # mapgrida 7.5 minute shapefile
> 68: STATUS DEFAULT
> 69: NAME "mapgridalines"
> 70: DATA "mapgrida"
> 71: PROJECTION
> 72: "init=epsg:43001" # our raster file
> 73: END
> 74: TYPE LINE
> 75: CLASS
> 76: COLOR 0 0 0
> 77: SYMBOL 'circle'
> 78: SIZE 2
> 79: END
> 80:END
> 81:
> 82:LAYER # mapgrida 7.5 minute shapefile quadnames
> 83: STATUS DEFAULT
> 85: NAME "mapgridanames"
> 86: DATA "mapgrida"
> 87: PROJECTION
> 88: "init=epsg:43001" # our raster file
> 89: END
> 90: TYPE ANNOTATION
> 91: LABELITEM "MAPNAME"
> 93: CLASS
> 97: LABEL
> 98: POSITION CC
> 99: COLOR 0 0 0
> 100: TYPE TRUETYPE
> 101: FONT arial
> 102: SIZE 14
> 103: ANTIALIAS TRUE
> 104: PARTIALS FALSE
> 105: BUFFER 2
> 106: END
> 107: END
> 108:END
> 109:
> 110:END # end of map file
> 111:
>
> s32b.map
> 1:NAME S23
> 3:EXTENT 313612.000 3680020.000 477202.000 3823240.000
> 5:SIZE 800 600
> 6:
> 7:SHAPEPATH "/l/www/wacke/htdocs/mapserver/cfm/data"
> 8:FONTSET "/l/www/wacke/htdocs/mapserver/fonts/fonts.list"
> 9:
> 10:IMAGETYPE png
> 11:
> 12:PROJECTION
> 14:"init=epsg:26711"
> 15:END
> 16:
> 17:LAYER # Shaded Relief Raster
> 18: NAME "strm_scal_utma"
> 19: DATA "strm_scal_utma.tif"
> 21: STATUS off
> 22: TYPE RASTER
> 23: OFFSITE 0
> 24:END
> 25:
> 26:LAYER # Shaded Relief Raster
> 27: NAME "scalmosaic_utm_shaded"
> 28: DATA "scalmosaic_utm_shaded.tif"
> 29: STATUS DEFAULT
> 31: TYPE RASTER
> 32: OFFSITE 0
> 33:END
> 34:
> 35:SYMBOL #Solid circle
> 36: NAME 'circle'
> 37: TYPE ELLIPSE
> 38: POINTS 1 1 END
> 39: FILLED TRUE
> 40:END
> 41:
> 42:LAYER # Jennings shapefile
> 43: NAME "faultlines"
> 44: DATA "jennings"
> 45: STATUS DEFAULT
> 46: TYPE LINE
> 47: CLASS # class
> 48: NAME "faultlines"
> 49: COLOR 255 255 0
> 50: SYMBOL 'circle'
> 51: SIZE 4
> 52: END # end of faultlines class object
> 53:END
> 54:
> 55:LAYER # Jennings shapefile
> 56: NAME "faultlines"
> 57: DATA "jennings"
> 58: STATUS DEFAULT
> 59: TYPE ANNOTATION
> 60:
> 61: LABELITEM "NAME"
> 63: CLASS # NAME's class
> 65: COLOR -1 -1 -1
> 66: LABEL
> 67: COLOR 0 0 0
> 68: MINDISTANCE 5
> 71: OUTLINECOLOR 255 255 255
> 75: TYPE BITMAP
> 76: SIZE MEDIUM
> 77: POSITION CC
> 78: PARTIALS FALSE
> 79: BUFFER 2
> 80: END # end of label
> 81: END # end of NAMES class object
> 82:END # end of layer object
> 83:
> 84:LAYER # mapgrida 7.5 minute shapefile
> 85: NAME "mapgrida"
> 86: DATA "mapgrida"
> 87: PROJECTION
> 89: "init=epsg:43001"
> 90: END
> 91: STATUS DEFAULT
> 92: TYPE LINE
> 95: LABELITEM "MAPNAME"
> 96: CLASS # class
> 97: NAME "mapgridalines"
> 98: COLOR 0 0 0
> 99: SYMBOL 'circle'
> 100: SIZE 2
> 101: LABEL
> 102: POSITION CC
> 105: COLOR 0 0 0
> 106: TYPE TRUETYPE
> 107: FONT arial
> 108: SIZE 2
> 109: ANTIALIAS TRUE
> 110: PARTIALS FALSE
> 111: BUFFER 2
> 112: END # end of label
> 113: END # end of mapgridlines class object
> 114:END
> 115:
> 116:END # end of map file
>
> These two work fine with mapserver 3.6.3,
> fails with error with mapserver_3.7_dev_2003-03-23:
>
>
> getInteger(): Symbol definition error. (END):(51)
> uses ilayers.map:
> 1:NAME ILAYERS
> 2:
> 7:EXTENT 360772.000 3757330.000 387202.000 3777160.00
> 9:SIZE 800 600
> 10:
> 11:SHAPEPATH "/l/www/wacke/htdocs/mapserver/cfm/data"
> 12:FONTSET "/l/www/wacke/htdocs/mapserver/fonts/fonts.list"
> 13:
> 14:IMAGETYPE png
> 15:
> 16:WEB
> 17: TEMPLATE ilayers.html
> 18: IMAGEPATH "/l/www/wacke/htdocs/mapserver/tmp/"
> 19: IMAGEURL "/mapserver/tmp/"
> 20:END
> 21:
> 22:LEGEND
> 23: STATUS ON
> 24: LABEL
> 25: TYPE TRUETYPE
> 26: FONT arial
> 27: COLOR 0 0 0
> 28: SIZE 10
> 29: ANTIALIAS TRUE
> 30: END
> 31:END
> 32:
> 33:REFERENCE
> 34: STATUS ON
> 35: IMAGE "/mapserver/cfm/data/labasin_relief_small_200x150.gif"
> 36: EXTENT 360772.000 3757330.000 387202.000 3777160.00
> 37: SIZE 200 150
> 38: COLOR -1 -1 -1
> 39: OUTLINECOLOR 255 0 0
> 40:END
> 41:
> 42:PROJECTION
> 43: "init=epsg:26711" # our raster file
> 44:END
> 45:
> 46:LAYER # Shaded Relief Raster
> 47: NAME "relief"
> 48: DATA "strm_scal_utma.tif"
> 49: STATUS off
> 50: TYPE RASTER
> 51: OFFSITE 0
> 52:END
> 53:
> 62:
> 63:SYMBOL #Solid circle
> 64: NAME 'circle'
> 65: TYPE ELLIPSE
> 66: POINTS 1 1 END
> 67: FILLED TRUE
> 68:END
> 69:
> 70:LAYER
> 71: NAME "faultlines"
> 72: DATA "jennings"
> 73: STATUS on
> 74: TYPE LINE
> 75: CLASS
> 76: NAME "faultlines"
> 77: COLOR 255 255 0
> 78: SYMBOL 'circle'
> 79: SIZE 3
> 80: END
> 81:END
> 82:
> 83:LAYER
> 84: NAME "faultnames"
> 85: DATA "jennings"
> 86: STATUS OFF
> 87: TYPE ANNOTATION
> 88: LABELITEM "NAME"
> 89: CLASS
> 91: COLOR -1 -1 -1
> 92: LABEL
> 93: COLOR 0 0 0
> 94: MINDISTANCE 25
> 95: OUTLINECOLOR 255 255 255
> 96: TYPE BITMAP
> 97: SIZE MEDIUM
> 98: POSITION CC
> 99: PARTIALS FALSE
> 100: BUFFER 2
> 101: END
> 102: END
> 103:END
> 104:
> 132:
> 133:LAYER # mapgrida 7.5 minute shapefile
> 134: STATUS ON
> 135: NAME "mapgridlines"
> 136: DATA "mapgrida"
> 137: PROJECTION
> 138: "init=epsg:43001" # our raster file
> 139: END
> 140: TYPE LINE
> 141: CLASS
> 142: NAME "Mapgrid Lines"
> 143: COLOR 0 0 0
> 144: SYMBOL 'circle'
> 145: SIZE 2
> 146: END
> 147:END
> 148:
> 149:LAYER # mapgrida 7.5 minute shapefile quadnames
> 150: STATUS OFF
> 151: NAME "mapgridnames"
> 152: DATA "mapgrida"
> 153: PROJECTION
> 154: "init=epsg:43001" # our raster file
> 155: END
> 156: TYPE ANNOTATION
> 157: LABELITEM "MAPNAME"
> 158: CLASS
> 162: LABEL
> 163: POSITION CC
> 164: COLOR 0 0 0
> 165: TYPE TRUETYPE
> 166: FONT arial
> 167: SIZE 12
> 168: ANTIALIAS TRUE
> 169: PARTIALS FALSE
> 170: BUFFER 2
> 171: END
> 172: END
> 173:END
> 174:
> 175:LAYER # co100a counties
> 176: STATUS ON
> 177: NAME "countylines"
> 178: DATA "co100a"
> 179: PROJECTION
> 180: "init=epsg:43001" # our raster file
> 181: END
> 182: TYPE LINE
> 183: CLASS
> 184: NAME "County Lines"
> 185: COLOR 0 0 0
> 186: SYMBOL 'circle'
> 187: SIZE 2
> 188: END
> 189:END
> 190:
> 191:LAYER # co100a county names
> 192: STATUS OFF
> 193: NAME "countynames"
> 194: DATA "co100a"
> 195: PROJECTION
> 196: "init=epsg:43001" # our raster file
> 197: END
> 198: TYPE ANNOTATION
> 199: LABELITEM "NAME"
> 200: CLASS
> 204: LABEL
> 205: POSITION CC
> 206: COLOR 0 0 255
> 207: TYPE TRUETYPE
> 208: FONT arial
> 209: SIZE 12
> 210: ANTIALIAS TRUE
> 211: PARTIALS FALSE
> 212: BUFFER 2
> 213: END
> 214: END
> 215:END
> 216:
> 217:END # end of map file
> 218:
>
> getInteger(): Symbol definition error. (END):(54)
> uses izoom.map:
> 1:NAME IZOOM
> 2:
> 7:EXTENT 360772.000 3757330.000 387202.000 3777160.00
> 8:SIZE 400 300
> 9:
> 10:SHAPEPATH "/l/www/wacke/htdocs/mapserver/cfm/data"
> 11:FONTSET "/l/www/wacke/htdocs/mapserver/fonts/fonts.list"
> 12:
> 13:IMAGETYPE png
> 14:
> 15:WEB
> 16: TEMPLATE izoom.html
> 17: IMAGEPATH "/l/www/wacke/htdocs/mapserver/tmp/"
> 18: IMAGEURL "/mapserver/tmp/"
> 19:END
> 20:
> 21:LEGEND
> 22: STATUS ON
> 23: LABEL
> 24: TYPE TRUETYPE
> 25: FONT arial
> 26: COLOR 0 0 0
> 27: SIZE 10
> 28: ANTIALIAS TRUE
> 29: END
> 30:END
> 31:
> 32:REFERENCE
> 34: STATUS ON
> 35: IMAGE "/mapserver/cfm/data/labasin_relief_small_200x150.gif"
> 36: EXTENT 360772.000 3757330.000 387202.000 3777160.00
> 37: SIZE 200 150
> 38: COLOR -1 -1 -1
> 39: OUTLINECOLOR 255 0 0
> 40:END
> 41:
> 42:PROJECTION
> 44:"init=epsg:26711"
> 45:END
> 46:
> 47:LAYER # Shaded Relief Raster
> 48: NAME "relief"
> 50: DATA "scalmosaic_utm_shaded.tif"
> 51: STATUS DEFAULT
> 53: TYPE RASTER
> 54: OFFSITE 0
> 55:END
> 56:
> 57:SYMBOL #Solid circle
> 58: NAME 'circle'
> 59: TYPE ELLIPSE
> 60: POINTS 1 1 END
> 61: FILLED TRUE
> 62:END
> 63:
> 64:LAYER # Jennings shapefile
> 65: NAME "faultlines"
> 66: DATA "jennings"
> 67: STATUS DEFAULT
> 68: TYPE LINE
> 69: CLASS # class
> 70: NAME "faultlines"
> 71: COLOR 255 255 0
> 72: SYMBOL 'circle'
> 73: SIZE 4
> 74: END # end of faultlines class object
> 75:END
> 76:
> 77:LAYER # Jennings shapefile
> 78: NAME "faultlines"
> 79: DATA "jennings"
> 80: STATUS DEFAULT
> 81: TYPE ANNOTATION
> 82:
> 83: LABELITEM "NAME"
> 85: CLASS # NAME's class
> 87: COLOR -1 -1 -1
> 88: LABEL
> 89: COLOR 0 0 0
> 90: MINDISTANCE 5
> 93: OUTLINECOLOR 255 255 255
> 97: TYPE BITMAP
> 98: SIZE MEDIUM
> 99: POSITION CC
> 100: PARTIALS FALSE
> 101: BUFFER 2
> 102: END # end of label
> 103: END # end of NAMES class object
> 104:END # end of layer object
> 105:
> 106:LAYER # mapgrida 7.5 minute shapefile
> 107: NAME "mapgrida"
> 108: DATA "mapgrida"
> 109: PROJECTION
> 111: "init=epsg:43001"
> 112: END
> 113: STATUS DEFAULT
> 114: TYPE LINE
> 117: LABELITEM "MAPNAME"
> 118: CLASS # class
> 119: NAME "mapgridalines"
> 120: COLOR 0 0 0
> 121: SYMBOL 'circle'
> 122: SIZE 2
> 123: LABEL
> 124: POSITION CC
> 127: COLOR 0 0 0
> 128: TYPE TRUETYPE
> 129: FONT arial
> 130: SIZE 2
> 131: ANTIALIAS TRUE
> 132: PARTIALS FALSE
> 133: BUFFER 2
> 134: END # end of label
> 135: END # end of mapgridlines class object
> 136:END
> 137:
> 138:END # end of map file
> 139:
> 140:END # end of map file
> 141:
>
>
>
> getInteger(): Symbol definition error. (END):(98)
> uses iquery.map:
> 1:NAME IQUERY
> 2:STATUS ON
> 3:
> 7:
> 10:
> 17:EXTENT 449985.000 3849975.000 650025.000 4050015.000
> 18:SIZE 800 600
> 19:UNITS METERS
> 20:SHAPEPATH "/l/www/wacke/htdocs/mapserver/cfm/data"
> 21:FONTSET "/l/www/wacke/htdocs/mapserver/fonts/fonts.list"
> 22:
> 24:IMAGETYPE gif
> 26:
> 27:PROJECTION
> 28: "init=epsg:26711" # our raster file
> 29:END
> 30:
> 31:WEB
> 32: HEADER iquery_header.html
> 33: TEMPLATE iquery.html
> 34: FOOTER iquery_footer.html
> 37: IMAGEPATH "/l/www/wacke/htdocs/mapserver/tmp/"
> 38: IMAGEURL "/mapserver/tmp/"
> 39: METADATA
> 40: END
> 41:END
> 42:
> 43:QUERYMAP
> 44: SIZE 400 300
> 45: STATUS ON
> 46: STYLE HILITE
> 47: COLOR 255 0 0
> 48:END
> 49:
> 50:REFERENCE
> 51: STATUS ON
> 52: IMAGE "/mapserver/cfm/data/labasin_relief_small_200x150.gif"
> 53: EXTENT 360772.000 3757330.000 387202.000 3777160.00
> 54: SIZE 200 150
> 55: COLOR -1 -1 -1
> 56: OUTLINECOLOR 255 0 0
> 57:END
> 58:
> 59:LEGEND
> 60: STATUS ON
> 61: LABEL
> 62: TYPE TRUETYPE
> 63: FONT arial
> 64: COLOR 0 0 0
> 65: SIZE 10
> 66: ANTIALIAS TRUE
> 67: END
> 68:END
> 69:
> 70:SCALEBAR
> 71: IMAGECOLOR 255 255 255
> 72: LABEL
> 73: COLOR 255 255 255
> 74: SIZE tiny
> 75: END
> 76: STYLE 1
> 77: SIZE 80 2
> 78: COLOR 255 255 255
> 79: UNITS MILES
> 80: INTERVALS 1
> 81: TRANSPARENT TRUE
> 82: STATUS TRUE
> 83:END
> 84:
> 85:SYMBOL
> 86: NAME 'circle'
> 87: TYPE ELLIPSE
> 88: POINTS 1 1 END
> 89: FILLED TRUE
> 90:END
> 91:
> 92:LAYER # Shaded Relief Raster
> 93: NAME "relief"
> 95: DATA "sca_0001.tif" # tile of new Shaded Relief Raster
> 96: STATUS off
> 97: TYPE RASTER
> 98: OFFSITE 0
> 99:END
> 100:
> 101:LAYER
> 102: NAME "faults"
> 103: DATA "jennings"
> 104: TYPE LINE
> 105: STATUS on
> 106:
> 107: CLASS
> 108: NAME "Faults"
> 109: TEMPLATE "faults.html"
> 110: COLOR 255 255 0
> 111: SYMBOL 'circle'
> 112: SIZE 3
> 113: END
> 114:
> 115: HEADER "faults_header.html"
> 116: FOOTER "faults_footer.html"
> 117:
> 118: TOLERANCE 3
> 119:END
> 120:
> 121:LAYER
> 122: NAME "faultnames"
> 123: DATA "jennings"
> 124: STATUS OFF
> 125: TYPE ANNOTATION
> 126: LABELITEM "NAME"
> 127: CLASS
> 129: COLOR -1 -1 -1
> 130: LABEL
> 131: COLOR 0 0 0
> 132: MINDISTANCE 25
> 133: OUTLINECOLOR 255 255 255
> 134: TYPE BITMAP
> 135: SIZE MEDIUM
> 136: POSITION CC
> 137: PARTIALS FALSE
> 138: BUFFER 2
> 139: END
> 140: END
> 141:END
> 142:
> 143:LAYER # mapgrida 7.5 minute shapefile
> 144: STATUS ON
> 145: NAME "mapgrid"
> 146: DATA "mapgrida"
> 147: PROJECTION
> 148: "init=epsg:43001" # our raster file
> 149: END
> 150: TYPE LINE
> 151: CLASS
> 152: NAME "Mapgrid"
> 153: COLOR 0 0 0
> 154: SYMBOL 'circle'
> 155: SIZE 2
> 156: END
> 157:END
> 158:
> 159:LAYER # mapgrida 7.5 minute shapefile quadnames
> 160: STATUS OFF
> 161: NAME "mapgridnames"
> 162: DATA "mapgrida"
> 163: PROJECTION
> 164: "init=epsg:43001" # our raster file
> 165: END
> 166: TYPE ANNOTATION
> 167: LABELITEM "MAPNAME"
> 168: CLASS
> 172: LABEL
> 173: POSITION CC
> 174: COLOR 0 0 0
> 175: TYPE TRUETYPE
> 176: FONT arial
> 177: SIZE 12
> 178: ANTIALIAS TRUE
> 179: PARTIALS FALSE
> 180: BUFFER 2
> 181: END
> 182: END
> 183:END
> 184:
> 185:LAYER # co100a county
> 186: STATUS ON
> 187: NAME "county"
> 188: DATA "co100a"
> 189: PROJECTION
> 190: "init=epsg:43001" # our raster file
> 191: END
> 192: TYPE LINE
> 193: CLASS
> 194: NAME "Counties"
> 195: TEMPLATE "county.html"
> 196: COLOR 0 0 0
> 197: SYMBOL 'circle'
> 198: SIZE 2
> 199: END
> 200:
> 201: HEADER "county_header.html"
> 202: FOOTER "county_footer.html"
> 203:
> 204: TOLERANCE 3
> 205:END
> 206:
> 207:LAYER # co100a county names
> 208: STATUS OFF
> 209: NAME "countynames"
> 210: DATA "co100a"
> 211: PROJECTION
> 212: "init=epsg:43001" # our raster file
> 213: END
> 214: TYPE ANNOTATION
> 215: LABELITEM "NAME"
> 216: CLASS
> 220: LABEL
> 221: POSITION CC
> 222: COLOR 0 0 255
> 223: TYPE TRUETYPE
> 224: FONT arial
> 225: SIZE 12
> 226: ANTIALIAS TRUE
> 227: PARTIALS FALSE
> 228: BUFFER 2
> 229: END
> 230: END
> 231:END
> 232:
> 233:END # end of map file
> 234:
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list