Displaying annotation layer

Sara Yurman syurman at spatialfocus.com
Mon Oct 2 10:07:16 EDT 2000


Hi Yee Wen,

You want to tell the class object to generate a label.  Try it this way:

LAYER
  NAME label
  DATA label
  TYPE ANNOTATION
  LABELITEM "TEXT"
  CLASSITEM "ID"
  CLASS
     LABEL
      EXPRESSION "1"   # object ID=1 will have black text
      COLOR 0 0 0
     END
  END
 END

Hope that helps,

Sara

> Yeewen Sat wrote:
> 
> Hi,
> I'm new to mapserver.
> 
> I'm trying to create a layer that will display annotation.
> I have label.shp label.shx and label.dbf files. label.shp contains
> point objects, and label.dbf has a "TEXT" field that stores the text
> and ID that allows me to identify the text objects.  I tried doing
> something like this in my map file:
> 
> 
> LAYER
>  NAME label
>  DATA label
>  TYPE ANNOTATION
>  LABELITEM "TEXT"
>  CLASSITEM "ID"
>  CLASS
>    EXPRESSION "1"   # object ID=1 will have black text
>    COLOR 0 0 0
>  END
> END
> 
> I thought this will display the text...but it doesn't. All I need is
> to display the annotation at the coordinates specified in label.shp (a
> point object file)
> 
> Can someone please help?
> 
> Thanks in advance.
> 
> --
> Yee Wen
> 
> 

-- 
Sara Yurman
Spatial Focus, Inc.
syurman at spatialfocus.com
Voice: 404-378-0989 	Fax: 209-254-9531
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syurman.vcf
Type: text/x-vcard
Size: 326 bytes
Desc: Card for Sara Yurman
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20001002/d66e7ba1/syurman.vcf


More information about the mapserver-users mailing list