On Thu, Mar 26, 2009 at 8:24 AM, Jim Klassen <[email protected]> wrote: > I'm trying to do some aerial photo processing specifically converting RAW > imagery to DOQs. Right now I have working code that uses GDAL to read/write > the rasters and uses my own code to do the actual image processing. I would > like to use the Warp API so I can take advantage of the ChunkAndWarpImage > method, in particular, it's ability to break the problem down into chunks > that will fit into memory. > > The problem I am facing is I can't write the part of the transformer function > that converts from destination to source coordinates because the destination > coordinate could occur nearly anywhere in the source image and likely will > occur more than once. (The source data is from a push broom sensor so each > scan line in the image has a different transformation depending on where the > plane was and how it was orientated when the scan line was recorded.) From > what I can gather, the Warp API is doing this to determine which part(s) of > the source image it needs to grab to fill the destination image. In my case, > I know that I will want to use the entire source image and have already > calculated from the source image the extents destination image, but I don't > see a way to tell this to the Warp API. > > So my question: Is there a way to get the Warp API to skip trying to discover > the required source image extents or is there a way to write the transformer > function to trick the Warp API into just using the entire source image > without the transformation having to be mathematically rigorous?
Jim, It doesn't help to tell the warp api that you want the whole input image if you are wanting to take advantage of the chunking logic. However, it would likely not be important that you reverse transform be rigerous if you set the SOURCE_EXTRA warp option large enough to account for any likely error. http://www.gdal.org/structGDALWarpOptions.html#0ed77f9917bb96c7a9aabd73d4d06e08 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [email protected] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
