开发者

Google Earth API - 3d Model Overlays

开发者 https://www.devze.com 2022-12-29 07:05 出处:网络
Does anyone know why the google earth api only supports COLLADA (.dae) 3d model overlays and not kmz???

Does anyone know why the google earth api only supports COLLADA (.dae) 3d model overlays and not kmz???

KmlModel  GEPlugin.createModel   (   string     id    )    

Creates a model. A model is a 3D object described in a COLLADA file. COLLADA files have a .dae file extension. Models are created in their own coordinate space and then located, positioned, and scaled in Google Earth开发者_如何学Go.

Parameters:
     id  ID of the new KmlModel. 

Is it possible to overlay kmz?

Cheers


This is because (Collada) 3D models and KML/KMZ files are fundamentally different - Collada contains most of all geometric drawing primitives while KML/KMZ files contain geocode. There are functions for both.

A KML or KMZ file is loaded into the DOM via the KmlNetworkLink() function


KMZ is really a zip file, that sometimes contain a model in a COLLADA file. take a look here: http://www.katsbits.com/tutorials/blender/import-google-sketchup-kmz-models.php

0

精彩评论

暂无评论...
验证码 换一张
取 消