Adrian Custer ha scritto:
> Hey,
> 
> It's my impression that you are out of luck for simple solutions since
> the renderer that JMapPane uses was not built to simply concatenate a
> string of transforms. That would have allowed you to simply add on one
> more affine transform and still be able to remap both data to your pane
> and mouse-clicks back to features. As things now stand, it will be hard
> to rotate your rendering and have things work out correctly---apparently
> people have tried before and things were weird. 

Off the top of my head it seems one just need to chain a rotation
transform to the transformation that is provided to
StreamingRenderer.process(...), without touching the transform
that gets passed to processStylers (since it's apparently used
for querying the database as well).

However, haven't tried, things could be hairier than this.

Out of curiosity... why do people want to rotate maps? Maybe
I'm just used to projections that leave the northwards direction
"up"... I know for sure that I would have some troubles locating
my house in my town map if someone rotated the map so that
north points "down"...

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to