image layer problem

classic Classic list List threaded Threaded
3 messages Options
pskpg pskpg
Reply | Threaded
Open this post in threaded view
|

image layer problem

Hi, Glenn.
Sorry to bother you again!
When I use gdal driver to load a local tif as the image layer, the tif covers the earth abnormally. These two screenshots show the problem:



My osg version is 3.6.5, and osgearth version is 2.10.1. By the way, the ...\data\world.tif image works correctly.

Could you give me some tips?

Best wishes!
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: image layer problem

Show your earth file, and the output of gdalinfo on your geotiff.
Also consider upgrading to a more recent version!
Glenn Waldron / Pelican Mapping
pskpg pskpg
Reply | Threaded
Open this post in threaded view
|

Re: image layer problem

Thank you for reply!

The image is loaded via c++ code, so there is no earth file. Here is the gdalinfo:



I guess the Origin and Corner Coordinates must be wrong.

I've noticed the new 3.1 version, but have no time to rebuild it for the moment. I'll install the new version later!