[gdal-dev] Merging tiff4 files

Andrea Peri aperi2007 at gmail.com
Fri Sep 2 17:40:22 EDT 2011


Hi,
I need to merge some Tiff4 (bw) raster and obtain 1 only more big tiff4
raster.

I'm try-ing this with gdal_merge.py
and using a comand like this:

python gdal_merge.py -o ../raster/216.tif -n 1 -ot Byte
../raster/10k/216*.tif

Unfortunately the resulted raster is intellegible (the input raster was all
clearly visible).
It is an all black image :(

I tried also with option "-n 0" but the result is the same.

I analyze the input raster using gdalinfo, and the result is this.

------------------
>gdalinfo.exe ../raster/10k/216100.tif
Driver: GTiff/GeoTIFF
Files: ../raster/10k/216100.tif
       ../raster/10k/216100.tfw
Size is 10065, 10049
Coordinate System is:
LOCAL_CS["unnamed",
    UNIT["unknown",1]]
Origin = (1561222.860009765700000,4927094.449960937700000)
Pixel Size = (0.500000000000000,-0.500000000000000)
Metadata:
  AREA_OR_POINT=Point
  TIFFTAG_RESOLUTIONUNIT=1 (unitless)
  TIFFTAG_SOFTWARE=Arc/Info
  TIFFTAG_XRESOLUTION=2
  TIFFTAG_YRESOLUTION=2
Image Structure Metadata:
  COMPRESSION=CCITTFAX4
  INTERLEAVE=BAND
  MINISWHITE=YES
Corner Coordinates:
Upper Left  ( 1561222.860, 4927094.450)
Lower Left  ( 1561222.860, 4922069.950)
Upper Right ( 1566255.360, 4927094.450)
Lower Right ( 1566255.360, 4922069.950)
Center      ( 1563739.110, 4924582.200)
Band 1 Block=10065x32 Type=Byte, ColorInterp=Palette
  Image Structure Metadata:
    NBITS=1
  Color Table (RGB with 2 entries)
    0: 255,255,255,255
    1: 0,0,0,255
-----------------

What am I wrong ?

Thx,

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110902/c13985b6/attachment.html


More information about the gdal-dev mailing list