Hi Abhishek,

I can't recall off the top of my head the gdal command options you
require, so to answer your question would have to head over to the
gdal website and read up on the commands... So it would be quicker to
just go check out the gdal website out yourself, there'll do a much
better job of explaining the usage and background functionality than I
ever could.

Robert

On Fri, Jun 10, 2011 at 4:54 AM, abhishek agarwal
<abhishek0agar...@gmail.com> wrote:
> Hi,
>
> I have a .dem file which i'm using as height and .tif file as texture. Height 
> file has latitude and longitude coordinate system but texture file do not. I 
> want to create .osg file combining both using osgdem... -cs "+proj=latlong 
> +datum=WGS84" -o ...   but its giving some error..
>
> Should both files(height & texture) contain same coordinate system(geogcs) 
> for me to able to use osgdem, for i want to retrieve latitude and longitude 
> data at each point of the terrain?
>
> I have given the output of gdalinfo of both files down. Can you help me with 
> gdal(command) to convert texture file to same coordinate system as height 
> file so that i can use them to create .osg file using osgdem and then extract 
> latitude&longitude data for each poit on the terrain.
>
>
> height file::
>
> Driver: USGSDEM/USGS Optional ASCII DEM (and CDED)
> Size is 1802, 1802
> Coordinate System is:
> GEOGCS["WGS 84",
>    DATUM["WGS_1984",
>        SPHEROID["WGS 84",6378137,298.257223563,
>            AUTHORITY["EPSG","7030"]],
>        TOWGS84[0,0,0,0,0,0,0],
>        AUTHORITY["EPSG","6326"]],
>    PRIMEM["Greenwich",0,
>        AUTHORITY["EPSG","8901"]],
>    UNIT["degree",0.0174532925199433,
>        AUTHORITY["EPSG","9108"]],
>    AXIS["Lat",NORTH],
>    AXIS["Long",EAST],
>    AUTHORITY["EPSG","4326"]]
> Origin = (75.749861111111116,34.750416666666666)
> Pixel Size = (0.000277777777778,-0.000277777777778)
> Metadata:
>  AREA_OR_POINT=Point
> Corner Coordinates:
> Upper Left  (  75.7498611,  34.7504167) ( 75d44'59.50"E, 34d45'1.50"N)
> Lower Left  (  75.7498611,  34.2498611) ( 75d44'59.50"E, 34d14'59.50"N)
> Upper Right (  76.2504167,  34.7504167) ( 76d15'1.50"E, 34d45'1.50"N)
> Lower Right (  76.2504167,  34.2498611) ( 76d15'1.50"E, 34d14'59.50"N)
> Center      (  76.0001389,  34.5001389) ( 76d 0'0.50"E, 34d30'0.50"N)
> Band 1 Block=1802x1802 Type=Int16, ColorInterp=Undefined
>  NoData Value=-32767
>  Unit Type: m
>
> texture file::
> Driver: GTiff/GeoTIFF
> Size is 1802, 1802
> Coordinate System is `'
> Metadata:
>  TIFFTAG_SOFTWARE=IrfanView
>  TIFFTAG_XRESOLUTION=762
>  TIFFTAG_YRESOLUTION=762
>  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
> Corner Coordinates:
> Upper Left  (    0.0,    0.0)
> Lower Left  (    0.0, 1802.0)
> Upper Right ( 1802.0,    0.0)
> Lower Right ( 1802.0, 1802.0)
> Center      (  901.0,  901.0)
> Band 1 Block=1802x1 Type=Byte, ColorInterp=Red
> Band 2 Block=1802x1 Type=Byte, ColorInterp=Green
> Band 3 Block=1802x1 Type=Byte, ColorInterp=Blue
>
> Thank you!
>
> Cheers,
> abhishek
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=40322#40322
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to