Hi Michael.

I have had to resort to storing center location and scale in order to handle a 
similar thing in the past. With that in mind perhaps getDisplayArea() is no 
longer useful?

Jody


On 11/05/2010, at 10:21 PM, Michael Bedward wrote:

> Hello all,
> 
> I've added the facility to rotate a map displayed in a JMapPane (in
> the 'swing-refactor' branch code) and now I'm wondering what is the
> most useful thing for JMapPane.getDisplayArea() to return when a
> non-zero rotation is applied ?
> 
> I see the docs for the RendererUtilities.createMapEnvelope method
> include this statement:
> "The affine transform may specify an rotation, in case the envelope
> will encompass the complete (rotated) world polygon"
> 
> But take this example of a square polygon rotated clockwise 30 degrees...
> http://imagebin.org/96422
> 
> The expertly drawn blue lines mark the (rotated) world envelope of the
> display area, only half of which is within the pane's bounds.
> Returning that envelope doesn't seem very useful.
> 
> I'd appreciate any ideas.
> 
> cheers
> Michael
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel


------------------------------------------------------------------------------

_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to