abstract struct WKB::Geometry
- WKB::Geometry
- WKB::Object
- Struct
- Value
- Object
Direct Known Subclasses
Defined in:
wkb/geojson.cr:88wkb/geojson.cr:144
wkb/geometry.cr
Constructors
-
.new(pull : JSON::PullParser)
NOTE It's necessary to require the GeoJSON extension after loading the library.
Instance Method Summary
-
#to_coordinates
Returns a representation of coordinates as a nested array.
-
#to_json(builder : JSON::Builder) : Nil
NOTE It's necessary to require the GeoJSON extension after loading the library.
Instance methods inherited from struct WKB::Object
children
children,
empty?
empty?,
has_m?
has_m?,
has_z?
has_z?,
has_zm?
has_zm?,
mode : WKB::Mode
mode,
size
size,
srid : Int32
srid,
to_json(builder : JSON::Builder)
to_json
Constructor methods inherited from struct WKB::Object
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(pull : JSON::PullParser)
#
NOTE It's necessary to require the GeoJSON extension after loading the library.
Instance Method Detail
def to_json(builder : JSON::Builder) : Nil
#
NOTE It's necessary to require the GeoJSON extension after loading the library.