[gdal-dev] gdal_translate gif->gtiff warning

Dori izzybitsie at gmail.com
Tue Mar 29 12:22:10 EDT 2011


Hi,
I am trying to convert this GIF
https://picasaweb.google.com/izzybitsie/GDALImage?feat=directlink<http://aviationweather.gov/data/products/swl/ll_12_0_cl_new.gif>to
gtiff.
I used this command after assuming projection was lcc:
*gdal_translate -of GTiff -a_srs '+proj=lcc +lon_0=-95 +lat_0=25 lat_1=25'
-a_ullr $ulx $uly $lrx $lry ../maps/my_image.gif ../maps/my_image.tif *

If I try to view the image using ImageMagick I can see it but I get a
warning about TiffReadDirectory field tag 42112 encountered.  If I try to
view the same image with a proprietary software then, I get the same warning
but I am not able to see the image.
I used GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03.

The info for  my_image.tif:

Input file size is 864, 526
0...10...20...30...40...50...60...70...80...90...100 - done.
[isidora at SJC1871DVML PY]$ display
[isidora at SJC1871DVML PY]$ gdalinfo my_image.tif
Driver: GTiff/GeoTIFF
Files: my_image.tif
Size is 864, 526
Coordinate System is:
PROJCS["unnamed",
    GEOGCS["WGS 84",
        DATUM["unknown",
            SPHEROID["unnamed",6378137,298.2572235629972]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Lambert_Conformal_Conic_1SP"],
    PARAMETER["latitude_of_origin",25],
    PARAMETER["central_meridian",-95],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (-135.000000000000000,44.000000000000000)
Pixel Size = (0.070601851851852,-0.045627376425856)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (-135.0000000,  44.0000000) ( 95d 0'4.81"W, 25d 0'1.43"N)
Lower Left  (-135.0000000,  20.0000000) ( 95d 0'4.81"W, 25d 0'0.65"N)
Upper Right ( -74.0000000,  44.0000000) ( 95d 0'2.64"W, 25d 0'1.43"N)
Lower Right ( -74.0000000,  20.0000000) ( 95d 0'2.64"W, 25d 0'0.65"N)
Center      (-104.5000000,  32.0000000) ( 95d 0'3.73"W, 25d 0'1.04"N)
Band 1 Block=864x9 Type=Byte, ColorInterp=Palette
  Metadata:
    GIF_BACKGROUND=0
  Color Table (RGB with 256 entries)
    0: 0,0,0,255
    1: 0,255,255,255
    2: 153,153,102,255
    3: 204,204,204,255
    4: 255,0,0,255
    5: 51,153,204,255
    6: 51,204,51,255
    7: 255,255,255,255
    8: 255,255,0,255
    9: 0,0,255,255
   10: 0,0,0,255
   11: 0,0,0,255
   12: 0,0,0,255
   13: 0,0,0,255
   14: 0,0,0,255
   15: 0,0,0,255
   16: 0,0,0,255
   17: 0,0,0,255
   18: 0,0,0,255
   19: 0,0,0,255
   20: 0,0,0,255
   21: 0,0,0,255
   22: 0,0,0,255
   23: 0,0,0,255
   24: 0,0,0,255



.......
and the color table keeps going here

I cannot upload this image to Picasa, but if needed I'll look for a file
server.


Q1: is there any easy way to find out if this warning is caused because I am
using the wrong projection?
Q2: Does the command I am using look OK?
Q3: How do I get rid of the warning to try viewing the image with the
proprietary software?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110329/902dba40/attachment.html


More information about the gdal-dev mailing list