[Mapserver-users] Layer Problem

James Anderson james at danisat.net
Thu Jul 3 06:59:29 PDT 2003


Hi,

I am having issues with the compilation.

I changed the MS_MAXLAYERS define from 100 to 500 in map.h

I then did a

./configure  --with-gd --with-proj --with-gdal=/usr/local/bin/gdal-config --
with-ogr

which seemed to work

then I did a make

which also seems to work

If I understand correctly, it would now have made the mapserv executable
file in the current directory with the source, and it seems to be doing this
as the mapserv file gets the current date and time.  The problem is that
when I compare the file to the previously built executabe, they are byte
identical.  Also it does not seem to be accepting more layers.  So have I
changed the value in the right place, am I compiling it correctly ?   I also
have copied the new exe to the cgi-bin where I call it from, but it does not
really matter, because as I said, they seem to be byte identical.   You have
any ideas as to what I may be doing wrong ?   The main issue is it still has
the too many layer error.

Regards,

James.



----- Original Message -----
From: "Paul Spencer" <pagameba at magma.ca>
To: "James Anderson" <james at danisat.net>
Cc: <spencer at dmsolutions.ca>; <mapserver-users at lists.gis.umn.edu>
Sent: Thursday, July 03, 2003 2:51 PM
Subject: Re: [Mapserver-users] Layer Problem


| no idea.  theoretically, this value causes mapserver to pre-allocate
| sufficient storage for the defined number of layers.  Changing this
| number should change the memory footprint of the executable.  I am
| guessing that the actual data structures are not that large, so you
| should be able to create thousands of layers if you need to, but it will
| depend on how much memory you have available for a given process.  I'm
| not sure, but there may be a memory limit imposed by Apache on cgis?
|
| I'd suggest that you rebuild with the number you have in mind plus a
| decent buffer and try it :)
|
| Cheers,
|
| Paul
|
| James Anderson wrote:
|
| > Thanks very much.  How high do u think I can take it ?
| >
| > Regards,
| >
| > James.
| >
| > ----- Original Message -----
| > From: "Paul Spencer" <pagameba at magma.ca>
| > To: "James Anderson" <james at danisat.net>
| > Cc: <mapserver-users at lists.gis.umn.edu>
| > Sent: Thursday, July 03, 2003 1:36 PM
| > Subject: Re: [Mapserver-users] Layer Problem
| >
| >
| > | edit this line in map.h and rebuild mapserver.
| > |
| > | #define MS_MAXLAYERS 100 /* maximum number of layers in a map file */
| > |
| > | Cheers,
| > |
| > | Paul
| > |
| > | James Anderson wrote:
| > |
| > | >
| > | > Hi Everybody,
| > | >
| > | > I seem to have a big problem ......
| > | > I am using mapserver on Red Hat 8 Linux.
| > | > MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ
| > | > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG
| > | > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
| > | > I have many vector layers and some raster layers too.  At the moment
my
| > | > map file has over 100 layers in it.  My problem is that when I have
| > | > tried adding some more layers, I get the error
| > | >
| > | > msLoadMap(): Unknown identifier. Too many layers defined.
| > | >
| > | > Now this is a problem as I need to have all these layers.  I got so
many
| > | > layers that its too many to count the exact amount.  But this is a
| > | > problem, and my project is going to fail if I cannot find a way to
get
| > | > mapserver to support/accept more layers.   Can anyone give me an
idea of
| > | > what the maximum number of layers is, and how I can go about
increasing
| > | > the amount of layers that is supported.  I have an idea that I am
going
| > | > to have to recompile the mapserver.   Please anybody, Please Help !!
| > | >
| > | > Thanks,
| > | >
| > | > James.
| > | >
| > |
| > | --
| > | Paul Spencer
| > | Applications and Software Development
| > | DM Solutions Group Inc.
| > | http://www.dmsolutions.ca
| > |
| >
| > _______________________________________________
| > Mapserver-users mailing list
| > Mapserver-users at lists.gis.umn.edu
| > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
| >
|
| --
| Paul Spencer
| Applications and Software Development
| DM Solutions Group Inc.
| http://www.dmsolutions.ca
|
|
| _______________________________________________
| Mapserver-users mailing list
| Mapserver-users at lists.gis.umn.edu
| http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list