[SOLVED] osgEarth 3.0 :: XYZImageLayer issue? :: Tiles are shifted?
This post was updated on .
Why did I put question marks in the title? Because I'm not quite sure if this is a legitimate bug or just some artifacts that are specific to my build (because I have issues with jpegs not being rendered for example).
So the problem is that apparently XYZ driver shifts tiles and renders them in the wrong place. This applies only to osgEarth 3.0, same code on earlier versions behaves as expected.
Here is my setup: //add elevation layer
TMSElevationLayer* elevation = new TMSElevationLayer();
ui->mapWidgetArea->getMap()->addLayer( elevation );
// add an XYZ image layer:
XYZImageLayer* osm = new XYZImageLayer();
This is what I get:
And if we take a bird's eye view:
Here we can clearly see what i'm talking about. How do I know that tiles are shifted and not the elevation data? Simple - elevation is rendered at correct coordinates. I've marked corresponding points with red dots for your convenience.
So if anyone has any idea what could have gone wrong - please help. Just general direction of where to dig for answers will suffice.
Qt Creator 4.9.0-rc1 (4.8.84) Based on Qt 5.12.2 (MSVC 2017, 32 bit)
I've tried to compile all the libraries myself, except freetype - that didn't want to compile with OSG so I reverted to prebuilt library for this one.
UPD: I've tried to build latest stable releases of all the libraries. Maybe There's a list of recommended versions?