About mapserver 4.4.1 and Chinese problem
Tinmean K. H. Liu
tinmean at YAHOO.COM.TW
Fri Mar 18 00:21:17 PST 2005
Thanks for your response first.
I use traditional Chinese code, so the BIG5 is insteaded.
And I choose the "bkai00mp" as my font settin, it is alse the part of
fedora font.
Rewriting the mapfile and keeping it simple. But still failed.
The failure example is here:
http://140.113.223.74/hc_river/test.php (It is no a php script and is a
pure html script)
the mapfile:
MAP
EXTENT 236874 2734194 252551 2749838
SIZE 300 400
SHAPEPATH "/var/www/html/hc_river/webgis/data"
LAYER # start of the "states" layer object
NAME Hchc_river
DATA Hchc_river
STATUS DEFAULT
TYPE LINE
LabelItem "NAME"
CLASSITEM "NO"
CLASS
NAME "Hchc_river"
COLOR 0 0 255
LABEL
TYPE TRUETYPE
ENCODING BIG5
FONT "bkai00mp"
FORCE TRUE
SIZE 12
POSITION AUTO
PARTIALS FALSE
OUTLINECOLOR 255 255 255
END
#OUTLINECOLOR 255 255 255
END # end of class object
END # end of layer object
END # end of map file
When I comment the line "Labelitem", the figure can be showed out.
I am sure the data path is correct.
May you give some advice?
--Tinmean K. H. Liu
>Hello,
>
>I am not so familliar with the font you are using, but
>this is what we used to test Chinese support:
>
> LAYER
> NAME "myline"
> TYPE line
> DATA myline
> STATUS DEFAULT
>
> LABELITEM "ZHNAME"
>
> CLASS
> NAME "myline"
> COLOR 227 27 227
> LABEL
> TYPE TRUETYPE
> ENCODING GB2312
> FONT "gbsn00lp"
>
> FORCE TRUE
> SIZE 10
> COLOR 0 0 0
> ANGLE AUTO
> END
> END
> END
>
>Can you try using gbsn00lp as your font, and see if
>the labels display well. The font is part of Fedora.
>
>Regards,
>
>mario
>yokohama,japan
>
>
>
>
>--- "Tinmean K. H. Liu" <tinmean at YAHOO.COM.TW> wrote:
>
>
>>Hi,
>>
>> I installed mapserver 4.4.1 by using apt under
>>Fedora Core 2.
>> From the "what's new" and mapfile reference, I
>>use "encoding" in my mapfile.
>> It looks like:
>>
>>LAYER
>> NAME Hchc_river
>> TYPE LINE
>> STATUS ON
>> DATA Hchc_river
>> LabelItem "NAME"
>> #CLASSITEM "NO"
>> CLASS
>> NAME "Hchc_river"
>> COLOR 0 0 255
>> LABEL
>> COLOR 0 0 0
>> TYPE TRUETYPE
>> FONT moe_kai
>> SIZE 8
>> POSITION AUTO
>> PARTIALS FALSE
>> OUTLINECOLOR 255 255 255
>> ENCODING BIG5
>> END
>> END
>> TOLERANCE 5
>>END
>>
>> And I have an example in my site:
>>http://140.113.223.74/hc_river/hello.phtml
>>
>> The right code(BIG5), the right font, but failed.
>> Thanks for any response.
>>
>>Tinmean K. H. Liu
>>
>>
>>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Small Business - Try our new resources site!
>http://smallbusiness.yahoo.com/resources/
>
>
>
More information about the MapServer-users
mailing list