[Mapserver-users] Maximum Num of Features?

Dylan Keon keon@nacse.org
Wed, 29 Jan 2003 14:21:41 -0800


If you've defined more than 50 classes in that layer it will choke 
MapServer.  You can change this by increasing the value assigned to 
MS_MAXCLASSES in map.h and recompiling MapServer.


Chris Hagwood wrote:
> I have a layer (police zones) that I would like to make colored so that it each zone will stand out.  When I try, it appears to choke mapserver.
> 
> Here's the part from my .map file:
> LAYER
>   NAME newzone
>   TYPE Polygon
>   STATUS off
>   DATA newdist
> 
>       CLASS
>         EXPRESSION '8300'
>         COLOR 243 137 139
>         OUTLINECOLOR 0 0 0
>      END  # CLASS
> 
>       CLASS
>         EXPRESSION '8301'
>         COLOR 123 254 205
>         OUTLINECOLOR 0 0 0
>      END  # CLASS
> 
> 	#REPEAT for each zone
> 
>       CLASS
>         EXPRESSION '8412'
>         COLOR 40 128 60
>         OUTLINECOLOR 0 0 0
>      END  # CLASS
> END  # LAYER
> 

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users