[Gdal-dev] projected bounding box
jonathan at intevation.de
Wed Jul 16 04:03:14 EDT 2003
On Mon, 2003-07-14 at 20:29, Frank Warmerdam wrote:
> As Ed mentions this is hard to do completely correctly. The
> GDALSuggestedWarpOutput() is where I have it implemented for the image
> warper applications. This code basically samples 20 points along each edge
> to transform and compute a bounding box. This generally gives good results,
> but objects it can be off a bit or even alot in degenerate situations.
> You might want to glance at gdal/alg/gdaltransformer.cpp::GDALSuggsestedWarpOutput().
Thanks, I'm looking into playing around with different amounts of
sampling in my own code. Seems to be working alright for my test cases.
I'll have to watch out for extreme situations.
Jonathan Coles jonathan at intevation.de
Intevation GmbH http://www.intevation.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20030716/54fafe6d/attachment.bin
More information about the Gdal-dev