<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
size=2>-----Mensaje original-----<BR><B>De:</B> Fuchs Juan Carlos <BR><B>Enviado 
el:</B> Miércoles, 27 de Febrero de 2008 04:07 p.m.<BR><B>Para:</B> 'Desarrollo 
Desarrollo'<BR><B>CC:</B> mapserver-users@lists.osgeo.org<BR><B>Asunto:</B> RE: 
[mapserver-users] MapServer consuming 100% CPU<BR><BR></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>Sergio:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>One's 
more:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>in my 
.map&nbsp; (<A 
href="http://200.51.91.231">http://200.51.91.231</A>.)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>I 
separated all lines/poligons&nbsp;from labels.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>Say:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>layer 
Rivers</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>Tipe 
Line</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>Group 
Aqua...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>several classes</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>the 
first for the big and important ones</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>the 
second for the adyascent and permanent rivers</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>the 
last for the little ones</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>each 
one restricted with minscale&nbsp; / maxscale</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>layer 
Names</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>Group 
Aqua</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>type 
Annotation...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>same 
classes, same maxscale&nbsp; /&nbsp; minscale restrictions</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>just 
different type sizes for each one</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>Remember that Truetype is a bit slower that Bitmap, but 
it's worth the prize!</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>The&nbsp;group statement is&nbsp;to turn on / off in 
only one call.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>On the 
other side it let's you track down the render time for each 
layer</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>so you 
will have a better control.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT><FONT face=Arial color=#0000ff 
size=2><SPAN class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>I 
never tried the new toy </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>ANGLE 
</SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>Follow </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>Its 
supoused to follow the line path along the river !!</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT><FONT face=Arial color=#0000ff 
size=2><SPAN class=515085019-27022008></SPAN></FONT><FONT face=Arial 
color=#0000ff size=2><SPAN class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>If we 
are struggling to beat down the render time, keep it simple</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>but if 
you want it to be nice ...&nbsp; :)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>In 
reference to your Windows+ASP/Linux+Apache question, in my experience it's quite 
the same</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>diferences i made comes from intensive (really 
intensive) map file tunning!.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT><FONT face=Arial color=#0000ff 
size=2><SPAN class=515085019-27022008><A 
href="http://mapserver.gis.umn.edu/docs/howto/mapfiletuning">http://mapserver.gis.umn.edu/docs/howto/mapfiletuning</A>&nbsp;(It's 
is a must read!)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=515085019-27022008>happy 
testing!</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=515085019-27022008>JC.</SPAN></FONT></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Mensaje original-----<BR><B>De:</B> Desarrollo Desarrollo 
  [mailto:devmapserver@gmail.com]<BR><B>Enviado el:</B> Miércoles, 27 de Febrero 
  de 2008 08:39 a.m.<BR><B>Para:</B> Fuchs Juan Carlos<BR><B>CC:</B> 
  mapserver-users@lists.osgeo.org<BR><B>Asunto:</B> Re: [mapserver-users] 
  MapServer consuming 100% CPU<BR><BR></FONT></DIV><SPAN></SPAN>Hello!<BR>Thank 
  you for your answer. <BR>I think you are right, please take a look in this 
  thread to the answer I've post to Ritesh Ambastha, I've reproduce the three 
  tests using PostGRE / PostGIS and although is the fastest data access the 
  labeling is still the hard work to MapServer. <BR>I'm going to play with 
  MINFEATURESIZE, MINDISTANCE and all the options that Mapserver allows to use, 
  and I'll report back here the results, but just one thing more to ask, Is this 
  the normal behavior of Mapserver?, I'm trying to confirm that if you do the 
  same test with mapserver, no matter if you are running in linux or windows, I 
  wish to know that my Mapserver has no bugs or incorrect / old libraries that 
  makes labeling be slower.<BR><BR>Thank you very much, best 
  regards<BR>Sergio<BR><BR>
  <DIV><SPAN class=gmail_quote>2008/2/26, Fuchs Juan Carlos &lt;<A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:jfuch@indec.mecon.gov.ar" 
  target=_blank>jfuch@indec.mecon.gov.ar</A>&gt;:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Hi 
    Sergio:</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>PostGis maybe a good 
    solution, in terms of stability (means system do not crash, so often :) 
    ).</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>But in concern with line 
    labeling, things become bad.</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Hydrologic data are a bunch 
    of lines with irregular shape, and very often segmented.</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>I mean that the same river 
    could have trillons of segments in his path, and in the same 
    </FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>manner, trillons of labels 
    !!</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Try with some restrictions 
    to the labeling work, </FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>say not allowing to 
    labeling features under 5 say 7 pixels</FONT></SPAN></DIV>
    <DIV><SPAN>
    <TABLE width="100%" border=0>
      <TBODY>
      <TR>
        <TD vAlign=top width=229><B>MINFEATURESIZE</B> </TD>
        <TD vAlign=top>Minimum size a feature must be to be labeled. Given in 
          pixels. For line data the overall length of the displayed line is 
          used, for polygons features the smallest dimension of the bounding box 
          is used. "Auto" keyword tells MapServer to only label features that 
          are larger than their corresponding label. Available for cached labels 
          only. 
          <P>Value: [integer|auto]<BR></P></TD></TR></TBODY></TABLE></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>say not allowing to repeat 
    labeling features in spaces of 20 say 25 pixels</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN>
    <TABLE width="100%" border=0>
      <TBODY>
      <TR>
        <TD vAlign=top width=229><B>MINDISTANCE</B> </TD>
        <TD vAlign=top>Minimum distance between duplicate labels. Given in 
          pixels. 
          <P>Value: [integer]<BR></P></TD></TR></TBODY></TABLE></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Sometimes a lit bit of map 
    file tuning is necesary</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Hope its helps, 
    </FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>JC.</FONT></SPAN></DIV>
    <BLOCKQUOTE>&nbsp;</BLOCKQUOTE></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>