Geo::JSON::FeatureCollection - object representing a geojson FeatureCollection
use Geo::JSON::FeatureCollection; # @feature_objects can be an array of Geo::JSON::Feature objects or # hashrefs that define Geo::JSON::Feature objects. my $fcol = Geo::JSON::FeatureCollection->new({ features => \@feature_objects, }); my $json = $fcol->to_json;
A GeoJSON object with a features attribute of an arrayref of Geo::JSON::Feature objects.
See Geo::JSON for more details.
Geo::JSON::Feature
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.