[Mapserver-users] premature end of script headers (php)
Dave McIlhagga
mcilhagga at dmsolutions.ca
Tue Feb 11 07:25:13 PST 2003
From our past experience in doing this kind of thing, A ramp of colours
of 50 is plenty. Not to mention, the more classes you have - the more
processing and slow your application will end up being.
Why not try with say 40, then 50. If you notice the difference being
marginal - then chances are going up to 100 will make minimal difference
if any. OTOH - if there's a big difference, it might be worth taking
your option a)
Dave
Charlton Purvis wrote:
> 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
>
>
More information about the MapServer-users
mailing list