Ttf problems with php_mapscript and php as dso in apache2

JP Liska jp at GUATEC.COM
Fri Nov 18 18:11:33 EST 2005


Hello,

I've been using mapserver 4.4 with php as cgi for a long while. I am
interested in using php as dso. I am trying out mapserver 4.8.0-beta1 and I
am able to generate an image with shp2img, however when I use this map file
with php_mapscript, the process never completes.  Note that if I change the
font to bitmap, I have no problems at all.

Is it supposed to be possible to use php_mapscript in php as dso?

Has anyone else had this problem?

Thanks in advance
-Juan

---------------------
I'm configuring with this:

./configure --without-tiff --without-pdf --without-eppl
--with-proj=/dls/gis/proj-4.4.9 --with-postgis --without-wms
--with-php=/dls/php/php-5.1.0RC4 --enable-debug --with-jpeg=/usr
--with-ming=/dls/ming-0.3beta1/src --with-freetype=/usr/bin/freetype-config
--with-threads

---------------------
I get this when I run configure:

...
checking for FT_Init_FreeType in -lfreetype... yes
        using libfreetype -lfreetype from system libs.
...
checking for gdFontGetTiny in -lgd... yes
        using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system
libs.
...

---------------------
I'm testing with the following map file:

MAP
  NAME "Testing"
  EXTENT -90.539942 14.608652 -90.531052 14.617541
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  STATUS ON
  SIZE 200 200
  FONTSET "fonts.txt"
  
  LAYER
    NAME paises
    TYPE polygon
    STATUS on
    DATA countries
  
    LABELITEM "country"
  
    CLASS
      COLOR 248 240 220
      OVERLAYSIZE 3
      OVERLAYOUTLINECOLOR 100 100 100
      SIZE 1
      STYLE
        ANTIALIAS true
      END		
      LABEL
        TYPE TRUETYPE
        FONT "Vera"
        SIZE 10
        COLOR 0 0 0
      END
    END
  END
END



More information about the mapserver-users mailing list