Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5931309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:40:34+00:00 2026-05-22T14:40:34+00:00

I am trying to pull some KMZ files over the net and overlay them

  • 0

I am trying to pull some KMZ files over the net and overlay them on Google Maps. I have looked at Apple’s kmlParser example, which is very close to what I want to do, however in its current form it can only parse KML files. Most of the RSS feeds and google data on the net however seems to be in KMZ format (which I believe is a zipped version of KML files). Is it possible to unzip the KMZ files programmatically in Xcode?

- (void)viewDidLoad

{
[super viewDidLoad];

// Locate the path to the route.kml file in the application's bundle
// 
//NSURL *path = @"http://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-age.kmz";
//NSURL *url = [[NSURL alloc] initWithString:@"http://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-age.kmz"];
//kml = [[KMLParser parseKMLAtURL:url] retain];    // and parse it with the KMLParser.
NSString *path = [[NSBundle mainBundle] pathForResource:@"doc" ofType:@"kml"];
kml = [[KMLParser parseKMLAtPath:path] retain];    // and parse it with the KMLParser.


// Add all of the MKOverlay objects parsed from the KML file to the map.
NSArray *overlays = [kml overlays];
[map addOverlays:overlays];

In the above code snipped, I have also tried using the NSURL method (commented out lines), but it doesn’t work. I have to manually download the KMZ file, unzip it and then feed it to the KML parser and ideally I would like to do that within the program itself.

I will appreciate any help or guidance on how to solve this problem.

Soofi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:40:35+00:00Added an answer on May 22, 2026 at 2:40 pm

    You are right that KMZ files are simply zipped up KML files. The appropriate part of the documentation is here.

    The Apple KML example is very simplistic. If you want a fuller featured parser, I would recommend libKML. It has full support for the KML standard, and handles KML and KMZ files. The only catch is that it is written in C++, and uses intrusive pointers which can be a bit painful in Obj-C.

    If you really want to write your own parser, and just need a way to unzip files, ZipKit should work for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some files in the network path (\machine\folder\folder..). In asp.net, trying to pull
I'm trying to pull some binary data from a database and write them to
I have a small issue. I am trying to pull some data from my
I have a php script that I'm trying to pull some data from a
So I'm trying to pull some data from two text files. The first loads
I am trying to pull some records from a table (BidNames) and pass them
I'm trying to have my GAE app pull some records from the Datastore but
I'm trying to pull some data from a webpage. I have it partially working,
I have a table where I'm trying to pull some trend analysis from where
I'm trying to use a local c# app to pull some images off a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.