Welcome to FOSS4G and GRASS-Japan Site Home    Downloads      Submissions   Top 10   Topic   Forums  
FOSS for Geoinformatics: GRASS Users Conference 2004
 

Main
 Home(News) :
 Home

 Submit News
 Stories Archive
 AvantGo
 Search
 Topics
 Members :
 
 Community :
 Feedback
 Recommend Us
 Web Links
 Downloads
 Stats :
 Statistics
 Top 10
 FAQ

 General menu :
Add to favourites

12:42:32
Date : 07-05-2005
GMT : +0900

Who's Online
There are currently, 3 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking

  Chinese Annotation Support - UMN Mapserver 4.0.1
Posted on 水曜日, 4月 21 @ 16:30:34 JST by admin

MapServer Anonymous writes "
Chinese Annotation Support - UMN Mapserver 4.0.1
Chinese Annotation on Mapserver,
I just tested successfully to diaplay the Chinese annotation on UMN mapserver 4.0.1.



If you are interested in trying my demo, what you have to is
1) to get and intall the i18n patch first,
2) to download my Itasca tarball, and
3) to install this tarball as you did with its English version.


The key points to display Chinese (please refer to the demo.map file in the demo) are
ENCODING and FONT settings in the LABEL part. The processing in Redhat 8.0 is shown as follows:
1) finding the chinese truetype font.
# find / -name '*.ttf' -print
/usr/share/fonts/zh_CN/TrueType/gbsn00lp.ttf
/usr/share/fonts/zh_CN/TrueType/gkai00mp.ttf
/usr/share/fonts/zh_CN/TrueType/zysong.ttf
/usr/share/fonts/ja/TrueType/kochi-gothic.ttf
/usr/share/fonts/ja/TrueType/kochi-mincho.ttf
... ...
!!!!!!!!! zh_CN hosts the chinese truetype font
2) composing a font list file "font.list"
$vi font.list
gbsn001p /usr/share/fonts/zh_CN/TrueType/gbsn00lp.ttf
gkai00mp /usr/share/fonts/zh_CN/TrueType/gkai00mp.ttf
zysong /usr/share/fonts/zh_CN/TrueType/zysong.ttf
kochi-gothic /usr/share/fonts/ja/TrueType/kochi-gothic.ttf
kochi-mincho /usr/share/fonts/ja/TrueType/kochi-mincho.ttf
3) editing template file (adding FONTSET and LABEL, see demo.map)
FONTSET /home/song/soft/itasca/font.list

CLASS
LABEL
TYPE TRUETYPE
FONT zysong
COLOR 0 0 250
SIZE 12
POSITION CL
PARTIALS FALSE
BUFFER 0
ENCODING GB2312
END
END









"




空間情報学(Geoinfomatics)関連の2つの国際シンポジウム | 空間情報科学のためのFOSSソリューション
 
Related Links
· More about MapServer
· News by admin


Most read story about MapServer:
Chinese Annotation Support - UMN Mapserver 4.0.1


Article Rating
Average Score: 0
Votes: 0



Options

 Printer Friendly Page  Printer Friendly Page

 Send to a Friend  Send to a Friend


Sorry, Comments are not available for this article.
 

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest Copyright 2004 GRASS-Japan
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.309 Seconds