[osg-users] Display Geotiff image in OSG

Robert Osfield robert.osfield at gmail.com
Thu Nov 17 04:31:14 PST 2016


On 17 November 2016 at 12:13, Uma Devi Selvaraj <umaselvam1503 at gmail.com> wrote:
> Hi,
>
> "osgviewer -e gdal --image "geotiff_file" " using this command I am able to display the file. will this command retains geographic information. Is this correct command?


It's fine to use the preload the plugin using the -e extension option.
but this is just an example application that puts an image on a quad
to render it, it won't retain anything about the coordinate
transformation.

I have just had a quick scan of the GDAL plugin and it doesn't process
and or pass back the GeoTransform of the loaded GDALDataset so it's
just the image data that is passed back, the transform it lost.
Potentially this could be assign as user data to the Image, but this
will required modifications to the plugin.

The alternative is to just use GDAL directly.  This is what tools like
VirtualPlanetBuilder do, VirtualPlanetBuilder builds OSG paged
databases from geospatial imagery and DEMs.

Robert.



More information about the osg-users mailing list