Problem with drawLabelCache on openSUSE

Dimitris Riggas dimitris.riggas at GMAIL.COM
Thu Sep 6 04:44:24 EDT 2007


Hello everybody,
I have the following problem and any help is most welcome!

I have developed a php application using MapServer. php is running as a
module, not as cgi.
The application was developed and tested on WinXP but when I moved it on
openSUSE 10.2 I run into problems with the drawLabelCache function of
mapObj. The problem is that it takes toooooo long to execute so my script
blocks till maximum execution time elapses and thus the whole script halts!
I have changed maximum execution time to various values without solving my
problem.

The execution environment I use is MapServer version 4.8.2; actually it is
the current basic FGS package that includes the following components:
apache-base 1.3.33
curl-lib 7.12.2
expat-base 1.95.8
freetype-lib 2.1.9
gd-lib 2.0.33
gdal-base 1.2.5
jpeg-lib 6b
libgeotiff-lib 1.2.2
libiconv-base 1.9.1
libpng-lib 1.2.6
mapserver-base 4.4.1
mapserver-php 4.4.1
netcdf-lib 3.5.1
openssl-lib 0.9.7d
php-base 4.3.10
postgresql-lib 7.4.6
proj-lib 4.4.8
proj4_epsg42xxx-support 1.0.0
tiff-lib 3.7.1
unixODBC-base 2.2.10
xerces_c-base 2_6_0

The [relevant part of the] script that I use is the following:
$map = ms_newMapObj( $MAPFILE );
$image = $map->prepareImage();
enableLayers( $map, $image ); //my custom function that draws layers
depending on user input

$map->drawLabelCache($image);  // THE PROBLEMATIC LINE !!!!!!!!!!!!
$image_url=$image->saveWebImage();

$scale = $map->drawScaleBar();
$map->embedScalebar($scale);

$legend = $map->drawLegend();
$legend_url=$legend->saveWebImage();

$refmap = $map->drawReferenceMap();
$refmap_url=$refmap->saveWebImage();


If I comment out the line where the problem occurs, the map is created
successfully but of course no labels appear!
Could anyone help? it would be most welcome!

Regards,
Dimitris Riggas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070906/e6ea01a7/attachment.html


More information about the mapserver-users mailing list