Class: Shapefile::Shape::PointZ

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

Instance Attribute Summary collapse

Attributes inherited from PointM

#m

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) ⇒ PointZ

Returns a new instance of PointZ.



28
29
30
31
# File 'lib/shapefile/shape/point.rb', line 28

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

Instance Attribute Details

#zObject (readonly)

Returns the value of attribute z.



24
25
26
# File 'lib/shapefile/shape/point.rb', line 24

def z
  @z
end

Class Method Details

.codeObject



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

def self.code; 11 end