PHP Classes

KML Generator: Generate KML definitions for Google Earth

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 2,095 All time: 1,868 This week: 129Up
Version License PHP version Categories
kmlgenerator 1.0GNU General Publi...3.0XML, Geography


This package can be used to generate KML definitions for use with Google Earth maps.

It can add several features to a KML definition like points with given geographic coordinates, lines, polygons, links, and overlaid icons.

The class can return the KML definitions as XML document strings or serve them as the output of the current script.

Innovation Award
PHP Programming Innovation award nominee
August 2007
Number 6

Prize: One subscription to the PDF edition of the magazine by PHP Architect
KML is a XML format used by the Google Earth program to describe locations and features to be presented on the map of a region.

Importing KML files may greatly enhance the interest and the value of the maps presented by Google Earth.

This class makes it simple to generate KML files in PHP.

Manuel Lemos
Picture of Pablo Kogan
Name: Pablo Kogan <contact>
Classes: 1 package by
Country: Argentina Argentina
Age: 44
All time rank: 145319 in Argentina Argentina
Week rank: 195 Up1 in Argentina Argentina Up
Innovation award
Innovation award
Nominee: 1x

  • kmlInGoogleEarth2.jpeg
  Files folder image Files  
File Role Description
Plain text file class.kml.php Class Classes and examples
HTML file example.html Data Exmaple to work with kml server or kml generator
Plain text file exampleDinamicKml.php Example Example of Dinamic Kml
Plain text file exampleLink.php Example Example of Link kml

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,868
This week:129Up
 User Ratings  
 All time