Hi Martin and LepiMarbois!

I've got the same problem. I already posted a similar question, but don't
get a concrete answer... Please Martin can you post in the list when a new
release with the fix that you talk about will done?
Thanks a lot!


Martin Desruisseaux wrote:
> 
> LepiMarbois a écrit :
>> AffineTransform world2screen = RendererUtilities.worldToScreenTransform(
>> worldwg84, m_mapPane.getBounds(),Projections.getCRS(Projections.WGS84));
> 
> 
> I don't know if RendererUtilities.worldToScreenTransform(...) is reliable.
> The 
> mouse coordinates is relative to the coordinate system as defined by 
> Graphics2D.getTransform(), and Swing put a translation in this transform.
> The 
> translation depends on the size of windows border. It may be taken in
> account in H
> the (x,y) value of the Rectangle given by getBounds(), but I'm not sure if
> it is 
> the same translation. A safer approach is to work with the AffineTransform
> used 
> with Graphics2D, but I don't know if the streaming renderer keep this kind
> of 
> information.
> 
> We are in the process of rewriting the renderer from scratch, and this
> renderer 
> should provides much better support of CRS and this kind of transforms.
> But it 
> may take a few months before we get something.
> 
>       Martin
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Accuracy-of-screen-to-world-position-transformations-tp1942552p2129622.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to