Geo::JSON::MultiPolygon
use Geo::JSON::MultiPolygon; my $mpol = Geo::JSON::MultiPolygon->new({ coordinates => [ [ [...], # outer linear ring [...], ... # inner linear ring(s) ], [...], ], }, }); my $json = $mpol->to_json;
A GeoJSON object with a coordinates of an arrayref of polygon coordinates.
See Geo::JSON for more details.
To install Geo::JSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::JSON
CPAN shell
perl -MCPAN -e shell install Geo::JSON
For more information on module installation, please visit the detailed CPAN module installation guide.