<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [UMN_MAPSERVER-USERS] need mapserv.exe recompiled with max layers= 500</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Yes, but I figured there had to be a reason why you are selecting each county individually, resulting in slow performance if you combine ten classes into a layer. If you have only got 300 objects that require classifying, then having ten classes should really not be a drama. Of course if you classify each object individually, then it becomes expensive (300 comparisons with 300 objects times 10 = 900,000 comparisons: SLOW). But if you use ranges (e.g. ('[population]'&gt;100) AND ('[population]'&lt;200)&nbsp;&nbsp; ) then you reduce it to 600 comparisons per class, meaning 6000 comparisons for a layer. That's way less than 900,000.<BR>
<BR>
Does this make sense in your scenario?<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Ravi [<A HREF="mailto:ravikapoor101@gmail.com">mailto:ravikapoor101@gmail.com</A>]<BR>
Sent: Wed 12/6/2006 3:13 PM<BR>
To: Delfos, Jacob<BR>
Cc: MAPSERVER-USERS@LISTS.UMN.EDU<BR>
Subject: Re: [UMN_MAPSERVER-USERS] need mapserv.exe recompiled with max layers= 500<BR>
<BR>
<BR>
Hi Jacob,<BR>
<BR>
I am doing pre-generation of layers. I thought each layer has to be a<BR>
separate shape file and need a separate &quot;LAYER&quot; tag. Is that not so?<BR>
<BR>
Thanks for your thoughts<BR>
Ravi<BR>
<BR>
<BR>
Delfos, Jacob wrote:<BR>
&gt; Ravi,<BR>
&gt;<BR>
&gt; Why do you select out each county individually, rather than having an expression that defines a range of population density? For example, EXPRESSION ('[populationdensity]'&gt;500)<BR>
&gt;<BR>
&gt; If you can't do that, do you have the ability to pre-generate the classified layers, such that each layer requires no further classification, and contains a class (1 through to 10) of which colour it should have?<BR>
&gt;<BR>
&gt; If even that fails, you could consider rendering your areas to a raster, and only start showing individual vector-based objects when a user zooms in. I have used that approach to 'fake' the displaying of 100,000s of polygons, so that they wouldn't have to be generated at runtime. You&nbsp; can use minscale and maxscale to turn the raster off when the vector comes in.<BR>
&gt;<BR>
&gt; Otherwise, can you tell us what datasource you are using? Shapefiles? PostGIS?<BR>
&gt;<BR>
&gt; regards,<BR>
&gt;<BR>
&gt; Jacob<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; -----Original Message-----<BR>
&gt; From: UMN MapServer Users List on behalf of Ravi<BR>
&gt; Sent: Wed 12/6/2006 2:41 PM<BR>
&gt; To: MAPSERVER-USERS@LISTS.UMN.EDU<BR>
&gt; Subject: [UMN_MAPSERVER-USERS] need mapserv.exe recompiled with max layers = 500<BR>
&gt;&nbsp;<BR>
&gt; Hi,<BR>
&gt;<BR>
&gt; Can somebody recompile the mapserv.exe with max layers = 500? Or guide<BR>
&gt; me how to do this? If you want to charge for this kind of service, can<BR>
&gt; you send me an email telling me how much would you charge?<BR>
&gt;<BR>
&gt; Yes I have thought about reducing the layers and tried various options<BR>
&gt; to the best of my knowledge but so far I have not come up with a solution.<BR>
&gt;<BR>
&gt; If you are curious why I need so many layers or can help me reduce<BR>
&gt; layers here is what I am doing. This is very confusing...sorry I am<BR>
&gt; trying my best to explain.<BR>
&gt;<BR>
&gt; I want to show population density in US using 10 different colors. Hence<BR>
&gt; I need 10 layers (1 for each color). I am not able to use single layer<BR>
&gt; as I would need to define 10 classes with different colors. Each class<BR>
&gt; will select 300 counties using &quot;EXPRESSION&quot; as follows:<BR>
&gt; EXPRESSION ('[FIPSSTCO]'='21037' or '[FIPSSTCO]'='21125' or.....<BR>
&gt; Selecting 300 counties like this is VERY slow.<BR>
&gt;<BR>
&gt; Now we can see entire US map with colors. When the user zooms in, I have<BR>
&gt; to show same thing using zip codes. Further zooming in shows the data<BR>
&gt; divided by block groups. Hence total layers = 10x3 = 30.<BR>
&gt;<BR>
&gt; Now I need to show 8 such parameters (potentially 16). Hence I need<BR>
&gt; 10x3x16 = 480 layers<BR>
&gt;<BR>
&gt; Thanks for help<BR>
&gt; Ravi<BR>
&gt;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>