ROAD, STREET, BUILDING NAMES DOES'NT APPEAR.

Jack Ling fly2moon2 at GMAIL.COM
Mon Nov 14 03:55:10 EST 2005


Hi Jacob and All,


Sorry for not relying early as I was struggling with other projects. I
finally get it worked out to show Chinese annotations based on all
your advices.

Yes, the main point is to have the FONT that correctly displays
Chinese.(previously, I've problem because the font was not 'good'
enough). And have the ENCODING set correctly (* Using UTF-8 for my
case, Traditional Chinese).

So far, I haven't seen other Chinese-font-related problems yet. I
haven't tried the i18n version on doing this.

Thanks all again. A copy of the working map file :


    LABELITEM "TEXT"
    CLASS
	LABEL
	 TYPE TRUETYPE
        FONT bfhei
        SIZE 15
        ANTIALIAS TRUE
        PARTIALS FALSE
        ENCODING UTF-8
				POSITION CC
				MINDISTANCE 50
                                BUFFER 0
				COLOR 255 255 255
				SHADOWCOLOR 0 0 0
				FORCE TRUE
			END
		END
  END


best regards,
Jack Ling

On 11/10/05, Jacob Delfos <jacob.delfos at maunsell.com> wrote:
> 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