<!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]'>100) AND ('[population]'<200) ) 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 "LAYER" tag. Is that not so?<BR>
<BR>
Thanks for your thoughts<BR>
Ravi<BR>
<BR>
<BR>
Delfos, Jacob wrote:<BR>
> Ravi,<BR>
><BR>
> Why do you select out each county individually, rather than having an expression that defines a range of population density? For example, EXPRESSION ('[populationdensity]'>500)<BR>
><BR>
> 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>
><BR>
> 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 can use minscale and maxscale to turn the raster off when the vector comes in.<BR>
><BR>
> Otherwise, can you tell us what datasource you are using? Shapefiles? PostGIS?<BR>
><BR>
> regards,<BR>
><BR>
> Jacob<BR>
><BR>
><BR>
><BR>
><BR>
><BR>
> -----Original Message-----<BR>
> From: UMN MapServer Users List on behalf of Ravi<BR>
> Sent: Wed 12/6/2006 2:41 PM<BR>
> To: MAPSERVER-USERS@LISTS.UMN.EDU<BR>
> Subject: [UMN_MAPSERVER-USERS] need mapserv.exe recompiled with max layers = 500<BR>
> <BR>
> Hi,<BR>
><BR>
> Can somebody recompile the mapserv.exe with max layers = 500? Or guide<BR>
> me how to do this? If you want to charge for this kind of service, can<BR>
> you send me an email telling me how much would you charge?<BR>
><BR>
> Yes I have thought about reducing the layers and tried various options<BR>
> to the best of my knowledge but so far I have not come up with a solution.<BR>
><BR>
> If you are curious why I need so many layers or can help me reduce<BR>
> layers here is what I am doing. This is very confusing...sorry I am<BR>
> trying my best to explain.<BR>
><BR>
> I want to show population density in US using 10 different colors. Hence<BR>
> I need 10 layers (1 for each color). I am not able to use single layer<BR>
> as I would need to define 10 classes with different colors. Each class<BR>
> will select 300 counties using "EXPRESSION" as follows:<BR>
> EXPRESSION ('[FIPSSTCO]'='21037' or '[FIPSSTCO]'='21125' or.....<BR>
> Selecting 300 counties like this is VERY slow.<BR>
><BR>
> Now we can see entire US map with colors. When the user zooms in, I have<BR>
> to show same thing using zip codes. Further zooming in shows the data<BR>
> divided by block groups. Hence total layers = 10x3 = 30.<BR>
><BR>
> Now I need to show 8 such parameters (potentially 16). Hence I need<BR>
> 10x3x16 = 480 layers<BR>
><BR>
> Thanks for help<BR>
> Ravi<BR>
><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>