Are you looking for bboxes for all labels, regardless of visibility? Basically 
the label cache itself. It should be possible but I’m not sure how generally 
useful it would be. You can hack maplabel.c to do just this if you’d like to 
play around. That said, that’s just a picture and it won’t be clear what label 
belongs to what feature except for those that were actually drawn.

It might be more useful to access the label cache via MapScript. That way you 
could save and analyze it or whatever. I used to have a script that looped 
through it but I doubt it would work now that single features can have multiple 
labels. It should still be possible though.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Debabrata Pradhan
Sent: Friday, June 06, 2014 1:23 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Label BBox Computation

Hi,
  It has been a regular ask "Why this label is here???Why not there???".
Labels are rendered by different rules for different features.So controlling 
them to perfection
only through programs is difficult. On the other hand it always feels better 
when you can give manual
finishing touch to something.
  So my question is Can we have a switch for getting(printing) the label BBox 
es of the label
in the map.(from maplabel.c)????But again does it worth doing that???I believe
having a knowledge about the positions of labels on the map will enable you to 
play
with interesting things.Like you can store them somewhere and and later you can 
filter out
some of the label which you don't like Or you can shift the Geometry and define 
a new place for
certain label.
  I don't know I may be thinking too much and end up doing nothing but to waste 
time.So, any thoughts
,ideas are greatly appreciated.
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to