Non-clipped polygon annotation
Shawn Gervais
project10 at PROJECT10.NET
Wed Dec 19 13:57:16 EST 2007
Steve Lime wrote:
> 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.
I can't speak to WHY it's doing this, but here are my results using both
methods. Again, I have only seen it work if I transform the shape prior
to finding the annopoint.
msDrawShape(): Annopnt w/o shape transform: 1365041135,-1067528502
msDrawShape(): Annopnt with shape transform: 1549306947,1080281924
msDrawShape(): Annopnt w/o shape transform: 1603910022,-1067528883
msDrawShape(): Annopnt with shape transform: -1767386069,1081115351
msDrawShape(): Annopnt w/o shape transform: 275425048,-1067530266
msDrawShape(): Annopnt with shape transform: 77560101,1082409898
These are for POLYGON layers. As you can see, when I tried to draw
without a transform the label was drawn nowhere close to my viewport.
-Shawn
More information about the mapserver-dev
mailing list