In C# I use the settext on classobj:
classObj.setText("([" + ColumnName + "])");
You have to specify a settext per class. Now you can have a different column
for each class (or all the same :)
Greets
Gerben
-----Oorspronkelijk bericht-----
Van: [email protected]
[mailto:[email protected]] Namens Vinicius Maeda
Verzonden: Friday, November 13, 2009 6:49 PM
Aan: [email protected]
Onderwerp: [mapserver-users] Labelitem in MapScript
Hi guys,
I have the code above in a mapfile and I'm trying to use it in MapScript , in
spetial case the usage of LabelItem. Is someone can help me?
LAYER
NAME "BR"
CONNECTIONTYPE PLUGIN
PLUGIN
"C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll"
CONNECTION
"server=localhost;uid=user;pwd=pwd;database=db;Integrated
Security=false"
DATA "the_geom FROM (SELECT the_geom, Etiqueta, ID
FROM
TE_Cabeceira_E_Foz_Rios_Escopo_ES WHERE CodigoRio = '104432') AS FOO USING
SRID=4326 USING UNIQUE ID"
TYPE POINT
STATUS DEFAULT
LABELITEM "Etiqueta"
CLASS
NAME "NAME"
SYMBOL "circle"
SIZE 5
COLOR 0 0 255
LABEL
COLOR 255 255 255
FONT arial
SIZE small
POSITION AUTO
PARTIALS FALSE
OUTLINECOLOR 0 0 255
END
END
END
Regards,
Vinicius
--
View this message in context:
http://n2.nabble.com/Labelitem-in-MapScript-tp4000655p4000655.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
<< Please read our E-mail Disclaimer at: Emaildisclaimer.Grontmij.com >>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users