Hello Davis In the WarpTransform2D constructor, the integer argument (which is 0 in the posted code) should be some positive value, typically between 1 and 7. The value depends on the degree of the WarpTransform2D you want. The degree you can afford depends on the amount of points you have.
I would suggest a degree 2, which requires at least 6 points (actually I noticed that WarpTransform doesn't work well when you have the minimal amount of points, so I would suggest at least 10 points). The remainder seems okay. Just to be sure, the ReferencedEnvelope should be in the same units than the source points. So if you source points are pixel coordinates, then the ReferencedEnvelope should be pixel coordinates also. I think it is already the case in your code; just wanted to be sure. Later one, you invoke coverage.getRenderableImage(0,0). It should rather be getRenderableImage(0,1). An alternative is to cast to GridCoverage2D: RenderedImage image = ((GridCoverage2D) coverage).getRenderedImage(); Martin ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel