NAME
Geo::JSON::Base - Base class for Geo::JSON objects
VERSION
version 0.006
DESCRIPTION
Base class for Geojson objects.
See Geo::JSON for more details.
ATTRIBUTES
type
Required. Scalar defining the class of Geojson object. One of the following: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature, FeatureCollection.
crs
Optional Geo::JSON::CRS object to define the Co-ordinates Reference System used by this object.
bbox
Optional arrayref representing a bounding box that encloses the points defined by this Geojson object. See Geo::JSON for more details.
METHODS
compute_bbox
Returns arrayref representing a Geojson bounding box that encloses the points in the object's geometry.
all_positions
Returns arrayref of all positions (each an arrayref of n
dimensions) in the object's geometry.
AUTHOR
Michael Jemmeson <mjemmeson@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Michael Jemmeson <mjemmeson@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.