[mapserver-dev] hoto add new key in mapfiles

Daniel Morissette dmorissette at mapgears.com
Fri Sep 4 07:12:29 EDT 2009


Martin Kofahl wrote:
> Hi,
> I currently investigate possibilities of adding per-layer spatial obligation to mapserver. I would like to have a new key 'restriction' for then layer section, but can not find the maplexer files documented. Can you give me a hint, please.
> 

You need to add the new keyword to maplexer.l (note the alphabetical 
order) and add an id for it in mapfile.h. Flex should take care of the 
rest next time you run make.

BTW, what do you mean by "spatial obligation"? A spatial filter? I can 
see how that could be useful in some cases. Are you thinking of 
specifying only a BBOX as filter or would a polygon filter also be 
supported?

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-dev mailing list