<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You may also try not to use the default DATA connection in the mapfile,
but instead reference the shapefile through CONNECTION TYPE OGR;<br>
<br>
Another option would be to convert the data through OGR to mapinfo
files. I am using mapserv - mapinfo tab with 21 roadnetworks for all
public safety districts in the Netherlands containing approx. 150.000
road-segments per district and this works fine. Also make sure that the
zoom-layering for the labels is set to your satisfaction.<br>
<br>
<br>
<br>
<br>
Bart van den Eijnden (OSGIS) schreef:
<blockquote cite="mid:ab82d4f09181c9dfda281924395d1112@145.50.39.11"
 type="cite">
  <pre wrap="">It is because Mapserver cannot use any attribute indexes on the DBF.

Put your shapefile in a spatial database like PostGIS I would suggest and
create attribute indexes.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
<a class="moz-txt-link-freetext" href="http://www.osgis.nl">http://www.osgis.nl</a>


--------- Oorspronkelijk bericht --------
Van: Paul Spencer <a class="moz-txt-link-rfc2396E" href="mailto:pspencer@dmsolutions.ca">&lt;pspencer@dmsolutions.ca&gt;</a>
Naar: Desarrollo Desarrollo <a class="moz-txt-link-rfc2396E" href="mailto:devmapserver@gmail.com">&lt;devmapserver@gmail.com&gt;</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU
Datum: 21/02/08 11:09

  </pre>
  <blockquote type="cite">
    <pre wrap="">See:

<a class="moz-txt-link-freetext" href="http://mapserver.gis.umn.edu/docs/howto/mapfiletuning">http://mapserver.gis.umn.edu/docs/howto/mapfiletuning</a>
<a class="moz-txt-link-freetext" href="http://mapserver.gis.umn.edu/docs/howto/optimizevector">http://mapserver.gis.umn.edu/docs/howto/optimizevector</a>
<a class="moz-txt-link-freetext" href="http://mapserver.gis.umn.edu/docs/howto/tileindex">http://mapserver.gis.umn.edu/docs/howto/tileindex</a>

Cheers

Paul

On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote:

&amp;gt; Hi,
&amp;gt;
&amp;gt;    I am developing an application with  MapServer v2.2.7 with  
&amp;gt; Apache  on Windows XP, but I have a serious problem, below I  
&amp;gt; describe it:
&amp;gt;
&amp;gt; Using Navteq demo maps from Paris, the Streets.shp have around  
&amp;gt; 500000 line strings features, when mapserver renders the layer  
&amp;gt; without using DBF data (only  draw lines) everything is OK and fast, 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">&amp;gt; but when mapserver needs to access to the DBF to render labels or  
&amp;gt; use expressions to filter data, mapserver starts to consuming 100%  
&amp;gt; CPU and nothing is rendered after to spends a long time.
&amp;gt;
&amp;gt; Using Teleatlas demo maps for a medium city of Spain, the Street.shp 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">&amp;gt; with around 11000 line strings features doesn't show any trouble and 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">&amp;gt; mapserver  renders the images OK and fast even accessing to DBF to  
&amp;gt; render labels
&amp;gt;
&amp;gt; Could somebody help me with this problem? Why does it happen? How do 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">&amp;gt; I solve it?
&amp;gt;
&amp;gt;
&amp;gt; Thank you very much.
&amp;gt; _______________________________________________
&amp;gt; mapserver-users mailing list
&amp;gt; <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
&amp;gt; <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    <a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a>

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->


_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>

  </pre>
</blockquote>
<br>
</body>
</html>