NAME

Geo::H3::GeoBoundary - H3 Geospatial Hexagon Indexing System GeoBoundary Object

SYNOPSIS

use Geo::H3::GeoBoundary;
my $GeoBoundary = Geo::H3::GeoBoundary->new(gb=>$gb);            #isa Geo::H3::GeoBoundary
my $GeoBoundary = Geo::H3::GeoBoundary->new(gb=>$gb, ffi=>$ffi); #isa Geo::H3::GeoBoundary

DESCRIPTION

H3 Geospatial Hexagon Indexing System GeoBoundary Object provides coordinates method to extract data from the FFI GeoBoundary object

CONSTRUCTORS

new

my $GeoBoundary = Geo::H3::GeoBoundary->new(gb=>$gb);

PROPERTIES

gb

Returns the H3 GeoBoundary Object from the API as a Geo::H3::FFI::Struct::GeoBoundary object

my $struct = $GeoBoundary->gb; #isa Geo::H3::FFI::Struct::GeoBoundary

METHODS

coordinates

Returns an OGC compatible closed polygon as an array reference of hashes i.e. [{lat=>$lat, lon=>$lon}, ...].

This coordinates format plugs directly into the format required for many Geo::GoogleEarth::Pluggable objects.

SEE ALSO

Geo::H3, Geo::H3::FFI::Struct::GeoBoundary, Geo::GoogleEarth::Pluggable

AUTHOR

Michael R. Davis

COPYRIGHT AND LICENSE

MIT License

Copyright (c) 2021 Michael R. Davis