Hi list,

given a GridCoverage2D and a rectangle (derived from the bouning box  
of a polygon), what is the best way to get the world/geographic  
coordinates of the pixels the rectangle contains?

I think about a two step process:

1. Crop the grid to the rectangle.
2. Calculate the world coordinates using the information about the  
grid (upper left corner location and resolution) and the pixel  
coordinates.

But this is not realy straightforward, is it?

The first step is only appropriate, if there is one rectangle  
(polygon). But if there are several rectangles...?
The second step is some kind of a workaround. I wonder if there is a  
direct way to derive world coordinates from a pixel, e.g. for a  
cooperative use with a RectIter?

What do you think?

Christian

-------------------------------------------------------------------------
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

Reply via email to