[Chameleon-dev] [Bug 1406] [Chameleon-Widget]Add a note with MapNotes widget makes the application hangs for ever

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Mon Apr 10 15:53:47 EDT 2006


------- Additional Comments From nsavard at mapgears.com  2006-04-10 15:53 -------
I got the PHP error below.  When the "Add" button in "Add Map Note" window is
clicked, updateDBFRecord() function is called and a new dbf file for the new
note is created with the following structure:

        $aDbfStruct =   array(
                            array( 'x'       ,'N', 19, 9),
                            array( 'y'       ,'N', 19, 9),
                            array( 'id'      ,'N', 7, 0 ),
                            array( 'font'    ,'C', 50   ),
                            array( 'f_size'  ,'C', 2    ),
                            array( 'f_color' ,'C', 11   ),
                            array( 'f_ocolor','C', 11   ),
                            array( 'symbol'  ,'C', 50   ),
                            array( 's_size'  ,'C', 2    ),
                            array( 's_color' ,'C', 11   ),
                            array( 's_ocolor','C', 11   ),
                            array( 'marquee', 'N', 1, 0 ),
                            array( 'offsetx', 'N', 5, 0 ),
                            array( 'offsety', 'N', 5, 0 ),
                            array( 'label'   ,'C', 255  ),
                            array( 'l_pos'   ,'C', 2    ),

Then manageLayer() function is called to update the "MapNotesAnnotation" layer
of the map file with the data extracted from the dbf file with this instruction:
    "$oClass->label->set( 'font' , $aRec['font'] );".  Since the size of the
font record is 50, we end up with the following string for the font name:  "sans
                                         " which is why MapServer is complaining
that it could not find the font.

 PHP Warning:  [MapServer Error]: msGetLabelSize(): Requested font (sans       
                                      ) not found.
 in /opt/fgs-mshead/apps/chameleon-cvs/htdocs/common/wrapper/drawmap.php on line 541

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.

More information about the Chameleon-dev mailing list