[mapserver-users] error and temp file handling with 6.0.0

Arnd Wippermann arnd.wippermann at web.de
Fri Apr 29 12:59:19 EDT 2011


Hi,

I'm a bit confused about how MapServer log errors and where it saves
temporary files.

In my mapfile I have declared 

CONFIG "MS_ERRORFILE" "file.err" #and DEBUG is not set

LOG "file.log" #in the WEB block
TEMPPATH ...   #in the WEB block

Playing with SLD and polygon fill with exernal graphic doesn't work, but
creates nevertheless some output.

1. 
error output will be written in file.err and file.log, but the messages not
the same.

file.log
Fri Apr 29 14:20:31
2011,2492,127.0.0.1,simple_continents_shp_4326,-1,86.660156 -93.339844
183.339844 3.339844,-1.000000 -1.000000,,msDrawMap(): Image handling error.
Failed to draw layer named 'continents'. <br>
msOGRFileNextShape(): OGR error. IllegalArgumentException: Points of
LinearRing do not form a closed linestring <br>

file.err
[Fri Apr 29 14:27:03 2011].453000 msOGRFileNextShape(): OGR error.
IllegalArgumentException: Points of LinearRing do not form a closed
linestring
[Fri Apr 29 14:27:03 2011].453000 msDrawMap(): Image handling error. Failed
to draw layer named 'continents'.

Why do MapServer uses two files to log errors? And it seems, one have to
look in both, because the messages are not equal.

2.
TEMPPATH
If declared, this path is used to save the temporary mapfile and the
temporary sldfiles. But the external graphic is saved in the System Temp
Directory C:\WINDOWS\TEMP.
Should the graphic not saved at the same place?

Also there is an error message that speaks of TMPPATH instead of TEMPPATH:
[Fri Apr 29 14:10:42 2011].937000 msSLDApplySLDURL: WMS server error. Could
not open SLD http://localhost/.../sld_polygon_fill_symbol_external.xml and
save it in temporary file C:\WINDOWS\TEMP\4dbaaac2_b34_0.sld.xml. Please
make sure that the sld url is valid and that the temporary path is set. The
temporary path can be defined for example by setting TMPPATH in the map
file. Please check the MapServer documentation on temporary path settings.

Arnd



More information about the mapserver-users mailing list