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