Sha256: ed80271419416cb048de8e63bf2c6ed6adef306e6de9d2e166ac3dea4b735c84
Contents?: true
Size: 832 Bytes
Versions: 5
Compression:
Stored size: 832 Bytes
Contents
# Uses the dbf lib, Copyright 2006 Keith Morrison (http://infused.org) # Modified to work as external gem now require 'rubygems' begin require 'dbf' rescue LoadError puts "You've loaded GeoRuby SHP Support." puts "Please install the gem 'dbf' to use it. `gem install dbf`" end module GeoRuby module Shp4r Dbf = DBF module Dbf class Record def [](v) attributes[v.downcase] end end class Field < Column def initialize(name, type, length, decimal = 0) super(name, type, length, decimal) end end class Reader < Table alias_method :fields, :columns def header_length @columns_count end def self.open(f) new(f) end def close(); nil; end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems