[gdal-dev] Is their a way by using the bounding box and the png to convert it into a geotiff?

Even Rouault even.rouault at mines-paris.org
Sun Jan 10 11:02:09 EST 2010


John,

You should rather use "gdal_translate -a_srs EPSG:4326 -a_ullr ulx uly 
lrx lry src.png dst.tif" to set the coordinates of the upper left (ulx, 
uly) and lower right corners (lrx,lry) of your PNG. See 
http://gdal.org/gdal_translate.html

John Mitchell a écrit :
> When trying to convert a png to geotiff which is listed below:
>
> /gdalwarp -s_srs epsg:4326 -t_srs
>  epsg:4326 "C:\Documents and 
> Settings\jmitchell.INSEQUENCE2\Desktop\ows2121.png"
>  "C:\Documents and Settings\jmitchell.INSEQUENCE2\Desktop\ows2121.tif"/
>
> I get the following error:
>
> /ERROR 1: Unable to compute a transformation between pixel/line
> and georeferenced coordinates for C:\Documents and 
> Settings\jmitchell.INSEQUENCE
> 2\Desktop\ows2121.png.
> There is no affine transformation and no GCPs./
>
> I have the coordinate bounding box that was used to create the 
> original png.
>
> Is their a way by using the bounding box and the png to convert it 
> into a geotiff?
>
> Thanks,
>
> John
>
>
>
>
> -- 
> John J. Mitchell
> ------------------------------------------------------------------------
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev




More information about the gdal-dev mailing list