As I said, the maximum number can be changed only at compile time: in 'map.h' 
#MS_MAXLAYERS. The default value in the sources is 200, so I guess that's also 
so for the compiled version under Windows (see also 
http://mapserver.gis.umn.edu/docs/error/error-maximum-classes)

Do you really use more than 200 layers in 1 application??? If you need to do 
so, you can either
* use Linux/FreeBSD etc. and compile it by yourself, 
  increasing the max value
* ask somebody like DM Solutions or Howard Butler etc. to do that 
  for you on Windows (I've never compiled MS and all libs for Win, 
  but it seems to require some sound knowledge...), 
  but I guess that'll not be for free

Otherwise consider using less layers...

armin

-------- Original-Nachricht --------
Datum: Wed, 8 Nov 2006 00:25:50 -0500 (EST)
Von: "Radhika" <[EMAIL PROTECTED]>
An: pmapper-users@lists.sourceforge.net
Betreff: [pmapper-users] Mapfile  in pmapper

> 
>  Hi Armin,
>            As per your suggestion I tried test_mapfile.phtml.
>    I got the following errors........
> 
>    Warning: [MapServer Error]: msLoadMap(): Maximum number of layers
>             reached. in D:\ms4w\apps\maplab-2.2
>             \workshop\php\test_mapfile.phtml on line 29
> 
>    Warning: Failed to open map file d:/ms4w/apps/maplab-
>             2.2/workshop/php/config/pmapper_demo.map in
>             D:\ms4w\apps\maplab-2.2\workshop\php\test_mapfile.phtml on
>             line 29
> 
>    Fatal error: Call to a member function on a non-object in
>              D:\ms4w\apps\maplab-2.2\workshop\php\test_mapfile.phtml on
>              line 36
> 
>    Please suggest me how can i increase the maximum number of layers
>    in mapfile or if any other way to solve this problem.
> 
>   Thanks & Regards
>     radhika.
> 
> 
> 
>
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to