Labels Not Displayed {Scanned}

Siki Zoltan siki at AGT.BME.HU
Fri Jan 7 17:56:05 EST 2005


Hi,

Try to change TYPE LINE to TYPE ANNOTATION.
Another notice, why do you use STYLEITEM AUTO if you specify
style for the labels?

Bye
Zoltan

On Fri, 7 Jan 2005, Dan Phillips wrote:

> I'm new to Mapserver and am having trouble getting labels to display on my
> map. Everything works fine... no errors, just no labels. The text from my
> map file is below. Any ideas on what might be wrong?
>
> Thank you,
>
> Dan
>
>
> IMAGETYPE jpeg
> SIZE 800 600
> SYMBOLSET "c:/ms4w/etc/symbols_mapinfo.sym"
> FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
> STATUS ON
> EXTENT 610004 4227375 636669 4247374
> UNITS METERS
> SHAPEPATH "/test/"
> IMAGECOLOR 255 255 255
>
> WEB
>    TEMPLATE  "C:/ms4w/Apache/htdocs/test/40242.html"
>    IMAGEPATH "/ms4w/tmp/ms_tmp/"
>    IMAGEURL  '/ms_tmp/'
> END
>
> PROJECTION
>  "init=epsg:26916"
> END
>
>     LAYER
>         NAME "KYJeffW"
>         Type LINE
>
>           PROJECTION
>             "init=epsg:4326"
>           END
>
>         STATUS DEFAULT
>         CONNECTIONTYPE OGR
>         CONNECTION "R:/STREETS/KY/WATER.TAB"
>         STYLEITEM "Auto"
>         CLASS
>         NAME "2"
>         END
>     END
>
>     LAYER
>         NAME "Streets"
>         Type LINE
>
>         PROJECTION
>           "init=epsg:4326"
>         END
>
>         STATUS DEFAULT
>         CONNECTIONTYPE OGR
>         CONNECTION "R:/STREETS/KY/STREETS.TAB"
>         STYLEITEM "Auto"
>
>             LABELITEM "name"
>             LABELMAXSCALE 30000
>             CLASS
>                 Name 'road_labels'
>                 LABEL
>                     TYPE TRUETYPE
>                 FONT "arial"
>                     SIZE 7
>                     MINSIZE 4
>                     MAXSIZE 256
>                 POSITION CC
>                     ANGLE AUTO
>                 BUFFER 2
>                     MINDISTANCE 150
>                     MINFEATURESIZE 20
>                 COLOR 100 50 0
>                     SHADOWCOLOR 0 0 0
>                 SHADOWSIZE 0 0
>                     PARTIALS FALSE
>                 END
>             END # Class
>
>     END
>
> END
>



More information about the mapserver-users mailing list