++ed by:
TIMB ZMUGHAL

2 PAUSE users
1 non-PAUSE user.

Michael Jemmeson

NAME

Geo::JSON::Base - Baseclass for Geo::JSON objects

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.