[gdal-dev] Worldfile creation inconsistency with gdal_translate

Michael Sumner mdsumner at gmail.com
Fri Oct 29 06:13:47 EDT 2010


Try spelling the option correctly (both in the argument and in your report):

gdal_translate -of JPEG -co WORLDFILE=YES -a_srs EPSG:27700 HP40SE.tif
F:\geo_streetview\jpg\HP40SE.jpg

HTH

On Fri, Oct 29, 2010 at 8:59 PM, NeilJ <neil.jakeman at findmaps.co.uk> wrote:
>
>
>
> Please can someone explain to me why I get the message "Waring 6: Driver
> JPEG does not support WORDFILE creation option" when using gdal_translate on
> a windows command line (FW Tools 2.4.7), when running:
> gdal_translate -of JPEG -co WORDLFILE=YES -a_srs EPSG:27700 HP40SE.tif
> F:\geo_streetview\jpg\HP40SE.jpg
>
> The tif in question has the following details:
>
> Driver: GTiff/GeoTIFF
> Files: HP40SE.tif
> Size is 5000, 5000
> Coordinate System is:
> PROJCS["unnamed",
>    GEOGCS[,
>        DATUM["unknown",
>            SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
>        PRIMEM["Greenwich",0],
>        UNIT["degree",0.0174532925199433]],
>    UNIT["metre",1,
>        AUTHORITY["EPSG","9001"]],
>    AUTHORITY["EPSG","27700"]]
> Origin = (445000.000000000000000,1205000.000000000000000)
> Pixel Size = (1.000000000000000,-1.000000000000000)
> Metadata:
>  AREA_OR_POINT=Area
> Image Structure Metadata:
>  COMPRESSION=DEFLATE
>  INTERLEAVE=PIXEL
> Corner Coordinates:
> Upper Left  (  445000.000, 1205000.000)
> Lower Left  (  445000.000, 1200000.000)
> Upper Right (  450000.000, 1205000.000)
> Lower Right (  450000.000, 1200000.000)
> Center      (  447500.000, 1202500.000)
> Band 1 Block=5000x1 Type=Byte, ColorInterp=Red Band 2 Block=5000x1
> Type=Byte, ColorInterp=Green Band 3 Block=5000x1 Type=Byte, ColorInterp=Blue
>
> I am very confused by the worldfile=yes option as I have used it before on
> other conversions without a problem.
>
> Any advice on when and why this does/doesn't work?
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Worldfile-creation-inconsistency-with-gdal-translate-tp5685831p5685831.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner at gmail.com


More information about the gdal-dev mailing list