Class GeoRuby::Shp4r::Dbf::Field
In: lib/geo_ruby/shp4r/dbf.rb
Parent: Object

Methods

new  

Attributes

decimal  [R] 
length  [R] 
name  [R] 
type  [R] 

Public Class methods

[Source]

     # File lib/geo_ruby/shp4r/dbf.rb, line 166
166:         def initialize(name, type, length, decimal = 0)
167:           raise FieldError, "field length must be greater than 0" unless length > 0
168:           if type == 'N' and decimal != 0
169:             type = 'F'
170:           end
171:           @name, @type, @length, @decimal = name.strip, type,length, decimal
172:         end

[Validate]