Hello:

I got DEM data from INEGI (Mexican Geographic Institute) and convert
it to Geo Tiff.

gdal_translate -of GTiff -co "TILED=YES"
MDE-n200000s190000e0970000o0990000.bil volcanes.tif
gdaladdo -r average volcanes.tif 2 4 8 16 32

gdalinfo volcanes.tif
Warning 1: TIFFReadDirectory:volcanes.tif: Wrong "StripByteCounts"
field, ignoring and calculating from imagelength
Driver: GTiff/GeoTIFF
Files: volcanes.tif
Size is 7200, 3600
Coordinate System is `'
Origin = (-99.000000000000000,20.000000000000000)
Pixel Size = (0.000277777777778,-0.000277777777778)
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( -99.0000000,  20.0000000)
Lower Left  ( -99.0000000,  19.0000000)
Upper Right ( -97.0000000,  20.0000000)
Lower Right ( -97.0000000,  19.0000000)
Center      ( -98.0000000,  19.5000000)
Band 1 Block=256x256 Type=UInt16, ColorInterp=Gray
  NoData Value=0
  Overviews: 3600x1800, 1800x900, 900x450, 450x225, 225x113
Warning 1: TIFFReadDirectory:volcanes.tif: Wrong "StripByteCounts"
field, ignoring and calculating from imagelength


If I try to create the terrain database this way I get only a line
osgdem -d volcanes.tif -l 8  -v 1.0 -o volcanes.ive

so I have to give approximate pixel size with xx and yy and it apparently works.
osgdem --xx 33 --yy 33 -d volcanes.tif -l 8 -v 1.0 -o volcanes.ive

Is there not enough information in the geotiff file? or this is a bug?

Regards,

-- A.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to