[Mapserver-users] How to ignore a non-existent layer?

Puneet Kishor pkishor at geoanalytics.com
Thu Aug 28 19:28:26 PDT 2003


On Thursday, August 28, 2003, at 09:00  PM, Daniel Morissette wrote:

> pkishor_98 wrote:
>> I have a mapfile with a bunch of layers and their classes defined. I
>> want MapServer to NOT croak if a layer defined in the mapfile doesn't
>> exist... just silently ignore it. Is there a way to do that?
>
> If you define "-DIGNORE_MISSING_DATA" at compile time then MapServer 
> will silently ignore layers pointing to non existing shapefiles.
>
> On Unix/Linux (all platforms using the configure script), this is 
> enabled by default and you can force MapServer to be strict using 
> --disable-ignore-missing-data in your configure options.
>
> On Winows I think the default Makefile doesn't include this option by 
> default and you have to explicitly add -DIGNORE_MISSING_DATA to the 
> compile flags.
>

Thanks... that's good to know.

Is it possible to enable MapServer so this option can be specified at 
run-time instead of compile time... like, say... by setting a value in 
the mapfile or through Mapscript via some exported method from the 
module...

Now, that would be nice.




More information about the MapServer-users mailing list