Access the kmz/kml of the 3D models in google earth/maps

762 views
Skip to first unread message

navid_ad

unread,
Jul 25, 2008, 2:42:34 PM7/25/08
to KML Developer Support - Google Earth Browser Plugin
Hey everyone,

Is it possible to have access to the kmz/kml file and detail
information of a 3D model in google earth/maps?
The detail information I need includes vertices and color of different
parts of a model.

Thanks,
Navid

fraser

unread,
Jul 26, 2008, 6:42:54 AM7/26/08
to KML Developer Support - Google Earth Browser Plugin
Hi nacid_ad,

I'm not sure what you mean "have access to the kmz/kml file".

Do you want to access the information via javascript and the API on a
web page?
Or do you just want to extract the information outside of the API for
another reason?

If all you want is the data from the file then read the second post in
this thread for information regarding the make up of a typical KMZ
file.
http://groups.google.com/group/google-earth-browser-plugin/browse_thread/thread/e00c98c4ac4686ca/e50ed9e6dc48a256?hl=en

If this is not what you mean I'm sorry!

Regards,

Fraser.

navid_ad

unread,
Jul 29, 2008, 3:54:36 PM7/29/08
to KML Developer Support - Google Earth Browser Plugin
Hey Fraser,

Thanks for the post.
I want to use API to look at the KMZ file but I'm not sure if there is
any API to do so.

Take care,
Navid

On Jul 26, 3:42 am, fraser wrote:
> Hi nacid_ad,
>
> I'm not sure what you mean "have access to the kmz/kml file".
>
> Do you want to access the information via javascript and the API on a
> web page?
> Or do you just want to extract the information outside of the API for
> another reason?
>
> If all you want is the data from the file then read the second post in
> this thread for information regarding the make up of a typical KMZ
> file.http://groups.google.com/group/google-earth-browser-plugin/browse_thr...

Roman N

unread,
Aug 1, 2008, 11:36:32 AM8/1/08
to KML Developer Support - Google Earth Browser Plugin
Navid,

The API doesn't expose functionality to access the 3D model's geometry/
material data. You could, however, pull this information out manually
with some work:

Model KMZ files are simply ZIP files that contain a doc.kml file as
well as .DAE files (in COLLADA format - http://en.wikipedia.org/wiki/Collada)
that describe the model geometry. Since the COLLADA format is XML-
based, you could use any XML parser (i.e. GXml -
http://code.google.com/apis/maps/documentation/reference.html#GXml) to
pull out the necessary details.

- Roman
Reply all
Reply to author
Forward
0 new messages