[osg-users] Display Geotiff image in OSG

Robert Osfield robert.osfield at gmail.com
Thu Nov 17 04:06:59 PST 2016


Hi Uma,

The tiff plugin uses libtiff 3rd party library that doesn't support
geotiff.  The OSG's gdal plugin does support geotiff but isn't loaded
by default as the .tif extension will be mapped to the tiff plugin.

To get the OSG to use the gdal plugin add a .gdal to the image
filename, the gdal plugin will then strip this and then load the image
i.e.

  osgviewer --image myfile.tif.gdal

Robert.

On 17 November 2016 at 11:51, Uma Devi Selvaraj <umaselvam1503 at gmail.com> wrote:
> Hi Sebastain,
>
>       Thanks. As of now I just want to create appliaction that will render Geotiff file using OSG. I tried to display using osgviewer I am getting following message.
>
> I used the following command " osgviewer --image "geotiff_file" "
>
> TIFF rader: Unknown field with tag 33550 (0x830e) encountered
> TIFF rader: Unknown field with tag 33922 (0x8482) encountered
> TIFF rader: Unknown field with tag 34735 (0x87af) encountered
> TIFF rader: Unknown field with tag 34736 (0x87b0) encountered
> TIFF rader: Unknown field with tag 34737 (0x87b1) encountered
> TIFF rader: Can not read scanlines from a tiled image
> TIFF loader: Error reading/decoding file
> osgviewer: No data loaded
> ...
>
> Thank you!
>
> Cheers,
> Uma
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69421#69421
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list