[Mapserver-users] Labeling polygon features 'without center'

Daniel Morissette morissette at dmsolutions.ca
Mon Jul 28 15:01:21 EDT 2003


Vinko Vrsalovic wrote:
> 
> 	I'm adding polygon features (through $layer->addFeature()), and
> 	I'm setting the text attribute to the feature to label it. My
> 	problem occurs when there is no part of the polygon in the
> 	center of the bounding box, say a V or C shaped polygon, the
> 	label does not appear, when there is part of the polygon in the
> 	center of the bounding box it appears alright. I've tried setting the
> 	position attribute but it has no effect on features, it seems.
> 

I'm not sure if that's what you ran into, but there was a problem with 
the label position calculation that was fixed not long ago:
  http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=356
perhaps you should try the latest 4.0 from CVS.

-- 
------------------------------------------------------------
  Daniel Morissette               morissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list