ROAD, STREET, BUILDING NAMES DOES'NT APPEAR.
Jacob Delfos
jacob.delfos at MAUNSELL.COM
Wed Nov 9 16:44:52 PST 2005
Jack,
Been trying to send this message to the list, but it seems to disappear in a
black hole. My message to you yesterday didn't appear either..... Tried both
smtp and exchange servers!
Anyway, I'm also trying to work this problem out for some colleagues
overseas. Previously I
didn't manage.
I have done some new experimenting, and I did get to see some Chinese
annotations in my map-image. But for all I know, it said "ayooooh... major
error" in Chinese.....
Try the following:
inside the class of the annotation, put this:
LABEL
TYPE TRUETYPE
FONT arial-unicode-ms
COLOR 0 0 0
SIZE 12
POSITION CL
PARTIALS FALSE
BUFFER 0
ENCODING GB2312
END
Then inside your fontlist, put a reference to a Chinese font (mine maps to
ARIALUNI.TTF). That reference must match the fonttype in the label
definition. You may or may not have to turn off the STYLEITEM AUTO setting.
I found this info on:
http://www.foss4g.org/FOSS4G/modules.php?name=AvantGo&file=print&sid=2
If this works well for you, please let me know.
regards,
Jacob
» -----Original Message-----
» From: UMN MapServer Users List
» [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jack Ling
» Sent: 9 November 2005 22:20
» To: MAPSERVER-USERS at LISTS.UMN.EDU
» Subject: Re: [UMN_MAPSERVER-USERS] ROAD, STREET, BUILDING
» NAMES DOES'NT APPEAR.
»
» Hi guys!
»
»
» Thanks a lot everyone here. After trials and re-testing based on your
» comments and suggestions, finally I've the labels come up! Great!
»
» However, I've problem remain to be resolved: there are Chinese (or you
» treat it as Unicode) characters in the DGN map don't show up correctly
» (appears as garbage characters).
»
» Is it an inherent problem when using DGN file with MapServer? Or
» anybody can help?
»
» Thanks a lot.
»
» On 11/9/05, Delfos, Jacob <jacob.delfos at maunsell.com> wrote:
» > Hi Jack,
» >
» > Annotation layers can be a bit confusing. They are not
» labels, but yet
» > are partially treated as such.....
» >
» > Anyway, I find that the following annotation layer definition works
» > quite well for me:
» >
» >
» ##############################################################
» ##########
» > LAYER
» > NAME "Annotation"
» > TYPE ANNOTATION
» > CONNECTIONTYPE OGR
» > CONNECTION "yourfile.dgn"
» >
» > LABELITEM "TEXT"
» >
» > STATUS OFF
» > STYLEITEM "AUTO"
» >
» > CLASS
» >
» > END
» > END
» >
» ##############################################################
» ##########
» >
» > You MUST have the LABELITEM defined, and you MUST also have a class
» > (which is best left empty). There is something called
» LABELANGLEITEM,
» > but I am unable to get it to work. The result is that the
» labels are not
» > rotated. Would be good if someone else could explain how to
» rotate DGN
» > labels, because I don't know...
» >
» > Hope this helps,
» >
» > Regards,
» >
» > Jacob
» >
» >
More information about the MapServer-users
mailing list