NAME
Geo::GoogleEarth::Document::Polygon - Geo::GoogleEarth::Document::Polygon
SYNOPSIS
use Geo::GoogleEarth::Document;
my $document=Geo::GoogleEarth::Document->new();
my $placemark = $document->placemark();
$placemark->Polygon( extrude=>boolean, tessellate=>boolean, outerBoundaryIs => coordinates,
innerBoundaryIs => coordinates );
DESCRIPTION
Geo::GoogleEarth::Document::Polygon is a Geo::GoogleEarth::Document::Base with a few other methods.
USAGE
my $Polygon = $placemark->Polygon( extrude=>boolean, tessellate=>boolean, outerBoundaryIs => coordinates,
innerBoundaryIs => coordinates );
CONSTRUCTOR
new
my $Polygon = $placemark->Polygon( extrude=>boolean, tessellate=>boolean, outerBoundaryIs => coordinates,
innerBoundaryIs => coordinates );
METHODS
type
Returns the object type.
my $type=$Polygon->type;
structure
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>
id
outerBoundaryIs
innerBoundaryIs
extrude
tesselate
BUGS
SUPPORT
Contact the author.
AUTHOR
David Hillman
CPAN: DAHILLMA
COPYRIGHT
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.
SEE ALSO
Geo::GoogleEarth::Document creates a GoogleEarth KML Document.