[gdal-dev] gdalwarp rather than gdal_translate

Frank Warmerdam warmerdam at pobox.com
Tue Feb 12 17:47:30 EST 2008


Diana Esch-Mosher wrote:
> I looked at gdalwarp and I see where it checks to see if the destination 
> file exists, if so then it reads the TargetSRS from that dataset. So I 
> should pre-create to the target size that I am requesting in gdalwarp? I 
> have no problem in python  pre-creating the file, copying the metadata, 
> geotransform, and projection data ... anything else I should copy? Then 
> I just call gdalwarp as gdalwarp -rcs -ts x y -of  NITF (or any other 
> -of  I want).

Diana,

Right, except of course you don't specify parameters used to create the
file (like -of or -ts).

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list