|
|
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. |
|
There is no answer at this time. |
|
There are no comments at this time. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |