Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Chris Hanson
It really sounds like what you're doing is going to require geospatial
integration, and for that, you'd be much further ahead using osgEarth,
which has all sorts of geospatial features built in.

Can you describe the bigger picture of what you're actually trying to
_accomplish_ in the end, so we can make more informed suggestions about
technique?

On Thu, Nov 17, 2016 at 5:31 AM, Robert Osfield 
wrote:

> On 17 November 2016 at 12:13, Uma Devi Selvaraj 
> 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.
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Robert Osfield
On 17 November 2016 at 12:13, Uma Devi Selvaraj  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.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Uma Devi Selvaraj
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?
 

... 

Thank you!

Cheers,
Uma

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69424#69424





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Uma Devi Selvaraj
Hi Sebastain,

   I am sorry image size too big to upload. It is 36 MB

... 

Thank you!

Cheers,
Uma

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69423#69423





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Robert Osfield
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  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@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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Sebastian Messerschmidt



Hi,

That is strange. Can you supply the image for investigation?
It is either broken, non-standard or your tiff-lib is not up to date.

Cheers
Sebastian

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@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


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Uma Devi Selvaraj
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Display Geotiff image in OSG

2016-11-17 Thread Sebastian Messerschmidt


Hi Uma,


Hi,

   How can I display Geotiff image in osg . Is there any example.?
I have installed GDAL in my system.


A geotiff essentially is a normal tif with geo-reference information.
To simply display it you can use the osgviewer with the --image.

If you need to display it at it geographic position on an earth-model 
you might consider osgEarth or VirtualPlanetBuilder.


Maybe you need to describe in detail what you are after.

Cheers
Sebastian



...

Thank you!

Cheers,
Uma

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69416#69416





___
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