ChristianG a écrit :
> 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.

Use the MathTransform returned by GridCoverage.getGridGeometry().getGridToCRS() 
for transforming pixel coordinates to geographics coordinates, or 
MathTransform.inverse() for the opposite way. Use the static methods in the CRS 
utility class for transforming a Rectangle using the above MathTransform.


        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

Reply via email to