[Mapserver-users] How to Draw Annotation Layer Last

Dan Barron dbarron at ddive.com
Wed Jan 22 16:09:51 PST 2003


TH,

I commented out all the label objects from all the layers except the 
credits layer and still receive the error

Fatal error: MapServer Error in msGetBitmapFont(): Invalid bitmap font.
Must be one of tiny, small, medium, large or giant.

I have upgraded to MapServer 3.6.4 and PHP/Mapscript 3.6 w/ PHP 4.3.0 - 
same results.

I am sure it will end up being something subtle somewhere in my map file or 
php/mapscript code.

Thanks for the help.

Dan

At 01:53 PM 1/22/2003 -0500, TCHaddad wrote:
>Dan
>
>I think your layer definition is missing LABELITEM ... so mapserver does 
>not know what labels to draw.
>
>TH
>
>----------------
>
>Message: 12
>Date: Tue, 21 Jan 2003 12:07:56 -0800
>To:  mapserver-users at lists.gis.umn.edu
>From: Dan Barron
>Subject: RE: [Mapserver-users] How to Draw Annotation Layer Last
>
>--=====================_7244625==.ALT
>Content-Type: text/plain; charset="iso-8859-1"; format=flowed
>Content-Transfer-Encoding: quoted-printable
>
>Thanks Ed & Chip,
>
>I tried to set the layer to type point and the problem persists.
>
>When I try to use the 'drawLabelCache()' method I get the following error=20
>at the line of the php/mapscript file making the method call -
>
>Fatal error: MapServer Error in msGetBitmapFont(): Invalid bitmap font.
>Must be one of tiny, small, medium, large or giant.
>
>Currently I have the annotation layer as the last layer entry in the map=20
>file - and it is still being drawn over by the other layers.  Could it be=20
>how I am defining my other layers?  Here is an example:
>
>LAYER
>    NAME 'states'
>    TYPE POLYGON
>    STATUS ON
>    DATA 'north_america/usa/statesp020'
>    MAXSCALE 26000000
>    MINSCALE 1
>    GROUP 'north_america'
>    CLASS
>      NAME 'states'
>      OUTLINECOLOR 204 204 204
>      COLOR 255 255 204
>      LABEL
>       COLOR 0 0 0
>          SIZE SMALL
>      END
>    END
>END
>
>
>Am I possibly running into a v3.5 issue?
>
>Dan
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list