[mapserver-users] How to use ANNOTATION layer in combination with RASTER data?
Jorrit Goddijn
Jorrit.Goddijn at meteogroup.com
Tue Jun 3 05:01:53 PDT 2014
Hi all,
I try draw an ANNOTATION type layer based on RASTER type layer. When doing this based on a shape file I would set the LABEL item on the ANNOTATION layer to be attribute used in the shapefile.
What LABELITEM should I use when using RASTER data?
I posted the Mapfile I have so far hereunder.
Thank you for your help.
Bye
Jorrit
#----------------------------------------------------------------------------
#grib wave direction layer example
#----------------------------------------------------------------------------
LAYER
NAME "grib_data"
TYPE RASTER
DATA "/var/www/mapserver/data/grib/routeguard/4nwcurpol99_2013110412.grb2" #Current direction @ Mean sea level
PROCESSING "BANDS=1"
PROCESSING "SCALE=0,360" #scale all degrees
PROJECTION
"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360"
END
END
#---------------------------------------------------------------------------
# the annotation layer
#---------------------------------------------------------------------------
LAYER
NAME "grib_label"
DATA "grib_data"
STATUS OFF
TYPE ANNOTATION
CLASSITEM "CLASS" # do I need it?
LABELITEM "VAR_10-1-0_L101" #what variable name to use?
CLASS
EXPRESSION [VAR_10-1-0_L101] #gives parse error
STYLE
COLOR -1 -1 -1
END
LABEL
COLOR 132 31 31
TYPE TRUETYPE
FONT arial-bold
SIZE 12
ANTIALIAS TRUE
POSITION CL
PARTIALS FALSE
MINDISTANCE 300
BUFFER 4
END # end of label
END # end of class
END # annotation layer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140603/4727b39f/attachment.htm>
More information about the MapServer-users
mailing list