
Geo::GoogleEarth::Document::Polygon - Geo::GoogleEarth::Document::Polygon

use Geo::GoogleEarth::Document;
my $document=Geo::GoogleEarth::Document->new();
my $placemark = $document->placemark();
$placemark->Polygon( extrude=>boolean, tessellate=>boolean, outerBoundaryIs => coordinates,
innerBoundaryIs => coordinates );

Geo::GoogleEarth::Document::Polygon is a Geo::GoogleEarth::Document::Base with a few other methods.

my $Polygon = $placemark->Polygon( extrude=>boolean, tessellate=>boolean, outerBoundaryIs => coordinates,
innerBoundaryIs => coordinates );

my $Polygon = $placemark->Polygon( extrude=>boolean, tessellate=>boolean, outerBoundaryIs => coordinates,
innerBoundaryIs => coordinates );

Returns the object type.
my $type=$Polygon->type;
Returns a hash reference for feeding directly into XML::Simple.
my $structure=$style->structure;
<Polygon id="ID">
<!-- specific to Polygon -->
<extrude>0</extrude> <!-- boolean -->
<tessellate>0</tessellate> <!-- boolean -->
<altitudeMode>clampToGround</altitudeMode>
<!-- kml:altitudeModeEnum: clampToGround, relativeToGround, or absolute -->
<outerBoundaryIs>
<LinearRing>
<coordinates>...</coordinates> <!-- lon,lat[,alt] -->
</LinearRing>
</outerBoundaryIs>
<innerBoundaryIs>
<LinearRing>
<coordinates>...</coordinates> <!-- lon,lat[,alt] -->
</LinearRing>
</innerBoundaryIs>
</Polygon>


Contact the author.

David Hillman
CPAN: DAHILLMA

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::Document creates a GoogleEarth KML Document.