Skip to content

Pierre-Loup/iOS-KML-Framework

 
 

Repository files navigation

Version Platform

License Build

iOS KML Framework

This is a iOS framework for parsing/generating KML files. This Framework parses the KML from a URL or Strings and create Objective-C Instances of KML structure.

Fork infos

This fork is the "iOS-KML-Framework" pod's source repo.

Installation

iOS-KML-Framework is available through CocoaPods, to install it simply add the following line to your Podfile:

platform :ios, '5.1'
pod 'iOS-GPX-Framework', "~> 0.0"

Usage

#import "KML.h"

// Parsing the KML

KMLRoot *root = [KMLParser parseKMLWithString:kml];


// Generating the KML

KMLRoot *root = [KMLRoot new];

KMLDocument *doc = [KMLDocument new];
root.feature = doc;

KMLPlacemark *placemark = [KMLPlacemark new];
placemark.name = @"Simple placemark";
placemark.descriptionValue = @"Attached to the ground.";
[doc addFeature:placemark];

KMLPoint *point = [KMLPoint new];
placemark.geometry = point;

KMLCoordinate *coordinate = [KMLCoordinate new];
coordinate.latitude = 37.422f;
coordinate.longitude = -122.082f;
point.coordinate = coordinate;

Requirements

  • iOS 6.0 or later

Author

Watanabe Toshinori, t@flcl.jp

License

iOS-KML-Framework is available under the MIT license. See the LICENSE file for more info.

it uses TBXML Copyright (c) 2009 Tom Bradley

About

This is an iOS framework for parsing/generating KML files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 96.1%
  • C 3.6%
  • Ruby 0.3%