[Gdal-dev] osgDEM, GDAL and defenestration

Steve Schneider funfacts2001 at yahoo.com
Thu Jan 25 20:03:37 EST 2007


I'm pulling my hair out trying to get osgdem or gdal or rudolf the red nosed reindeer to successfully add a texture into something that looks like dirt.  I'm not a 3D programmer or a GIS spatial type - so if I use the wrong technical terms in the wrong place it's not because I'm trying to look smarter than I am, it's because I'm dumber than I look.
   
  I can create a very cool looking (and thanks to all who have gone before me to make it work) terrain mesh in OSG.  But the ONLY texture file that seems to work is the geoTIFF DEM file itself.  Can someone _please_ outline a process - command line options or utility programs or whatever - to combine the two files into a terrain mesh that looks like dirt.  Please use small words - to borrow a phrase - I'm a bear of very tiny brain.
   
  What follows is the technical mumbo-jumbo of the two files in question:
   
  C:\Source\Map\GDAL\FWTools1.1.3\bin>gdalinfo C:\Source\Map\SmallSalem.tif
Driver: GTiff/GeoTIFF
Size is 743, 629
Coordinate System is:
GEOGCS["NAD83",
    DATUM["North_American_Datum_1983",
        SPHEROID["GRS 1980",6378137,298.2572221010002,
            AUTHORITY["EPSG","7019"]],
        AUTHORITY["EPSG","6269"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4269"]]
Origin = (-123.097222000000000,44.967592600000003)
Pixel Size = (0.000092592592600,-0.000092592592600)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.11 $ $Date$
  TIFFTAG_XRESOLUTION=1
  TIFFTAG_YRESOLUTION=1
  TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Corner Coordinates:
Upper Left  (-123.0972220,  44.9675926) (123d 5'50.00"W, 44d58'3.33"N)
Lower Left  (-123.0972220,  44.9093519) (123d 5'50.00"W, 44d54'33.67"N)
Upper Right (-123.0284257,  44.9675926) (123d 1'42.33"W, 44d58'3.33"N)
Lower Right (-123.0284257,  44.9093519) (123d 1'42.33"W, 44d54'33.67"N)
Center      (-123.0628239,  44.9384722) (123d 3'46.17"W, 44d56'18.50"N)
Band 1 Block=743x2 Type=Float32, ColorInterp=Gray
   
  C:\Source\Map\GDAL\FWTools1.1.3\bin>gdalinfo C:\Source\Map\SmallSat.png
Driver: PNG/Portable Network Graphics
Size is 34, 39
Coordinate System is `'
Metadata:
  Creation_Time=01/25/07
  Software=Macromedia Fireworks 8
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,   39.0)
Upper Right (   34.0,    0.0)
Lower Right (   34.0,   39.0)
Center      (   17.0,   19.5)
Band 1 Block=34x1 Type=Byte, ColorInterp=Red
Band 2 Block=34x1 Type=Byte, ColorInterp=Green
Band 3 Block=34x1 Type=Byte, ColorInterp=Blue
Band 4 Block=34x1 Type=Byte, ColorInterp=Alpha
  C:\Source\Map\GDAL\FWTools1.1.3\bin>pause
   
  
Main Entry: de·fen·es·tra·tion 
Pronunciation: (")dE-"fe-n&-'strA-sh&n
Function: noun
Etymology: de- + Latin fenestra window
1 : a throwing of a person or thing out of a window
2 : a usually swift dismissal or expulsion
   


-Steve Schneider
 
---------------------------------
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070125/1b463d4a/attachment.html


More information about the Gdal-dev mailing list