Class: Shapefile::Shape::PointZ
- Inherits:
-
PointM
- Object
- Shapefile::Shape
- Point
- PointM
- Shapefile::Shape::PointZ
- Defined in:
- lib/shapefile/shape/point.rb
Instance Attribute Summary collapse
-
#z ⇒ Object
readonly
Returns the value of attribute z.
Attributes inherited from PointM
Attributes inherited from Point
Attributes inherited from Shapefile::Shape
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(nbr, record) ⇒ PointZ
constructor
A new instance of PointZ.
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
#z ⇒ Object (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
.code ⇒ Object
26 |
# File 'lib/shapefile/shape/point.rb', line 26 def self.code; 11 end |