Google Answers Logo
View Question
 
Q: geotools 2 coordinate system transformation AffineTransform Envelope ( No Answer,   0 Comments )
Question  
Subject: geotools 2 coordinate system transformation AffineTransform Envelope
Category: Computers > Software
Asked by: innertube-ga
List Price: $40.00
Posted: 23 Jun 2006 05:14 PDT
Expires: 23 Jul 2006 05:14 PDT
Question ID: 740461
I loaded a shapefile in geotools 2. I displayed it in a renderer. If I
output the polygons of the renderer's maplayer, the absolute values of
the coordinates are in the neighborhood of 2e6. I want to filter those
polygons with respect to a point. If I create a point manually with
one of the coordinates from the polygons (2e6) it works fine. However
if I create a point based on a mouseclick by using an AffineTransform
created from the envelope (same as getbounds on the collection of
polygons) the point turns out to have x,y absolute values in the range
of 80. While such a point displays OK on the screen it is incompatible
with the polygons (2e6) for purposes of filtering.

What AffineTransform should I be using to go from screen coordinates
to MapLayer coordinates (e.g. 640x480 --> 2*10^6, 8*10^5) There must
be a different way to get an Envelope.

I will be out of town for a few days.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy