Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Google Earth and .kml/.kmz
New Posts  All Forums:Forum Nav:

Google Earth and .kml/.kmz

post #1 of 9
Thread Starter 
Not sure if this actually counts as coding/programming, but I thought I'd open up a thread just in case. As per the usual, if it's the wrong place LMK where you think it should be placed and the mods should move it. I'm struggling a bit with using GE in regards to opening an image file in the pop-up balloon. I'll try to layout the basic problem first, then give some steps to it. The problem is that when I save a placemark to my places as a kmz, GE doesn't include an image within that kmz file. When you open the .kmz, and then the .kml, it has a local path to an image,
Code:
<img src="files/banner01.jpg"/>
. The problem is that in order to use that local path, the image needs to be stored inside the .kmz, but there is no image in the .kmz file. The only file in the .kmz is the .kml file.

So, a workaround is obviously to just save it as a .kml file, which works most of the time. The only reason this is an issue is because there are some rather large files, so it would be much better to have them saved off as a .kmz file to save space. But, can't do that if none of the images are saved into the .kmz. So hopefully I haven't royally confused you all, if anyone here has any experience with google earth and .kmzs, I would greatly appreciate your help. I've done some browsing on google groups but haven't been able to find a solution there yet. There is some stuff about the way GE so I'm hoping maybe someone here has some experience and will excel where google groups cannot cheers.gif
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
post #2 of 9
Quote:
Originally Posted by b3machi7ke View Post

So hopefully I haven't royally confused you all, if anyone here has any experience with google earth and .kmzs

I think you must have, otherwise there'd be more answers by now. I don't have experience with Google Earth, but I have worked with Google Maps. So I'll give it a shot.

First off, a kml file is just a fancy name for an xml file. And a kmz file is just a fancy name for a zip file.
Quote:
So, a workaround is obviously to just save it as a .kml file,
No, an obvious fix is to just add the images to the kmz file. What's preventing you from doing that? You would need to add the full path that mentioned in the kml also. Or remove the path from the kml, either way will work.
Death Star
(21 items)
 
Darksaber
(11 items)
 
 
CPUMotherboardGraphicsRAM
Athlon II x2 245 Asus M3A78 Radeon HD6570 1GB Mushkin Silverline 2GB DDR2  
Hard DriveOptical DriveOSMonitor
OCZ Vertex 2 120GB Samsung Blu-Ray Windows 7 Samsung 46" DLP 
PowerCaseOther
Silverstone Strider Essentials 400W Silverstone Milo ML03B Hauppage WinTV 1250 
  hide details  
Reply
Death Star
(21 items)
 
Darksaber
(11 items)
 
 
CPUMotherboardGraphicsRAM
Athlon II x2 245 Asus M3A78 Radeon HD6570 1GB Mushkin Silverline 2GB DDR2  
Hard DriveOptical DriveOSMonitor
OCZ Vertex 2 120GB Samsung Blu-Ray Windows 7 Samsung 46" DLP 
PowerCaseOther
Silverstone Strider Essentials 400W Silverstone Milo ML03B Hauppage WinTV 1250 
  hide details  
Reply
post #3 of 9
Thread Starter 
Quote:
Originally Posted by wedge View Post

I think you must have, otherwise there'd be more answers by now. I don't have experience with Google Earth, but I have worked with Google Maps. So I'll give it a shot.

First off, a kml file is just a fancy name for an xml file. And a kmz file is just a fancy name for a zip file.
No, an obvious fix is to just add the images to the kmz file. What's preventing you from doing that? You would need to add the full path that mentioned in the kml also. Or remove the path from the kml, either way will work.

Sure that's a workaround for a couple files here. But when you're talking about more than even 15 or 20 images, located in different places all around your computer, it can get to be a real pain in the neck. Looking around some more, it seems that this has been an issue ever since Google released GE 6, and there doesn't seem to be much chatter about them addressing it in the near future. Oh well I guess
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
post #4 of 9
Quote:
Originally Posted by b3machi7ke View Post

Quote:
Originally Posted by wedge View Post

I think you must have, otherwise there'd be more answers by now. I don't have experience with Google Earth, but I have worked with Google Maps. So I'll give it a shot.

First off, a kml file is just a fancy name for an xml file. And a kmz file is just a fancy name for a zip file.
No, an obvious fix is to just add the images to the kmz file. What's preventing you from doing that? You would need to add the full path that mentioned in the kml also. Or remove the path from the kml, either way will work.

Sure that's a workaround for a couple files here. But when you're talking about more than even 15 or 20 images, located in different places all around your computer, it can get to be a real pain in the neck. Looking around some more, it seems that this has been an issue ever since Google released GE 6, and there doesn't seem to be much chatter about them addressing it in the near future. Oh well I guess
Rename it to .zip, copy the files in, and put the paths locally. Rename it to .kmz. SHOULD work.
post #5 of 9
Thread Starter 
Quote:
Originally Posted by 3930K View Post

Rename it to .zip, copy the files in, and put the paths locally. Rename it to .kmz. SHOULD work.

Yeah, that's not really any different than the workaround listed above. It works, provided you have a few images here or there. But when you're dealing with a large amount of images, it is very tedious and time consuming to go through and put them in there. Really, it's a bug that Google just hasn't bothered to fix, which is very annoying. Hopefully something will change upon their next release.
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
post #6 of 9
So what exactly are you doing in the first place that is not properly adding the images to the file?
Death Star
(21 items)
 
Darksaber
(11 items)
 
 
CPUMotherboardGraphicsRAM
Athlon II x2 245 Asus M3A78 Radeon HD6570 1GB Mushkin Silverline 2GB DDR2  
Hard DriveOptical DriveOSMonitor
OCZ Vertex 2 120GB Samsung Blu-Ray Windows 7 Samsung 46" DLP 
PowerCaseOther
Silverstone Strider Essentials 400W Silverstone Milo ML03B Hauppage WinTV 1250 
  hide details  
Reply
Death Star
(21 items)
 
Darksaber
(11 items)
 
 
CPUMotherboardGraphicsRAM
Athlon II x2 245 Asus M3A78 Radeon HD6570 1GB Mushkin Silverline 2GB DDR2  
Hard DriveOptical DriveOSMonitor
OCZ Vertex 2 120GB Samsung Blu-Ray Windows 7 Samsung 46" DLP 
PowerCaseOther
Silverstone Strider Essentials 400W Silverstone Milo ML03B Hauppage WinTV 1250 
  hide details  
Reply
post #7 of 9
Is it possible for you to show us a snippet of your code or example code as well as an example image (on the web) and perhaps better explain what you are trying to do. I have worked a little bit before with kmz files but I'm not 100% sure what your issue is.
Bandaids
(15 items)
 
  
MotherboardGraphicsHard DriveOptical Drive
Asrock Z77 Extreme 6 GTX 580 WD 10EALX ASUS DRW 
CoolingOSMonitorMonitor
Havik 140 Windows 7 Ultimate ASUS VH228T Toshiba 32RV600A 
MonitorKeyboardPowerCase
Compaq S2021a Microsoft Wired Keyboard 600 Aero Cool Strike X 1100w Asus Antec 
MouseMouse PadAudio
Logitech MX518 Mionix Ensis 320 Creative 2.1 
  hide details  
Reply
Bandaids
(15 items)
 
  
MotherboardGraphicsHard DriveOptical Drive
Asrock Z77 Extreme 6 GTX 580 WD 10EALX ASUS DRW 
CoolingOSMonitorMonitor
Havik 140 Windows 7 Ultimate ASUS VH228T Toshiba 32RV600A 
MonitorKeyboardPowerCase
Compaq S2021a Microsoft Wired Keyboard 600 Aero Cool Strike X 1100w Asus Antec 
MouseMouse PadAudio
Logitech MX518 Mionix Ensis 320 Creative 2.1 
  hide details  
Reply
post #8 of 9
Thread Starter 
Nah, I've found some people out there with the same issue, appears it's a bug with Google Earth and apart from basically creating your own .kmz file there's really not a workaround for it. Thanks for trying though everyone
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
First Time Build
(20 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 920 MSI X58 Pro-E (MS-7522) EVGA GeForce GTX 460 EVGA GeForce GTX 460 
GraphicsRAMRAMRAM
Galaxy GeForce GTX 460 Corsair  Corsair  Corsair  
Hard DriveOptical DriveCoolingOS
Seagate Barracuda 7200.12 Sony DVD+-RW Noctua NH-D14 Windows 7 64bit 
MonitorMonitorKeyboardPower
Acer P215H Acer P221W Dynex Silverstone OP1000-E 1kW PSU 
CaseMouseMouse PadAudio
Cooler Master HAF 932 Dynex Dynex ASUS Xonar DG 
  hide details  
Reply
post #9 of 9
Quote:
Originally Posted by b3machi7ke View Post

Quote:
Originally Posted by 3930K View Post

Rename it to .zip, copy the files in, and put the paths locally. Rename it to .kmz. SHOULD work.

Yeah, that's not really any different than the workaround listed above. It works, provided you have a few images here or there. But when you're dealing with a large amount of images, it is very tedious and time consuming to go through and put them in there. Really, it's a bug that Google just hasn't bothered to fix, which is very annoying. Hopefully something will change upon their next release.
Drag and drop and select all to the rescue! wink.gif
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Google Earth and .kml/.kmz