[Gdal-dev] Problem transforming PNG, BMP, JPEG datasets using GDALWarp API

Frank Warmerdam warmerdam at pobox.com
Mon Apr 19 15:38:18 EDT 2004


Brian Marchand wrote:
> Hello,
> 
> I’ve come across a problem where PNG, BMP, and JPEG datasets are zeroed 
> out during a GDALWarp transform. I’m not sure if other formats do this, 
> but I’ve seen this happen on these types. I have no problem with TIFF 
> files so as a temporary work around for these types; I copy them to 
> geotiff datasets before the transform. I’d prefer not to do this, so I’m 
> wondering if anyone else has seen this and if this is a bug or am I 
> missing a step. No errors are generated during the warp setup and execution.

Brian,

I'm not sure how you are warping directly to PNG or JPEG.  These are both
"createcopy" formats, that have to be written out sequentially from an
input file.  The warper cannot normally use these formats at all as direct
output formats.  How did you?

Can you provide a specific example demonstration with the gdalwarp
commandline program?  If so, could you file it in bugzilla?

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    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list