Sha256: 91bcede509fb324abbb6189001622b23869805df757ed27ccf9c18733b7a1887
Contents?: true
Size: 772 Bytes
Versions: 2
Compression:
Stored size: 772 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 "Unable to find gem 'dbf'. Please install." 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ppe-georuby-1.7.2 | lib/geo_ruby/shp4r/dbf.rb |
nofxx-georuby-1.7.1 | lib/geo_ruby/shp4r/dbf.rb |