Non-clipped polygon annotation

Steve Lime Steve.Lime at DNR.STATE.MN.US
Wed Dec 19 13:46:11 EST 2007


By not correct, was it grossly misplaced? I'll actually look at the source to see why that
might be. I would have expected  msPolygonLabelPoint()  to produce a label point in
map coordinates and then that would have to be converted to image coordinates before
use.

Steve

>>> On 12/19/2007 at 12:38 PM, in message <4769653F.9010806 at project10.net>, Shawn
Gervais <project10 at PROJECT10.NET> wrote:
> Steve Lime wrote:
>> You tried running msPolygonLabelPoint() on the raw shape then? What was the 
> issue?
> 
> Yeah, I tried this sequence:
> 
> - msPolygonLabelPoint() on the unadulterated shape. While it did not 
> error, it produced a label point that was not correct.
> - msClipShape(), msTransformShape() as normal
> 
> What I ended up needing to do, to get msPolygonLabelPoint to produce an 
> annopoint that was within my visible bbox, was:
> 
> - msTransformShape()
> - msPolygonLabelPoint()
> - .. but now I can't run msClipShape() as that mangles the shape (my 
> polys were reduced to 0 numlines)
> 
> So you can see my problem -- I can't get the label point for a shape 
> before transforming it, but I can't transform it before clipping it lest 
> I destroy the shape.
> 
> -Shawn



More information about the mapserver-dev mailing list