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.