Geo::JSON::GeometryCollection - object representing a geojson GeometryCollection
use Geo::JSON::GeometryCollection; my $gcol = Geo::JSON::GeometryCollection->new({ geometries => [ ... ], }); my $json = $mpt->to_json;
A GeoJSON object with a geometries attribute consisting of an arrayref of Geometry objects (Point, MultiPoint, LineString, MultiLineString, Polygon, or MultiPolygon).
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.