Map template with unnamed layers
Koji Ueda
uej at HITACHISOFT.JP
Fri Mar 4 05:49:23 EST 2005
Hi list,
Excuse me if this is a known bug.
I recently updated my MapServer from 4.0 to 4.4.1.
It, however, caused a memory access violation error when I tried to use it in query mode (i.e. mode=nquery).
The map mode (mode=map) worked fine with no problem.
After struggling with this problem for a couple of hours,
I finally found out that LAYERs with no NAME tag caused this error.
I don't know if there was a specification change which specified the NAME tag as a requirement for LAYERs.
But it would be better if it could print a warning message instead of halting.
FYI, the first location mapserver fails is:
maptemplate.c line 2245
strlcat(repstr, msObj->Map->layers[i].name, sizeof(repstr));
in the function processLine()
Here, msObj->Map->layers[i].name is NULL when the NAME is not specified for the LAYER.
Best Regards,
---
Koji Ueda
Hitachi Software Engineering Co.,Ltd.
Satellite Imagery Division
More information about the mapserver-dev
mailing list