[Mapserver-users] 4.2 Migration -> symbols and truetype labels

TCHaddad TCHaddad at cshore.com
Fri Jul 9 15:27:06 PDT 2004


Listers,

I'm in the process of upgrading an App from MS 3.5 to the most recent 4.2 . I'm working my way through the migration guide to 4.x, and thus far the changes are making sense. However, I have found one change that I do not know the solution for: it involves the case when using a symbol to display point data and also labeling the points using a trutype font. I found a similar case in the archives at: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0306/msg00447.html ... but no solution was posted in response. 

The problem layer definition is below. If this layer is called "ON", then the App will fail with the message: "Fatal error: Call to a member function on a non-object..". If status is simply left "OFF" then the map will load just fine.

Can anyone point out the problem ?

Tanya

-------------layer def------------->

LAYER
  NAME  acetate2
  STATUS OFF
  TYPE  POINT
  LABELITEM "NAME"
  CLASSITEM "Population"
  DATA "D:\gis\pops.shp"
  MINSCALE 5000
  MAXSCALE 2000000
CLASS
 EXPRESSION ([Population]< 1000)
 SYMBOL 'dot'
 SIZE 1
 LABEL
     COLOR  0 0 0
     OUTLINECOLOR 255 255 255 
     SIZE 6
     TYPE TRUETYPE
     FONT tahoma
     POSITION CR
    END
END
CLASS
 EXPRESSION ([Population]> 1000 AND [Population]< 2000)
 LABEL
     ANGLE AUTO
     COLOR  0 0 0
     OUTLINECOLOR 255 255 255 
     SIZE 7
     TYPE TRUETYPE
     FONT tahoma
     POSITION CC
    END
END
CLASS
 EXPRESSION ([Population]> 2000 AND [Population]< 3000)
 LABEL
     ANGLE AUTO
     COLOR  0 0 0
     OUTLINECOLOR 255 255 255 
     SIZE 8
     TYPE TRUETYPE
     FONT ARIAL_NB
     POSITION CC
    END
END
END                 
                 



More information about the MapServer-users mailing list