How can I display characters in a map by mapfile?

Posted by sirius on Stack Overflow See other posts from Stack Overflow or by sirius
Published on 2010-03-24T04:43:01Z Indexed on 2010/03/24 4:53 UTC
Read the original article Hit count: 257

Filed under:
|

Hello. I'm trying to show a map using postGIS+Mapserver.And I've displayed a PNG picture in my WEB. However, I want to show some charactors in the map, just like this: mapserv demo

this is the example from Mapserver

Now I'm using database(postgreSQL), but not a shape file. How can I add the charactors then?

Here is a part of my mapfile:

LAYER
  CONNECTIONTYPE postgis
  NAME "state"
  //Connect to a remote spatial database
  CONNECTION "user=postgres dbname=*** host=*** password=***"
  PROCESSING "CLOSE_CONNECTION=DEFER"
  DATA "the_geom from province"
  STATUS ON
  TYPE POLYGON
  CLASS
    STYLE
      COLOR 122 122 122
      OUTLINECOLOR 0 0 0
    END
    LABEL
      COLOR 132 31 31
      SHADOWCOLOR 218 218 218
      SHADOWSIZE 2 2
      TYPE TURETYPE
      FONT arial-bold
      SIZE 12
      ANTIALIAS TRUE
      POSITION CL
      PARTIALS FALSE
      MINDISTANCE 300
      BUFFER 4
    END
  END

Some said adding a "TEXT ([*])" in "LABEL", but I don't know howto?

Thanks for your help!

© Stack Overflow or respective owner

Related posts about mapserver

Related posts about postgis