class RGeo::Shapefile::Reader::Record

Shapefile records are provided to the caller as objects of this type. The record includes the record index (0-based), the geometry (which may be nil if the shape type is the null type), and a hash of attributes from the associated dbf file.

You should not need to create objects of this type yourself.

Attributes

attributes[R]

The attributes as a hash.

geometry[R]

The geometry contained in this shapefile record

index[R]

The 0-based record number

Public Instance Methods

[](key_) click to toggle source

Returns the value for the given attribute key.

# File lib/rgeo/shapefile/reader.rb, line 849
def [](key_)
  @attributes[key_.to_s]
end
keys() click to toggle source

Returns an array of keys for all this record’s attributes.

# File lib/rgeo/shapefile/reader.rb, line 844
def keys
  @attributes.keys
end