Quantcast

Issue loading *.kmz file using osgearth_viewer

classic Classic list List threaded Threaded
5 messages Options
vimalcode vimalcode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue loading *.kmz file using osgearth_viewer

Hi,
I am trying to load a sample 3D model (*.kmz file) in osgEarth using osgearth_viewer:
osgearth_viewer openstreetmap.earth --kml KMZ_Sample.kmz

However, no model is loaded and below is the error message:
...
Error reading file KMZ_Sample.kmz: file not handled
[osgEarth]  [ReaderWriterKML] Opening KMZ archive at "KMZ_Sample.kmz"
[osgEarth]  [ReaderWriterKML] Opening KMZ archive at "KMZ_Sample.kmz"
Error reading file KMZ_Sample.kmz/models/untitled.dae: file not handled
[osgEarth]* [ModelNode] No model and failed to load data from KMZ_Sample.kmz/models/untitled.dae
[osgEarth]* [ModelNode] No model
...

The same *.kmz file works perfectly with Google Earth. Is there any specific format for *.kmz file in osgEarth? I have built my osgEarth without minizip because osgEarth documentation says "Removed MINIZIP dependency"

FYI, I can load *.kml file and observe user track on osgEarth. The osgearth_version is Library 2.9.0 DEVELOPMENT
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue loading *.kmz file using osgearth_viewer

Vimal,
The ".dae" file is a COLLADA file, so you are probably missing the OSG COLLADA plugin.
Glenn Waldron / Pelican Mapping
vimalcode vimalcode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue loading *.kmz file using osgearth_viewer

I downloaded latest version of collada-dom project (v2.4.0) from <a href="http://Download collada-dom project from https://sourceforge.net/projects/collada-dom/?source=directory">sourceforge and installed it. After that, I rebuilt the OpenSceneGraph and osgEarth. Here is the new error I am facing:

...
Error reading file KMZ_Sample.kmz: file not handled
[osgEarth]  [ReaderWriterKML] Opening KMZ archive at "KMZ_Sample.kmz"
[osgEarth]  [ReaderWriterKML] Opening KMZ archive at "KMZ_Sample.kmz"
Error: Trying to load an invalid COLLADA version for this DOM build!
Error: Failed to load XML document from memory

Load failed in COLLADA DOM
Load failed in COLLADA DOM conversion
Error reading file KMZ_Sample.kmz/models/untitled.dae: file not found
[osgEarth]* [ModelNode] No model and failed to load data from KMZ_Sample.kmz/models/untitled.dae
[osgEarth]* [ModelNode] No model
...

I googled to find a solution to address this problem but left with no success.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue loading *.kmz file using osgearth_viewer

Sorry - don't know the answer. Perhaps someone on the osg-users mailing list has more experience with COLLADA?
Glenn Waldron / Pelican Mapping
vimalcode vimalcode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue loading *.kmz file using osgearth_viewer

Thank you, Glenn, I will try to find a solution for it.
Loading...