| Geo-GoogleEarth-Pluggable documentation | Contained in the Geo-GoogleEarth-Pluggable distribution. |
Geo::GoogleEarth::Pluggable::Contrib::LineString - Geo::GoogleEarth::Pluggable LineString Object
use Geo::GoogleEarth::Pluggable; my $document=Geo::GoogleEarth::Pluggable->new(); $document->LineString();
Geo::GoogleEarth::Pluggable::Contrib::LineString is a Geo::GoogleEarth::Pluggable::Placemark with a few other methods.
my $placemark=$document->LineString(name=>"LineString Name",
coordinates=>[[lat,lon,alt],
[lat,lon,alt],...]);
my $placemark=$document->LineString();
Please log on RT and send to the geo-perl email list.
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.
| Geo-GoogleEarth-Pluggable documentation | Contained in the Geo-GoogleEarth-Pluggable distribution. |
package Geo::GoogleEarth::Pluggable::Contrib::LineString; use base qw{Geo::GoogleEarth::Pluggable::Placemark}; use XML::LibXML::LazyBuilder qw{E}; use warnings; use strict; our $VERSION='0.09';
sub subnode { my $self=shift; my %data=%$self; $data{"tessellate"}=1 unless defined $data{"tessellate"}; my $coordinates=$self->coordinates_stringify($data{"coordinates"}); my @element=(); push @element, E(tessellate=>{}, $data{"tessellate"}); push @element, E(coordinates=>{}, $coordinates); return E(LineString=>{}, @element); }
1;