<!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>Ravi,<BR>
<BR>
Do you actually have the information that you classify it with? I mean, do you know the population of each county?<BR>
<BR>
Adding a new attribute is very straightforward. If you have GIS software (e.g. ArcGIS), it should be able to do that (What software do you have?). If you haven't got GIS software, I have found &quot;OpenOffice Calc&quot; to be the most reliable DBF editor (the .dbf file holds the attributes of a shapefile). OpenOffice (free software) does have a tendency to add redundant decimal places. You can open it up, add a field, and fill in the values. Do NOT change the order of the rows, because then the wrong attribute is linked to a county. Always make a backup of your DBF first.<BR>
You can also use Excel to open your DBF (not free). It does not add redundant decimal places, but it is unpredictable at times with text columns, which can get truncated or left out altogether, though number columns are usually dealt with properly.<BR>
<BR>
regards,<BR>
<BR>
Jacob<BR>
<BR>
<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:29 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>
Yes it makes sense. However...here is the catch.<BR>
<BR>
I do not know how to add 'population' attribute to be able to do the<BR>
comparison you mentioned. I also tried to get PostGIS working, I get no<BR>
errors, I have checked all configuration but no maps show up.<BR>
<BR>
So can you throw some light on how to add 'population' of each county<BR>
inside each shapefile so that I can do the comparison you mentioned? In<BR>
absence of that either I select each county individually (slow) or do<BR>
what I am doing now which is create files as follows and create one<BR>
layer for each file:<BR>
<BR>
PopulationCountyColor1.shp<BR>
PopulationCountyColor2.shp<BR>
...<BR>
...<BR>
PopulationCountyColor10.shp<BR>
PopulationZipCodeColor1.shp<BR>
..<BR>
...<BR>
GrowthZipCodeColor10.shp<BR>
<BR>
These come out to be a total of 240 files (8x3x10, 8 parameters, 3<BR>
shapes and 10 colors).<BR>
<BR>
Regards<BR>
Ravi<BR>
<BR>
<BR>
Delfos, Jacob wrote:<BR>
&gt; Yes, but I figured there had to be a reason why you are selecting each<BR>
&gt; county individually, resulting in slow performance if you combine ten<BR>
&gt; classes into a layer. If you have only got 300 objects that require<BR>
&gt; classifying, then having ten classes should really not be a drama. Of<BR>
&gt; course if you classify each object individually, then it becomes<BR>
&gt; expensive (300 comparisons with 300 objects times 10 = 900,000<BR>
&gt; comparisons: SLOW). But if you use ranges (e.g. ('[population]'&gt;100) AND<BR>
&gt; ('[population]'&lt;200)&nbsp;&nbsp; ) then you reduce it to 600 comparisons per<BR>
&gt; class, meaning 6000 comparisons for a layer. That's way less than 900,000.<BR>
&gt;<BR>
&gt; Does this make sense in your scenario?<BR>
&gt;<BR>
&gt;<BR>
&gt; -----Original Message-----<BR>
&gt; From: Ravi [<A HREF="mailto:ravikapoor101@gmail.com">mailto:ravikapoor101@gmail.com</A>]<BR>
&gt; Sent: Wed 12/6/2006 3:13 PM<BR>
&gt; To: Delfos, Jacob<BR>
&gt; Cc: MAPSERVER-USERS@LISTS.UMN.EDU<BR>
&gt; Subject: Re: [UMN_MAPSERVER-USERS] need mapserv.exe recompiled with max<BR>
&gt; layers= 500<BR>
&gt;<BR>
&gt;<BR>
&gt; Hi Jacob,<BR>
&gt;<BR>
&gt; I am doing pre-generation of layers. I thought each layer has to be a<BR>
&gt; separate shape file and need a separate &quot;LAYER&quot; tag. Is that not so?<BR>
&gt;<BR>
&gt; Thanks for your thoughts<BR>
&gt; Ravi<BR>
&gt;<BR>
&gt;<BR>
&gt; Delfos, Jacob wrote:<BR>
&gt;&nbsp; &gt; Ravi,<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Why do you select out each county individually, rather than having an<BR>
&gt; expression that defines a range of population density? For example,<BR>
&gt; EXPRESSION ('[populationdensity]'&gt;500)<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; If you can't do that, do you have the ability to pre-generate the<BR>
&gt; classified layers, such that each layer requires no further<BR>
&gt; classification, and contains a class (1 through to 10) of which colour<BR>
&gt; it should have?<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; If even that fails, you could consider rendering your areas to a<BR>
&gt; raster, and only start showing individual vector-based objects when a<BR>
&gt; user zooms in. I have used that approach to 'fake' the displaying of<BR>
&gt; 100,000s of polygons, so that they wouldn't have to be generated at<BR>
&gt; runtime. You&nbsp; can use minscale and maxscale to turn the raster off when<BR>
&gt; the vector comes in.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Otherwise, can you tell us what datasource you are using? Shapefiles?<BR>
&gt; PostGIS?<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; regards,<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Jacob<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; -----Original Message-----<BR>
&gt;&nbsp; &gt; From: UMN MapServer Users List on behalf of Ravi<BR>
&gt;&nbsp; &gt; Sent: Wed 12/6/2006 2:41 PM<BR>
&gt;&nbsp; &gt; To: MAPSERVER-USERS@LISTS.UMN.EDU<BR>
&gt;&nbsp; &gt; Subject: [UMN_MAPSERVER-USERS] need mapserv.exe recompiled with max<BR>
&gt; layers = 500<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Hi,<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Can somebody recompile the mapserv.exe with max layers = 500? Or guide<BR>
&gt;&nbsp; &gt; me how to do this? If you want to charge for this kind of service, can<BR>
&gt;&nbsp; &gt; you send me an email telling me how much would you charge?<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Yes I have thought about reducing the layers and tried various options<BR>
&gt;&nbsp; &gt; to the best of my knowledge but so far I have not come up with a<BR>
&gt; solution.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; If you are curious why I need so many layers or can help me reduce<BR>
&gt;&nbsp; &gt; layers here is what I am doing. This is very confusing...sorry I am<BR>
&gt;&nbsp; &gt; trying my best to explain.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; I want to show population density in US using 10 different colors. Hence<BR>
&gt;&nbsp; &gt; I need 10 layers (1 for each color). I am not able to use single layer<BR>
&gt;&nbsp; &gt; as I would need to define 10 classes with different colors. Each class<BR>
&gt;&nbsp; &gt; will select 300 counties using &quot;EXPRESSION&quot; as follows:<BR>
&gt;&nbsp; &gt; EXPRESSION ('[FIPSSTCO]'='21037' or '[FIPSSTCO]'='21125' or.....<BR>
&gt;&nbsp; &gt; Selecting 300 counties like this is VERY slow.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Now we can see entire US map with colors. When the user zooms in, I have<BR>
&gt;&nbsp; &gt; to show same thing using zip codes. Further zooming in shows the data<BR>
&gt;&nbsp; &gt; divided by block groups. Hence total layers = 10x3 = 30.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Now I need to show 8 such parameters (potentially 16). Hence I need<BR>
&gt;&nbsp; &gt; 10x3x16 = 480 layers<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Thanks for help<BR>
&gt;&nbsp; &gt; Ravi<BR>
&gt;&nbsp; &gt;<BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>