Geo::GoogleEarth::Document - Generates GoogleEarth KML Documents
use Geo::GoogleEarth::Document; my $document = Geo::GoogleEarth::Document->new(); #is a special Folder... my $folder = $document->Folder(); #Geo::GoogleEarth::Document::Folder object my $placemark = $document->Placemark(); #Geo::GoogleEarth::Document::Placemark object my $networklink = $document->NetworkLink(); #Geo::GoogleEarth::Document::NetworkLink object my $style = $document->Style(); #Geo::GoogleEarth::Document::Style object print $document->render();
Geo::GoogleEarth::Document is a Perl object oriented interface that allows for the creation of XML documents that can be used with Google Earth.
Geo::GoogleEarth::Document is a the Geo::GoogleEarth::Document::Folder manpage with a render method.
This is all of the code you need to generate a complete Google Earth document.
use Geo::GoogleEarth::Document; my $document=Geo::GoogleEarth::Document->new(); $document->Placemark(address=>"1600 Pennsylvania Ave NW, Washington, DC"); print $document->render;
Returns an XML document with an XML declaration and a root name of "Document"
print $document->render;
Constructs a new Style object and appends it to the document object. Returns the object reference.
my $style=$document->Style(id=>"myicon1", iconHref=>"http://maps.google.com/mapfiles/kml/paddle/L.png");
Try geo-perl email list.
Michael R. Davis (mrdvt92)
CPAN ID: MRDVT
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
the Geo::GoogleEarth::Document manpage creates a GoogleEarth KML Document.
the Geo::GoogleEarth::Document::Base manpage is the base for Geo::GoogleEarth::Document::* packages.
the Geo::GoogleEarth::Document::Folder manpage is a Geo::GoogleEarth::Document folder object.
the Geo::GoogleEarth::Document::NetworkLink manpage is a Geo::GoogleEarth::Document NetworkLink object.
the Geo::GoogleEarth::Document::Placemark manpage is a Geo::GoogleEarth::Document Placemark object.
the Geo::GoogleEarth::Document::Style manpage is a Geo::GoogleEarth::Document Style object.
the XML::Simple manpage is used by this package to generate XML from a data structure.