pub enum Error {
IoError(Error),
InvalidFileCode(i32),
InvalidShapeType(i32),
InvalidPatchType(i32),
MismatchShapeType {
requested: ShapeType,
actual: ShapeType,
},
InvalidShapeRecordSize,
DbaseError(Error),
MissingDbf,
MissingIndexFile,
}
Expand description
All Errors that can happen when using this library
Variants§
IoError(Error)
Wrapper around standard io::Error that might occur when reading/writing
InvalidFileCode(i32)
The file read had an invalid File code (meaning it’s not a Shapefile)
InvalidShapeType(i32)
The file read had an invalid ShapeType code (either in the file header or any record type)
InvalidPatchType(i32)
The Multipatch shape read from the file had an invalid PatchType code
MismatchShapeType
Error returned when trying to read the shape records as a certain shape type but the actual shape type does not correspond to the one asked
InvalidShapeRecordSize
DbaseError(Error)
MissingDbf
MissingIndexFile
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()