Martin Desruisseaux-2 wrote: > > What about using java.awt.geom.GeneralPath instead of Polygon? > > Martin >
Using GeneralPath I finally got a ROI. BUT if I use e.g. a RandomIter to access the grid's pixels, the ROI's coordinates are obviously not compareable to the image coordinates. There is still the fundamental problem: how to combine pixel coordinates with polygon coordinates. Either I get geographic coordinates of the pixels to compare them to the polygon, or I transform the polygon's geographic coordinates to image coordinates and compare them to the location of the pixels. I don't see another solution. Christian -- View this message in context: http://www.nabble.com/Get-world-coordinates-of-a-grid-coverage-tp17879556p18006014.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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
