[Mapserver-users] drawing layers with labels using php

Norbert Thieme norbert.thieme at ilmenau.baw.de
Tue May 4 06:15:12 EDT 2004


publiek at home.nl schrieb:
> Hello,
> 
> How do i draw layers that consist of labels?
> I get a blank image.
> Using php mapscript functions draw, saveWebimage.
> 
> What in the world am i missing?
> 
> Thanks.
> 
> Marcel
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 

Hi,

it would help if you could send your mapfile or parts of it the next 
time. However this thing work in general. You can have a look at my 
layer definition from a simple .shp file.

   LAYER
     NAME         "Ortslage"
     DATA         "ortslage"
     STATUS       DEFAULT

     TYPE         POLYGON
     #TYPE         ANNOTATION # you can use this instead but there could 
be something wrong in the mapscript -> all labels get drawn in my case


     PROJECTION
       "init=epsg:31467"
     END

     LABELITEM             'NAME'
     CLASS
       # COLOR        232 232 232
       # OUTLINECOLOR 32 32 32
       LABEL
         COLOR             100 100 100
	#BACKGROUNDCOLOR   220 220 190
         SHADOWCOLOR       250 250 220
         SHADOWSIZE        1 1
         TYPE              BITMAP
         SIZE              MEDIUM
         BUFFER            15
       END
     END
   END

Did you get a correct image from another layer?

BTW there can also be a problem with your PROJECTION definitions. In 
most cases this is the reason for blank images.

Regards,
Norbert



More information about the mapserver-users mailing list