Problem with drawLabelCache on openSUSE
Daniel Morissette
dmorissette at MAPGEARS.COM
Thu Sep 6 12:01:29 PDT 2007
Dimitris,
It's possible the FGS binaries had some problems, we know there were
problems with them on some platforms and badly need to refresh what's
available on the download site. Have you tried configuring PHP as a CGI
and see if that helps? You'd do that by changing the
www/conf.d/php4.conf and restarting FGS, if I remember correctly there
are sample config files for both PHP as CGI and PHP as module in that
directory.
You could also try using the latest "FGS-msx" that contain more recent
versions of everything, including daily builds of the latest MapServer
5.0.0 release candidate code:
http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/fgs-msx-5.0/
Daniel
Dimitris Riggas wrote:
> 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
--
Daniel Morissette
http://www.mapgears.com/
More information about the MapServer-users
mailing list