module EsriShapefile::Shapes
Constants
- SHAPES
Shape types not specified below (2, 4, 6, etc., and up to 33) are reserved for future use
Public Class Methods
find_by_bytes(bytes)
click to toggle source
# File lib/esri_shapefile/models/shapes.rb, line 27 def self.find_by_bytes(bytes) shape_type = bytes.unpack('l<').first find_by_type(shape_type) end
find_by_type(shape_type)
click to toggle source
# File lib/esri_shapefile/models/shapes.rb, line 23 def self.find_by_type(shape_type) SHAPES.fetch(shape_type) end