I am having a problem rendering labels to my map. I am running mapserver from 
ubuntu intrepid packages (none compiled). Kernel is  2.6.27-7-generic. Since 
this is obviously a common function I must be doing something wrong in the 
layer or something in the packages is not meshing. Everything works until I try 
to do anything with TrueType fonts, but I am not sure why gdal would have 
anything to do with this. When I try to add a label to a working layer (called 
'clpoint'), the client gets a 500. Funny because the mapserver log reports lots 
of stuff like this for the layer (but no error):


40 2009].797599 msDrawMap(): Layer 6 (clpoint), 0.000s
[Wed Apr  8 08:24:40 2009].797672 msDrawMap(): Drawing Label Cache, 0.000s
[Wed Apr  8 08:24:40 2009].797693 msDrawMap() total time: 0.001s
[Wed Apr  8 08:24:40 2009].803041 msFreeMap(): freeing map at 0x8d21ed8.
[Wed Apr  8 08:24:40 2009].895713 CGI Request 1 on process 29681
[Wed Apr  8 08:24:40 2009].896030 msWMSLoadGetMapParams(): enabling non-square 
pixels.[Wed Apr  8 08:24:40 2009].902272 msDrawMap(): kicking into non-square 
pixel preserving mode.[Wed Apr  8 08:24:40 2009].902928 msDrawMap(): Layer 6 
(clpoint), 0.001s
[Wed Apr  8 08:24:40 2009].903194 msDrawMap(): Drawing Label Cache, 0.000s
[Wed Apr  8 08:24:40 2009].903236 msDrawMap() total time: 0.001s
[Wed Apr  8 08:24:40 2009].908839 msFreeMap(): freeing map at 0x8971ed8.
[Wed Apr  8 08:24:40 2009].928955 CGI Request 1 on process 29683


but syslog reports a bunch of these:
Apr  8 08:24:40 geoserver kernel: [1017419.869331] mapserv[29680]: segfault at 
bf41cfec ip b780fd4b sp bf41cfe0 error 6 in 
libgdal1.5.0.so.1.12.2[b7736000+4df000]
Apr  8 08:24:40 geoserver kernel: [1017419.916239] mapserv[29682]: segfault at 
bf72fffc ip b7821d56 sp bf730000 error 6 in 
libgdal1.5.0.so.1.12.2[b7748000+4df000]

--The layer in question:
     LAYER
       METADATA
          wms_title    "clpoint"
       END
       TYPE POINT
       STATUS ON
       NAME "clpoint"

       DATA "../shapes/clpoint/clpoint.shp"
       LABELITEM "CLPTLABEL"
       LABELCACHE ON
       CLASS
         STYLE
            COLOR             213 200 230
         END
         LABEL
            TYPE              TRUETYPE
            FONT              "arial"
            SIZE              8
            ANGLE             FOLLOW
            COLOR             25 25 175
            OUTLINECOLOR      255 255 255
            MINDISTANCE       200
            PARTIALS          FALSE
         END
       END
#This works fine
#      CLASS
#         STYLE
#            SYMBOL "../symbols/historical.png"
#            SIZE 20
#         END
#      END 

       JOIN
          TABLE "../shapes/clpoint/clpoint.dbf"
          NAME "clpoint"
          FROM "PolyId"
          TO "PolyId"
          TYPE ONE-TO-ONE
       END
     END


--Mapserver configuration:
MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS 
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

--gdlib configuration:
# gdlib-config --version
2.0.36
# gdlib-config --libs
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm


--Gdal configuration:
# gdal-config --libs
-L/usr/lib -lgdal1.5.0  (this 1.5.0 seems odd to me)
#gdal-config --version
1.5.2
# gdal-config --ogr-enabled
yes

--The libraries:
-rw-r--r-- 1 root root 8817022 2008-07-04 11:08 /usr/lib/libgdal1.5.0.a
-rw-r--r-- 1 root root    1345 2008-07-04 11:08 /usr/lib/libgdal1.5.0.la
lrwxrwxrwx 1 root root      22 2009-04-07 16:29 /usr/lib/libgdal1.5.0.so -> 
libgdal1.5.0.so.1.12.2
lrwxrwxrwx 1 root root      22 2009-03-31 12:43 /usr/lib/libgdal1.5.0.so.1 -> 
libgdal1.5.0.so.1.12.2
-rw-r--r-- 1 root root 5438428 2008-07-04 11:08 /usr/lib/libgdal1.5.0.so.1.12.2

--Things I have checked
*The font.list is present and seems to be read (fails with a clearer error when 
I reference a fake font.).
*The font file is a valid true type font and has all permissions. Tried 
different fonts.
*The shape file and the dbf file are readable by other tools and CLPTLABEL in 
the dbf file has the data I want. 


Can someone please tell me where I am going wrong (and thank you)? Sorry for 
the long post.



      
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to