| Geo-GoogleEarth-Pluggable documentation | Contained in the Geo-GoogleEarth-Pluggable distribution. |
Geo::GoogleEarth::Pluggable::Contrib::LinearRing - Geo::GoogleEarth::Pluggable LinearRing Object
use Geo::GoogleEarth::Pluggable; my $document=Geo::GoogleEarth::Pluggable->new(); $document->LinearRing();
Geo::GoogleEarth::Pluggable::Contrib::LinearRing is a Geo::GoogleEarth::Pluggable::Placemark with a few other methods.
my $placemark=$document->LinearRing(name=>"LinearRing Name",
coordinates=>[[lat,lon,alt],
[lat,lon,alt],...]);
my $placemark=$document->LinearRing();
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::LinearRing; 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(outerBoundaryIs=>{}, E(LinearRing=>{}, E(coordinates=>{}, $coordinates))); return E(Polygon=>{}, @element); }
1;