[mapserver-users] TYPE/FONT/SIZE breaks labels

Fawcett, David (MNIT) David.Fawcett at state.mn.us
Mon Sep 16 10:07:13 PDT 2013


You don't mention if you have a fontset file or an associated entry in your mapfile.

http://mapserver.org/mapfile/fontset.html

David.

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael McInnis
Sent: Monday, September 16, 2013 12:04 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] TYPE/FONT/SIZE breaks labels

Mapservers!

I have bailed on dynamically generating labels and fell back to a .map based solution and may have found the primary problem. If I enable TYPE or FONT or SIZE in the LABEL section my map fails to display. I installed Truetype fonts on my Ubuntu system on Friday.

Does anyone know why the fonts will not function?

LAYER
        CONNECTIONTYPE POSTGIS
        NAME airports
        CONNECTION "host=xxxx dbname=xxxx user=xxxx password=xxxx port=xxxx"
        PROCESSING "CLOSE_CONNECTION=DEFER"
        #DATA "geom From airports"
        DATA "geom From (select a.icao, geom From airports a left join airportdata e on a.icao = e.icao where e.icao Is Not Null) as subquery using unique icao using srid=4326"
        STATUS ON
        TYPE POINT
        LABELITEM "icao"
        CLASS
            LABEL
        #TYPE        truetype
        #FONT         "sans"
        #SIZE        8
                ANTIALIAS     TRUE
                POSITION     AUTO
                PARTIALS     TRUE
                MINDISTANCE     100
                BUFFER         4
                COLOR         0 0 0
            END
            NAME "airportsClass"
        STYLE
                SYMBOL 'circle-filled'
                SIZE 3
                COLOR 255 22 22
            END
        END # Class
    END # Layer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130916/b5f24ddf/attachment.htm>


More information about the MapServer-users mailing list