[mapserver-users] Labelitem in MapScript

Tiemens, Gerben Gerben.Tiemens at grontmij.nl
Mon Nov 16 04:16:08 EST 2009


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Vinicius Maeda
Verzonden: Friday, November 13, 2009 6:49 PM
Aan: mapserver-users at lists.osgeo.org
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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

<< Please read our E-mail Disclaimer at: Emaildisclaimer.Grontmij.com >>


More information about the mapserver-users mailing list