<br>
Hi again,<br>
<br>
I have made some more testing. I corrected my dataset, removed road segments without label and joinded ones with the same label.<br>
If I map only road layer (2600 rows in DB) in defined place it's genereted:<br>
without labels ->0,18 sec<br>
with labels -> 0,54 sec<br>
with outlined labels ->1,45 sec<br>
<br>
Why takes outlined labeling 3 times more time than without outlines?<br>
Could there be anything wrong in my MapServer installation?<br>
<br>
Thank you in advance,<br>
Erki Veersalu<br>
<br>
<br>
<br>
On 6/6/05, Erki Veersalu <<a href="mailto:oraakel@gmail.com">oraakel@gmail.com</a>> wrote:<br>
> Dear MapServer users,<br>
> <br>
> I need help for improving speed of my web-application. I would really<br>
> appreciate if someone could comment following issue.<br>
> I'm using MapServer for displaying road network with labels over<br>
> PostGis,Postgresql. Database is not that big, but making a GIF file of<br>
> only roads (~200000 road segments) with angular true type labeling<br>
> takes ~3 sec. If I don't use labeling it's 0,5 sec and with bitmap<br>
> labels it's 0,6 sec<br>
> Mapserver is running on Solaris 9.<br>
> <br>
> Why is labeling so slow? What can I do to speed up generation of an image?<br>
> <br>
> mapserv -v<br>
> MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>
> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7<br>
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
> <br>
> map file:<br>
> MAP<br>
> NAME tuwa<br>
> STATUS ON<br>
> IMAGETYPE GIF<br>
> SIZE 400 300<br>
> EXTENT -876000 1330000 2230000 3650000<br>
> SHAPEPATH "/usr/local/apache2/htdocs/mapserver/tuwa/data/"<br>> FONTSET "/usr/local/apache2/htdocs/mapserver/tuwa/data/fonts/fonts.list"<br>> UNITS METERS<br>> <br>> WEB<br>> IMAGEPATH "/usr/local/apache2/htdocs/mapserver/tmp/"
<br>> IMAGEURL "/mapserver/tmp/"<br>> END<br>> <br>> SCALEBAR<br>> STATUS on<br>> INTERVALS 4<br>> SIZE 200 2<br>> COLOR 0 0 0<br>> OUTLINECOLOR 0 0 0<br>> UNITS kilometers
<br>> LABEL<br>> COLOR 0 0 0<br>> SIZE small<br>> END<br>> END<br>> <br>> LAYER<br>> NAME A40<br>> STATUS default<br>> CONNECTIONTYPE postgis<br>> CONNECTION "user=postgres dbname=tuwa"
<br>> DATA "the_geom from streets"<br>> TYPE line<br>> LABELITEM "name"<br>> LABELMAXSCALE 45000<br>> CLASS<br>> SYMBOL 0<br>> COLOR 150 150 150<br>
> MAXSCALE 50000<br>> LABEL<br>> TYPE TRUETYPE<br>> FONT "arial"<br>> SIZE 9<br>> MINSIZE 8<br>> MAXSIZE 10<br>> FORCE FALSE
<br>> COLOR 0 0 0<br>> OUTLINECOLOR 255 255 255<br>> POSITION cc<br>> ANGLE auto<br>> ANTIALIAS TRUE<br>> MINFEATURESIZE 3<br>> MINDISTANCE 100
<br>> PARTIALS TRUE<br>> END<br>> END<br>> END<br>> END<br>> <br>> Erki Veersalu<br>> Estonia<br>> <br>