Dear List,<br> I have a map which consists of various districts.Now I want to place the names of each district in each polygon.But i am not able to get the documentation how to put a text inside a polygon.If any one know the solution please help me in solving
this.I am giving my map file here and can you please give me an example how to put an example text "XXXX" inside a polygon of this map so that i can put the text.<br> Here is the map file (To get the extents for you)
<br><br>MAP<br> NAME "demoPlugins"<br> EXTENT 78.06729100692377 12.622787007093203 80.05293299314805 13.993528992744805<br> IMAGETYPE PNG<br> IMAGECOLOR 255 255 255<br> STATUS ON<br> UNITS METERS<br> FONTSET "
fonts.txt"<br> SYMBOLSET "symbols.txt"<br> SHAPEPATH "data"<br><br> OUTPUTFORMAT<br> NAME png<br> DRIVER "GD/PNG"<br> MIMETYPE "image/png"<br> IMAGEMODE PC256<br>
EXTENSION "png"<br> FORMATOPTION "INTERLACE=OFF"<br> TRANSPARENT ON<br> END<br> <br> OUTPUTFORMAT<br> NAME jpeg<br> DRIVER "GD/JPEG"<br> MIMETYPE "image/jpeg"<br>
IMAGEMODE RGB<br> EXTENSION "jpg"<br> FORMATOPTION "INTERLACE=OFF"<br> FORMATOPTION "QUALITY=80"<br> END<br> <br> REFERENCE<br> IMAGE images/keymap.png<br> EXTENT 142776 4757331 1083562 5409260
<br> STATUS ON<br> COLOR -1 -1 -1<br> OUTLINECOLOR 200 200 200<br> SIZE 140 97<br> END<br><br> SCALEBAR<br> POSTLABELCACHE TRUE<br> STYLE 0<br> UNITS kilometers<br> SIZE 350 3<br> TRANSPARENT TRUE
<br> COLOR 77 77 88<br> IMAGECOLOR 242 255 195<br> BACKGROUNDCOLOR 222 222 222<br> LABEL<br> TYPE BITMAP<br> SIZE SMALL<br> COLOR 0 0 0<br> POSITION UR<br> BUFFER 10<br> END<br> END
<br><br> PROJECTION<br> "init=epsg:4326"<br> END<br><br> LEGEND<br> KEYSIZE 20 15<br> END<br><br> ##########<br> # LAYERS #<br> ##########<br> <br><br> <br> <br> LAYER<br> NAME "chittoor"
<br> TYPE POLYGON<br> DATA "DIST_Chittoor_Ver0_011205"<br> TEMPLATE "ttt"<br> METADATA<br> "exported_values" "recenter_name_string,id_attribute_string"<br> "recenter_name_string" "NAM"
<br> "id_attribute_string" "OGC_FID|string"<br> "query_returned_attributes" "NAM" <br> END<br> CLASS<br> STYLE<br> COLOR 80 160 74<br> OUTLINECOLOR 86 86 74
<br> END<br> END<br> END<br><br><br> ###########<br> # outline #<br> ########### <br> LAYER<br> NAME "cartoweb_point_outline"<br> TYPE POINT<br> CLASS<br> STYLE<br> SYMBOL "circle"
<br> COLOR 0 0 205<br> SIZE 10<br> END<br> LABEL<br> TYPE TRUETYPE<br> FONT "Vera"<br> SIZE 7<br> COLOR 0 0 0<br> OUTLINECOLOR 255 255 255<br> POSITION lc
<br> END<br> END<br> END<br><br> LAYER<br> NAME "cartoweb_line_outline"<br> TYPE LINE<br> TRANSPARENCY 100<br> CLASS<br> STYLE<br> OUTLINECOLOR 255 0 0<br> SYMBOL "line-dashed"
<br> SIZE 3<br> END<br> LABEL<br> TYPE TRUETYPE<br> FONT "Vera"<br> SIZE 7<br> COLOR 0 0 0<br> OUTLINECOLOR 255 255 255<br> ANGLE auto<br> POSITION uc
<br> END<br> END<br> END<br><br> LAYER<br> NAME "cartoweb_polygon_outline"<br> TYPE POLYGON<br> TRANSPARENCY 60<br> CLASS<br> STYLE<br> COLOR 255 153 0<br> OUTLINECOLOR 0 0 0
<br> END<br> LABEL<br> TYPE TRUETYPE<br> FONT "Vera"<br> SIZE 7<br> OUTLINECOLOR 255 255 255<br> COLOR 0 0 0<br> POSITION cc<br> END<br> END<br> END<br>
END<br><br>Thanks in advance,<br><br>Regards,<br>venu.<br><br><br><br>