- http://mapserver.org/optimization/debugging.html
MAP
...
CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"
...
LAYER
...
END
END
- apache ユーザが書き込み権限を持っているところを指定する
- 実行例
MAP
CONFIG "MS_ERRORFILE" "/tmp/mapserver.log"
IMAGETYPE PNG
EXTENT -180 -90 180 90 # <Lower Left X> <Lower Left Y> <Upper Right X> <Upper Right Y>
SIZE 640 320
IMAGECOLOR 128 128 192
FONTSET "/opt/maps/fonts.list"
UNITS dd
# WEB
WEB
TEMPLATE "/opt/maps/template06.html"
IMAGEPATH "/var/www/html/tmp/"
IMAGEURL "/tmp/"
MINSCALEDENOM 200
MAXSCALEDENOM 177732952
END
# SCALE BAR
SCALEBAR
UNITS kilometers
BACKGROUNDCOLOR 255 128 128
...
- ログ (/tmp/mapserver.log)
[Sat Jun 21 23:23:16 2014].454205 msValidateParameter(): Regular expression error. Parameter pattern validation failed.
[Sat Jun 21 23:23:16 2014].695008 yyparse(): Expression parser error. syntax error
[Sat Jun 21 23:23:16 2014].695054 msEvalExpression: Expression parser error. Failed to parse expression: [mag] > %mag%
[Sat Jun 21 23:23:16 2014].695063 yyparse(): Expression parser error. syntax error
[Sat Jun 21 23:23:16 2014].695067 msEvalExpression: Expression parser error. Failed to parse expression: [mag] > %mag%
[Sat Jun 21 23:23:16 2014].695071 yyparse(): Expression parser error. syntax error
[Sat Jun 21 23:23:16 2014].695074 msEvalExpression: Expression parser error. Failed to parse expression: [mag] > %mag%
[Sat Jun 21 23:23:16 2014].695078 yyparse(): Expression parser error. syntax error
[Sat Jun 21 23:23:16 2014].695080 msEvalExpression: Expression parser error. Failed to parse expression: [mag] > %mag%