Questions tagged [kmz]

KMZ is the compressed (zipped) file format of a Keyhole Markup Language (KML) file. Related files (images, styles etc) may be included inside the compressed file.

See https://developers.google.com/kml/documentation/kmzarchives

The following description is taken from the link above:

A KMZ file consists of a main KML file and zero or more supporting files that are packaged using a Zip utility into one unit, called an archive. The KMZ file can then be stored and emailed as a single entity. A NetworkLink can fetch a KMZ file from a web server. When the KMZ file is unzipped, the main .kml file and its supporting files are separated into their original formats and directory structure, with their original filenames and extensions. In addition to being an archive format, the Zip format is also compressed, so an archive can include only a single large KML file. Depending on the content of the KML file, this process typically results in 10:1 compression. Your 10 Kbyte KML file can be served with a 1 Kbyte KMZ file.

and can read and KMZ files directly, and they can save files as KMZ files. By default, the main KML file is named doc.kml.

223 questions
58
votes
4 answers

Loading a local .kml file using google maps?

I created a hello world program to load a local kml file (borrowed from google's docs): var ctaLayer = new google.maps.KmlLayer("http://localhost:8080/kml/cta.kml"); This does not work (nothing gets loaded). However, when I change that line to: …
hddd
  • 581
  • 1
  • 4
  • 4
13
votes
2 answers

Using KMZ Files in Google Maps

Is there any way I can use a KMZ file in Google Maps? My KML file is around 10.7MB so it doesn't load on Google Maps. KMZ file is around 2MB. The only way I see it is to have multiple KML but it's too much work. I might end up doing that, but was…
kaoscify
  • 1,743
  • 7
  • 37
  • 74
8
votes
1 answer

Google Earth (.kmz) mime type IIS issue

I am experiencing a peculiar issue with IIS and KMZ files. I have added the MIME type to IIS and it works just fine -- however, seemingly randomly the MIME type is removed. This has happened a few times now, and each time all I have to do to fix the…
Jeremy
  • 169
  • 1
  • 2
  • 10
5
votes
0 answers

How to Add KmlLayer to M4B Google Map For Business?

I need to add KmlLayer to Google map for business as the following steps. first of all, I am using "Google maps utils" with the following Gradle compile 'com.google.maps.android:android-maps-utils:0.4+' and as this documentation and below is the…
Wael Abo-Aishah
  • 942
  • 2
  • 10
  • 27
5
votes
1 answer

Android intent filter not working

My app can open the following file formats: kml (application/vnd.google-earth.kml+xml) kmz (application/vnd.google-earth.kmz) gpx (application/gpx+xml) I'm trying to set up properly my intent filters so that my app is proposed when trying to open…
Tim Autin
  • 6,043
  • 5
  • 46
  • 76
5
votes
1 answer

How can i assign two styles to a placemark

i am new to KML and this should be simple but i can't figure it out. In my KML i have several styles defined and can assign them easily to a specific placemark with the styleUrl-tag. My styles differ only in the background-color from each other but…
Hynek
  • 277
  • 4
  • 11
5
votes
2 answers

How to Convert ColorDialog color to KML color format

I’m looking for a way to convert the color code returned by a ColorDialog Box in C# into the color format utilized by KML/KMZ file formats. Any info would be greatly appreciated!!
Nate S.
  • 1,117
  • 15
  • 31
4
votes
2 answers

Building large KML file

I generate KML files which may have 50,000 placemarks or more, arranged in Folders based on a domain-specific grouping. The KML file uses custom images which are packed in to a KMZ file. I'm looking to breakup the single KML file in to multiple…
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176
4
votes
2 answers

Java API for KML (JAK) embedding images in kmz files

Is there a way to just add an image file into a kmz file using Java API for KML (JAK)? I can create a kml file with no problem, but I'm trying to just embed a resources (such as an images folder with some image files), but the marshalAsKmz method…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
4
votes
4 answers

Processing KMZ in Mathematica

I'm stuck on a conversion. I have a KMZ file with some coordinates. I read the file like this: m=Import["~/Desktop/locations.kmz","Data"] I get something like this: {{LayerName->Point Features, Geometry->{ Point[{-120.934,49.3321,372}], …
Ron
  • 133
  • 5
4
votes
1 answer

How to read kmz file of google map in android

I have the KMZ file and I want to parse that KMZ file so that I can read the data of that file I tried to use KmlLayer but didn't get any help from it here is my code InputStream inputStream = new FileInputStream(path); KmlLayer layer = new…
Virendra
  • 63
  • 1
  • 6
4
votes
3 answers

Google maps stops kml/kmz support in February 2015

Google maps just told my they're deprecating their kml/kmz mapping service in Google Maps in February 2015. See https://developers.google.com/maps/support/kmlmaps I appreciate to be able to display my kml/kmz files in a map, but I can't find a…
asbl
  • 115
  • 1
  • 5
4
votes
6 answers

kmz compression for google earth images with java

Does anyone know what compression to use in Java for creating KMZ files that have images stored within them? I tried using standard Java compression (and various modes, BEST_COMPRESSION, DEFAULT_COMPRESSION, etc), but my compressed file and the kmz…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
3
votes
2 answers

How do I link to internal files in a KMZ file?

I'm trying to set up a KMZ file for use in Google Earth where the balloon contents are mostly defined in HTML files, which are embedded using iframes. The setup works with a plain KML file and the extra HTML files when using relative links on the…
Peter Becker
  • 8,795
  • 7
  • 41
  • 64
3
votes
1 answer

Should I use memcache?

My code produces a zip file from Google App Engine for loading in a browser ie 10 KB < size < 1000 KB and I wonder if I can use memcache here or if the file is too large or already cached. I already use both memcache and set the cache control when…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
1
2 3
14 15