Geo::JSON::Feature - object representing a geojson Feature
use Geo::JSON::Feature; my $ft = Geo::JSON::Feature->new({ geometry => $geometry_object, properties => \%properties, }); my $json = $ft->to_json;
A GeoJSON object with a geometry attribute of a single Geometry object and an optional properties attribute.
A geometry object is one of the following:
Geo::JSON::Point
Geo::JSON::MultiPoint
Geo::JSON::LineString
Geo::JSON::MultiLineString
Geo::JSON::Polygon
Geo::JSON::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.