Class: Shapefile::Shape::PointM

Inherits:
Point show all
Defined in:
lib/shapefile/shape/point.rb

Direct Known Subclasses

PointZ

Instance Attribute Summary collapse

Attributes inherited from Point

#x, #y

Attributes inherited from Shapefile::Shape

#attributes, #id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Shapefile::Shape

#[], class_for_code, enumerate_subclass_codes

Constructor Details

#initialize(nbr, record) ⇒ PointM

Returns a new instance of PointM.



17
18
19
20
# File 'lib/shapefile/shape/point.rb', line 17

def initialize(nbr, record)
  super
  @m = record[16, 8].unpack("E")
end

Instance Attribute Details

#mObject (readonly)

Returns the value of attribute m.



13
14
15
# File 'lib/shapefile/shape/point.rb', line 13

def m
  @m
end

Class Method Details

.codeObject



15
# File 'lib/shapefile/shape/point.rb', line 15

def self.code; 21 end