kmz creation on Linux Mint

122 views
Skip to first unread message

bess...@gmail.com

unread,
Apr 11, 2014, 1:44:10 PM4/11/14
to custom-m...@googlegroups.com
Just checking out what looks like an awesome app. I would like to draw my own maps. I tried to uncompress the North America map and then zip it using the zip format on my Linux machine. I renamed the .zip to .kmz, but it says it fails to load the image. Same files as the original so I suspect it has something to do with .zip format on Linux.

Any hints on how to make a .kmz file on Linux?

Thx

Marko Teittinen

unread,
Apr 11, 2014, 5:16:39 PM4/11/14
to custom-m...@googlegroups.com, bess...@gmail.com
If you start with a valid kmz file created using either Google Earth or Custom Maps app, and don't change the size of the image (only doodle your own markings on it), the file created by standard zip tool should be OK as long as it has .kmz extension.

BTW, Custom Maps does not compress the kmz (zip) files it creates, as they typically contain only a large image file (which is already highly compressed) and a small kml file which doesn't take much space compared to the image file (so compression benefits are minimal). There is a tiny possibility that Custom Maps (or rather Android Java) would not be able to handle some compression algorithm applied by your zip tool, so you might want to try disabling compression with -0 option.

The other option is that after you edit the image (and possibly resize it), you just copy the image to your Android device and re-align it using Custom Maps.

Marko Teittinen

Mitch Besser

unread,
Apr 13, 2014, 1:40:06 AM4/13/14
to Marko Teittinen, custom-m...@googlegroups.com
Hi Marko, 

The command I used was: 

~/tmp $ zip -0r NorthAmerica.kmz NorthAmerica/

I didn't change any of the files at all. I just unzipped them and then rezipped them as shown above.

I tried again to load the kmz file and this is the exact message I get from the Custom Maps app:

"Failed to load map image for North America."

I also tried to use the Linux GUI interface to zip it, and same thing. 

Any other suggestions?

Thanks,

Mitch
--
"лось и белка"

Marko Teittinen

unread,
Apr 13, 2014, 12:36:14 PM4/13/14
to Mitch Besser, custom-m...@googlegroups.com

I think the command you used creates directory NorthAmerica inside the zip file where your files go. Custom Maps expects the kml file in the top level directory inside the kmz file. Try changing current directory to NorthAmerica and then running command ”zip -0r ../NorthAmerica.kmz ./”

I think that should work.

Marko Teittinen

Reply all
Reply to author
Forward
0 new messages