[gdal-dev] gdal_translate JPEG to GeoTiff (help! no one answered...)

Marco Afonso taviroquai at gmail.com
Thu Jan 14 06:04:21 EST 2010


Hi all,

I'm new to gdal tools.

I'm trying to transform a JPEG world image to GeoTiff.

My jpeg world map image is cropped to fit on -180.0, -59.1, 180, 90 (minx,
miny, maxx, maxy - EPSG:4326).

Here are the steps:

% gdal_translate -of GTiff -a_srs EPSG:4326 -co "TILED=YES" -co
"JPEG_QUALITY=100" worldmap_hires2.jpg worldmap2.tif
Input file size is 15000, 6225
0...10...20...30...40...50...60...70...80...90...100 - done.
% sudo gdalinfo worldmap2.tif
Driver: GTiff/GeoTIFF
Files: worldmap2.tif
Size is 15000, 6225
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235629972,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.017964071749986,59.117964071850004)
Pixel Size = (0.035928143500000,-0.035928143700000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (-180.0179641,  59.1179641) (180d 1'4.67"W, 59d 7'4.67"N)
Lower Left  (    -180.018,    -164.535) (180d 1'4.67"W,164d32'5.03"S)
Upper Right (     358.904,      59.118) (358d54'15.08"E, 59d 7'4.67"N)
Lower Right (     358.904,    -164.535) (358d54'15.08"E,164d32'5.03"S)
Center      (  89.4431122, -52.7083832) ( 89d26'35.20"E, 52d42'30.18"S)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue

Corners are not what i want. I would like to obtain -180.0, -59.1, 180, 90
(minx, miny, maxx, maxy).

I'm using ubuntu 9.10 and the package gdal-bin 1.6.3-1

It there any problem with my image? What should I do?

Thanks in advance,
Marco



-- 
Best regards,
Marco Afonso
___________________________________
The soul is much more than the sum of all body parts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100114/5e0c3e09/attachment.html


More information about the gdal-dev mailing list