[mapserver-dev] INCLUDE '...' before MAP gives "Unknown identifier. First token must be MAP..."

David Fuhry dfuhry at acm.org
Thu May 7 22:24:09 EDT 2009


FYI, the attached ill-advised patch, did work for me as a quick-fix.

I commented out the part of the parsers which fails if the the MAP and 
SYMBOLSET tokens are not yet found.

-Dave


David Fuhry wrote:
> Some recent update seems to have broken the ability to have INCLUDEs in 
> a mapfile before the MAP clause.  I normally use an INCLUDE which brings 
> in a bunch of OUTPUTFORMATs, before beginning the MAP tag.
> 
> Mapfile:
> 
> INCLUDE "outputformat.map.frag"
> 
> MAP
>   ...
> END
> 
> 
> gives:
> 
> msLoadMap(): Unknown identifier. First token must be MAP, this doesn't 
> look like a mapfile.
> 
> I moved to svn HEAD from a build made a few months ago; it was fine 
> then.  Would appreciate a pointer to the bug #, if this problem is known.
> 
> -Dave
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ill_advised_mapfile_mapsymbol.v1.patch
Type: text/x-diff
Size: 901 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090507/4cc8e049/ill_advised_mapfile_mapsymbol.v1.bin


More information about the mapserver-dev mailing list