[Mapserver-users] premature end of script headers (php)

Charlton Purvis cpurvis at asgnet.psc.sc.edu
Tue Feb 11 07:13:50 PST 2003


Thanks for the map.h MS_MAXCLASSES pointer, folks, and thanks for the
user thread pointers, too.  I don't know why I have such rotten luck
finding information in the threads, but I do.

Anyway, I didn't see any clear answers to what a reasonable number of
classes would be, though.  Should I look at it w/ this attitude:  (a)
I've got 100 classes, so I need to up MapServer's anti and simply get
the job done; OR (b) I need to revisit what I'm trying to render because
100 classes is unreasonable.

Thanks,

Charlton

-----Original Message-----
From: Dylan Keon [mailto:keon at nacse.org] 
Sent: Monday, February 10, 2003 5:31 PM
To: Charlton Purvis
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] premature end of script headers (php)

 > I have about 120 classes I need defined in my .map file so that they
 > can appear as different colors (different elevations).  Well, all is
 > well if I display something like 50 of those classes.  But when I try
 > to display the 51^st , all goes to pot, and I get an internal server
 > error.  I've made sure that my classes are intact and syntactically
 > correct.  As long as I don't go above the total of 50 classes, I'm
 > fine.

If you are able to recompile MapServer you can edit map.h and increase 
MS_MAXCLASSES (default is 50).  As long as you compile with a value 
greater than the max number of classes you need to use, you won't 
receive the error you described.  There were some posts about this 
recently, and about how many classes are reasonable:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0301/threads.ht
ml#00609

--Dylan


-- 
************************************************
  Dylan Keon
  GIS/Database Research Specialist
  Northwest Alliance for Computational
  Science and Engineering (NACSE)
  Oregon State University
  Corvallis, OR 97331
  keon at nacse.org        (541) 737-6608
************************************************





More information about the MapServer-users mailing list