abstract class GeoJSON::Geometry

Overview

A Geometry represents a figure in geographic space.

Direct Known Subclasses

Defined in:

geojson/geometry/geometry.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class GeoJSON::Base

type : String type

Constructor Detail

def self.new(parser : JSON::PullParser) #

Creates a new Geometry from the given parser.

This static class method automatically chooses the correct Geometry class to create.


[View source]

Class Method Detail

def self.from_json(geometry_json) #

Creates a Geometry from the given GeoJSON string.


[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def [](*args, **options) #

Gets the coordinate at the given index.


[View source]
def [](*args, **options, &) #

Gets the coordinate at the given index.


[View source]
abstract def coordinates #

Returns this Geometry's coordinates.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)