enum WKB::ObjectKind

Overview

Convenience enum that represents the respective object's type numeric code in WKB.

Defined in:

wkb/object_kind.cr

Enum Members

Point = 1_u32
LineString = 2_u32
Polygon = 3_u32
MultiPoint = 4_u32
MultiLineString = 5_u32
MultiPolygon = 6_u32
GeometryCollection = 7_u32

Instance Method Summary

Instance Method Detail

def geometry? #

Returns false if the object is a GeometryCollection.


[View source]
def geometry_collection? #

[View source]
def line_string? #

[View source]
def multi_line_string? #

[View source]
def multi_point? #

[View source]
def multi_polygon? #

[View source]
def multipart? #

Returns true if the object's children are simple geometry objects.


[View source]
def point? #

[View source]
def polygon? #

[View source]