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

Vinko Vrsalovic vinko at cprsig.cl
Mon Jul 28 17:57:33 EDT 2003


On Mon, Jul 28, 2003 at 03:01:21PM -0400, Daniel Morissette wrote:
> 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.

The latest 4.0 from CVS solved the issue. Thanks a lot.

-- 
Vinko Vrsalovic <el[|- at -|]vinko.cl>
http://www.cprsig.cl



More information about the mapserver-users mailing list