[mapserver-users] annotation symbol with label and labelpoy

Makoto Niwa niwa at orkney.co.jp
Mon Dec 19 22:07:15 EST 2011


Hello everyone,

I have a label problem in MapServer 6.0.1
I cannot get corrct label image in annotation layer with symbol,label
and labelpoly - backgound color.(see attached image label_error.jpg)

Layer definition in mapfile as follows.
LAYER
  NAME "RND"
  DATA "Road/road_rnd_13.shp"
  STATUS DEFAULT
  TYPE ANNOTATION
  PROJECTION "init=epsg:4612" END
  MAXSCALE 50000
  LABELITEM "NAME_KANJI"
  CLASSITEM "SIGNAL_F"

  CLASS NAME "RND" EXPRESSION "1"
   STYLE SYMBOL "027" END 
   LABEL PRIORITY 6 TYPE TRUETYPE POSITION AUTO OFFSET -5 -5 MINDISTANCE 50 PARTIALS FALSE FONT gothic COLOR 255 255 255 SIZE 8 ENCODING SJIS STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 85 170 END END
  END

I make a patch for this problem. 
Then I can get correct label image(attached image label_patched.jpg).
But this patch is not testing for many cases.

regaeds,

makoto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: label_patched.jpg
Type: image/jpeg
Size: 9078 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111220/e82edcea/label_patched.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: label_error.jpg
Type: image/jpeg
Size: 8574 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111220/e82edcea/label_error.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotation_symbol_w_label.patch
Type: application/octet-stream
Size: 1169 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111220/e82edcea/annotation_symbol_w_label.obj


More information about the mapserver-users mailing list