abstract class GeoJSON::Object
- GeoJSON::Object
- Reference
- Object
Overview
GeoJSON Object
A GeoJSON object represents a Geometry, Feature, or collection of Features.
- A GeoJSON object is a JSON object.
- A GeoJSON object has a member with the name "type". The value of
the member MUST be one of the GeoJSON types.
Point
,MultiPoint
,LineString
,MultiLineString
,Polygon
,MultiPolygon
,GeometryCollection
,Feature
, andFeatureCollection
- A GeoJSON object MAY have a "bbox" member, the value of which MUST be a bounding box array
- A GeoJSON object MAY have other members
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
Direct Known Subclasses
- GeoJSON::Feature
- GeoJSON::FeatureCollection
- GeoJSON::GeometryCollection
- GeoJSON::LineString
- GeoJSON::MultiLineString
- GeoJSON::MultiPoint
- GeoJSON::MultiPolygon
- GeoJSON::Point
- GeoJSON::Polygon
Defined in:
geojson/object.crConstructors
Instance Method Summary
-
#bbox
Calculates the bounding box for any GeoJSON object, including
FeatureCollection
. - #type : String
Constructor Detail
Instance Method Detail
abstract
def bbox
#
Calculates the bounding box for any GeoJSON object, including FeatureCollection
.