Closed apps4uco closed 1 year ago
The use case for this is so that the following is possible
use geozero_shp::reader::FieldType;
reader.dbf_fields().unwrap().iter().for_each( |f| { println!("{} {} len {}",f.name(),f.field_type(),f.length()); let ft=match f.field_type() { FieldType::Character => {"char"} // FieldType::Date => {} // FieldType::Float => {} FieldType::Numeric => {"num"} // FieldType::Logical => {} // FieldType::Currency => {} // FieldType::DateTime => {} // FieldType::Integer => {} // FieldType::Double => {} // FieldType::Memo => {} _ => {"other"} }; println!("{}",ft); }
The use case for this is so that the following is possible
use geozero_shp::reader::FieldType;