/usr/share/doc/libgeo-googleearth-pluggable-perl/examples/Geo-GoogleEarth-Pluggable-LineString.pl is in libgeo-googleearth-pluggable-perl 0.15-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/usr/bin/perl
use strict;
use warnings;
use Geo::GoogleEarth::Pluggable;
=head1 NAME
Geo-GoogleEarth-Pluggable-LineString.pl - Geo::GoogleEarth::Pluggable LineString Example
=cut
my $type=shift || "kml";
my $document=Geo::GoogleEarth::Pluggable->new(name=>"My Document");
my @pt=(
{lat=>38.1, lon=>-77.1},
{lat=>38.2, lon=>-77.2},
{lat=>38.3, lon=>-77.2},
{lat=>38.4, lon=>-77.1},
);
$document->LineString(name=>"My LineString", coordinates=>\@pt);
#use Data::Dumper qw{Dumper};
#print Dumper($document->structure);
if ($type eq "kmz") {
print $document->archive;
} else {
print $document->render;
}
|