Hi !!!<br><br>I'm working with a vector map made in Java Mapscript, with 2 layers, and i need that one of them has labels to identify a way, but when the program runs, mapserver draws a very little ununderstandable labels, and it doesn't 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, the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+" WHERE codigo IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa USING UNIQUE gid USING SRID=-1");
<br> Capa.setData(Comando);<br> Capa.setLabelitem("Nombre");<br> Capa.setConnection("user=geotrans dbname=Geotrans 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> Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null);<br>-- <br>Alejandro Rico