struct GeoJSON::PseudoGeometryConverter
- GeoJSON::PseudoGeometryConverter
- Struct
- Value
- Object
Overview
A PseudoGeometryConverter
handles deserialization and serialization of
geometry elements in GeoJSON features.
Defined in:
geojson/geometry/pseudo_geometry_converter.crConstructors
Class Method Summary
-
.from_json(parser : JSON::PullParser)
Creates a
Geometry
orGeometryCollection
from the given GeoJSON string. -
.to_json(value, builder : JSON::Builder)
Serializes a
Geometry
orGeometryCollection
by passing the builder to its#to_json
method.
Instance Method Summary
Constructor Detail
Class Method Detail
def self.from_json(parser : JSON::PullParser)
#
Creates a Geometry
or GeometryCollection
from the given GeoJSON string.
def self.to_json(value, builder : JSON::Builder)
#
Serializes a Geometry
or GeometryCollection
by passing the builder
to its #to_json
method.