2009/5/25 Preciado Venero, Abel wrote:
> Hello, some solution of this problem?
>
Yes, sorry Abel. Contrary time zones sometimes mean you don't get a
split-second response on the list :-)
Assuming that, as Simone said, your image is properly rectified etc.
MathTransform mt;
SimilarTransformBuilder stb = new SimilarTransformBuilder(listaPosi);
try {
mt = stb.getMathTransform();
} catch (FactoryException ex) {
System.out.println(ex.getMessage());
return; // or whatever
}
// get world coords of image corner at location 0,0
DirectPosition img0 = new DirectPosition2D(0, 0);
DirectPosition world0 = new DirectPosition2D();
try {
mt.transform(img0, world0);
} catch (Exception ex) {
System.out.println(ex.getMessage());
return; // or whatever
}
System.out.println("World coords of corner: " + world0.toString());
Hope this helps
Michael
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users