Failed to create tms driver

classic Classic list List threaded Threaded
9 messages Options
jeladi jeladi
Reply | Threaded
Open this post in threaded view
|

Failed to create tms driver

I am trying to set up my osgearth dev environment on a new machine and was unable to use my existing earth file to populate a cache via osgearth_cache.  I then tried it with the readymap.earth file packaged with the OSGEarth tests and I got the same error.  What would cause a failure to create "tms" driver?

osgearth_cache.exe --seed MyPathToEarthFile\readymap.earth
[osgEarth]  [TerrainLayer] Layer "readymap_elevation" Failed to create "tms" driver, but a cache may exist, so falling back on cache-only mode.
[osgEarth]* [EarthSerializer2] Layer "readymap_elevation" : Error : Failed to open a cache for layer because cache_only policy is in effect and bin [0122c14e] could not be located.
jeladi jeladi
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

I should add that this was while using a 64-bit build of OSGEarth 2.8 on Windows 10 using the compiler target x86_64-w64-mingw32 and a 64-bit build of OpenSceneGraph 3.4.0
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

Jeladi,
Usually this means that the TMS plugin (osgdb_osgearth_tms.dll or one of its dependencies) could not be found or loaded. Maybe there's a problem with your path? Or you have an old version somewhere? Sometimes a complete rebuild can help.
Glenn Waldron / Pelican Mapping
Sonny Sonny
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

I've been having the same issue. Rebuilt the osgEarth a couple of times already, but the issue persists.
davidip davidip
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

Was this issue resolved? I have the same problem and trying to search for answer.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

David, which version of OSG are you using?
Glenn Waldron / Pelican Mapping
davidip davidip
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

We are moving from 2.4 to 2.7.

The other team built the osgearth 2.4 for my application to use and I was able to display tms, arcgis, geotiff, vpb files using the image layer.

But none of those driver work when we moved to 2.7. So I need to narrow down which component went wrong, whether it is the application or the osgEarth 2.7 build or osgEarth 2.7 itself.

Is there a sample code that I can use to test tms driver and ArcGIS driver?

Is there a change of API that my application need to be modified.

Thanks.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

David,
What version of OpenSceneGraph are you using?

You can just use osgearth_viewer to test those drivers. Use readymap.earth to test TMS and arcgisonline.earth to test ArcGIS.

It's probably just a build or path issue; make sure you rebuild everything from scratch.

Version 2.9 has been released; if you are going to the trouble of upgrading from 2.4 I would suggest upgrading to that.
Glenn Waldron / Pelican Mapping
davidip davidip
Reply | Threaded
Open this post in threaded view
|

Re: Failed to create tms driver

Hi Glenn,
I am using OpenSceneGraph 3.4.0.

I am able to display the world map in osgearth_viewer using either ways shown below. So the build is good.
osgearth_viewer --images C:\osgearth2.7\data\world.tif
osgearth_viewer C:\osgearth2.7\tests\gdal_tiff.earth

So I think my code has problem when using 2.7 (but hidden when using 2.4). I tried to load the same tiff file. But the image looks like this:



What is missing? Some parameters not setting up right? It is a good lesson for me to learn. Thank you.