<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Century Gothic";
panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
span.EstiloCorreo18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=ES link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Hi Alejandro , I hope
this helps. You should replicate in mapscript something similar to the
configuration that appear below.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> I understand that he
Type attribute should be setted to truetype By the way, did you check if the FONTSET
attribute <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Is pointing to the correct
location<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt'><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt'><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt'><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'>FONTSET "/usr/local/common/mapserver/font.list"<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt'><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt'><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt'><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt'><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'>Label<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> Size 8
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> type truetype<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> POSITION
AUTO<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> MINDISTANCE
100 <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> font "vera"<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> color
66 89 255<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> minfeaturesize
5 <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>end<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Regards.<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><b><font size=2 color="#339966" face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:#339966;font-weight:
bold'><img width=43 height=34 id="_x0000_i1026"
src="cid:image001.jpg@01C6AF0E.C85D2BB0">Lic. Heraldo G. Rodriguez<o:p></o:p></span></font></b></p>
<p class=MsoNormal><font size=2 color=blue face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:blue'> </span></font><font
color=navy><span style='color:navy'><a href="mailto:hrodriguez@siscat.com.ar"><font
size=2 face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>hrodriguez@siscat.com.ar</span></font></a></span></font><font
size=2 color=blue face="Century Gothic"><span style='font-size:10.0pt;
font-family:"Century Gothic";color:blue'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:blue'> TE
4326-4002 int 255</span></font><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:blue'> Dpto.
Desarrollo<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:blue'> Sistemas
Catastrales S.A</span></font><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'><o:p> </o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>De:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Alejandro Rico
[mailto:jarg58@GMAIL.COM] <br>
<b><span style='font-weight:bold'>Enviado el:</span></b> sábado, 22 de julio de
2006 20:21<br>
<b><span style='font-weight:bold'>Para:</span></b>
MAPSERVER-USERS@LISTS.UMN.EDU<br>
<b><span style='font-weight:bold'>Asunto:</span></b> Re: [UMN_MAPSERVER-USERS]
Adding Labels to a Vector Map with Java Mapscript</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi !!!<br>
I try with your suggestions but it doesn't work.<br>
here's a sample image of the map generated, and the fontset file<br>
<br>
thanks !!!<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 7/22/06, <b><span style='font-weight:bold'>Umberto
Nicoletti</span></b> <<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>>
wrote:</span></font></span><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Can you post a sample generated image with only this layer on and your<br>
fontset file?<br>
You could also try to remove mindistance and to set the layer's status<br>
to MS_DEFAULT.<br>
<br>
Regards,<br>
Umberto<br>
<br>
On 7/21/06, Alejandro Rico < <a href="mailto:jarg58@gmail.com">jarg58@gmail.com</a>>
wrote:<br>
> Hi !!!<br>
><br>
> I'm working with a vector map made in Java Mapscript, with 2 layers, and i<br>
> need that one of them has labels to identify a way, but
when the program <br>
> runs, mapserver draws a very little ununderstandable labels, and it
doesn't<br>
> take the font size change. Someone can help me with
this??? thanks.<br>
><br>
> here's my code:<br>
><br>
> Capa = new layerObj(Mapa); <br>
>
Capa.setName("Vias");<br>
>
Capa.setType(mapscriptConstants.MS_LAYER_LINE);<br>
>
Capa.setStatus(mapscriptConstants.MS_ON );<br>
>
String Comando = new String("the_geom FROM (select gid,<br>
> the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+"
WHERE codigo<br>
> IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa
<br>
> USING UNIQUE gid USING SRID=-1");<br>
>
Capa.setData(Comando);<br>
>
Capa.setLabelitem("Nombre");<br>
>
Capa.setConnection("user=geotrans dbname=Geotrans <br>
> host=localhost");<br>
>
Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS);<br>
>
Clase = new classObj(Capa);<br>
>
Estilo = new styleObj(Clase);<br>
>
Estilo.setColor(new colorObj(255,0,0,0));<br>
>
labelObj Etiquetas = new labelObj(); <br>
>
Etiquetas.setSize(18);<br>
>
Etiquetas.setColor(new colorObj(0,255,255,0));<br>
>
Etiquetas.setType(mapscriptConstants.MS_TRUETYPE);<br>
>
Etiquetas.setAntialias(mapscriptConstants.MS_TRUE );<br>
>
Etiquetas.setPosition(mapscriptConstants.MS_CL);<br>
>
Etiquetas.setPartials(mapscriptConstants.MS_FALSE);<br>
>
Etiquetas.setMindistance (300);<br>
>
Etiquetas.setFont("vera");<br>
>
Clase.setLabel(Etiquetas);<br>
><br>
>
Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null);<br>
> -- <br>
> Alejandro Rico<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
Alejandro Rico <o:p></o:p></span></font></p>
</div>
</body>
</html>