[gdal-dev] gdalwarper --formats inconsistent with -of flag?

Chaitanya kumar CH chaitanya.ch at gmail.com
Fri Nov 19 04:30:13 EST 2010


Sam,

I too noticed this problem. I'm not sure of the reason other than the error
message.
You can get this done in two steps.
First use gdalwarp to change the image size to 256x256 using bilinear
resampling into a GTiff format image.
Then use gdal_translate it from GTiff to PNG.

On Fri, Nov 19, 2010 at 1:24 PM, <ariasgore at gmx.de> wrote:

> Hello,
>
> I have issues generating pngs out of gdalwarper.
>
> I did the following:
> $ gdalwarper.exe --formats
>
> One of the lines was:
> PNG (rwv): Portable Network Graphics
> So reading and writing png works!
> Here complete list dump http://pastebin.com/ZRS2nZir
>
> Then I tried
> gdalwarp.exe -ts 256 256 -of PNG -r bilinear "utm32.tif"
> "d:/thumb_gdal.png"
>
> and it failed with:
> Output driver `PNG' not recognised or does not support
> direct output file creation.  The following format drivers are configured.
> Then it dumped a list of supported extension and no PNG was found.
> Here is the list: http://pastebin.com/wsD3rD7f
>
> Why is there an inconsistency between them?
>
>
> (GDAL 1.7.1, Win XP)
> --
> GMX DSL Doppel-Flat ab 19,99 &euro;/mtl.! Jetzt auch mit
> gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101119/a0cc5ac6/attachment.html


More information about the gdal-dev mailing list