#[non_exhaustive]pub enum GeorefError {
Show 27 variants
MissingEntity {
referrer: EntityId,
missing: EntityId,
},
WrongType {
entity: EntityId,
expected: &'static str,
actual: String,
},
MissingAttribute {
entity: EntityId,
index: usize,
name: &'static str,
},
AuthoringInvalid {
entity: &'static str,
attribute: &'static str,
value: String,
},
InvalidAttribute {
entity: EntityId,
index: usize,
name: &'static str,
},
UnsupportedOperation {
entity: EntityId,
actual: String,
},
CoordinateMeasureMismatch {
entity: EntityId,
expected: &'static str,
actual: &'static str,
},
DegenerateAxis {
entity: EntityId,
},
InvalidScale {
entity: EntityId,
value: f64,
},
InvalidUnit {
entity: EntityId,
detail: &'static str,
},
UnitCycle {
entity: EntityId,
},
UnitRecordDamaged {
entity: EntityId,
diagnostic: usize,
},
RecordDamaged {
entity: EntityId,
diagnostic: usize,
},
RecordsIncomplete {
diagnostics: usize,
},
MissingSchema,
AmbiguousSchema {
tokens: Vec<String>,
},
UnsupportedSchema {
token: String,
},
MissingProjectFrame,
DegenerateProjectFrame,
NonFiniteDirection {
entity: EntityId,
},
RuleViolation {
entity: EntityId,
rule: &'static str,
},
InvalidCompoundAngle {
entity: EntityId,
index: usize,
name: &'static str,
rule: &'static str,
},
InvalidParameter {
name: &'static str,
value: f64,
},
IncompletePropertySets {
host: EntityId,
missing: &'static str,
},
AmbiguousPropertySets {
host: EntityId,
name: &'static str,
sets: Vec<EntityId>,
},
MissingProperty {
property_set: EntityId,
name: &'static str,
},
InvalidProperty {
property_set: EntityId,
property: EntityId,
name: &'static str,
expected: &'static str,
},
}Expand description
Why a project-to-map operation could not be resolved losslessly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingEntity
An entity referenced another that the model does not contain.
Fields
WrongType
An entity was not the IFC type the referencing slot requires.
Fields
MissingAttribute
A mandatory attribute was absent, so the value cannot be inferred.
Fields
AuthoringInvalid
A value supplied to an authoring helper was not acceptable.
Distinct from GeorefError::InvalidAttribute, which names an
entity already in the model: at authoring time there is no id
yet, so the entity is named by type.
Fields
InvalidAttribute
An attribute was present but held the wrong kind of value.
Fields
UnsupportedOperation
The coordinate operation is a subtype this crate does not resolve.
Refused rather than approximated: a non-projected operation would silently produce wrong map coordinates.
Fields
CoordinateMeasureMismatch
A rigid operation’s coordinates are the other SameCoordinateType
branch than the entry point reads: plane angles given to the
project-to-map resolver, which only lowers length offsets, or
lengths given to the geographic-offset reader.
Fields
DegenerateAxis
The map x axis is zero-length or non-finite, so no rotation exists.
InvalidScale
The map scale is zero, negative, or non-finite.
InvalidUnit
The map unit is not a length unit this crate can reduce to metres.
UnitCycle
A unit conversion chain revisited an entity or ran deeper than 16.
Both guards exist: a repeated id catches a true loop, the depth cap catches an unbounded chain of distinct units.
UnitRecordDamaged
The reader reported a unit record this resolution reads (#686): the file defines its id more than once, or a lenient read skipped a record with this id while another record holds it. The kept record cannot be shown to be the one the file meant.
Fields
RecordDamaged
The reader reported a record georeferencing reads other than a unit (#690): the CRS, the coordinate operation, its source, or an IFC2X3 property set or property. The file defines its id more than once, or a lenient read skipped a record with this id while another record holds it. The kept record cannot be shown to be the one the file meant.
Fields
RecordsIncomplete
The reader’s diagnostics may hide a record georeferencing reads (#686, #690): a diagnostic of an unclassified kind, a skipped record or duplicate with no id, or a skip naming a held id elsewhere.
MissingSchema
The model header declares no FILE_SCHEMA token.
AmbiguousSchema
The header declares more than one schema, so the profile is ambiguous.
Refused rather than picking one: the choice changes which coordinate operations are legal.
UnsupportedSchema
The declared schema has no projected georeferencing profile here.
IFC2X3 declares no georeferencing entities at all; other tokens may be unrecognised.
MissingProjectFrame
Chaining onto a project frame requires that frame to be supplied.
DegenerateProjectFrame
The supplied project frame is not an invertible rigid transform.
NonFiniteDirection
A direction was zero-length or non-finite, so it cannot be normalised.
RuleViolation
An entity breaks a WHERE rule or an inverse cardinality its declared
release states, such as IFC4X3 IfcCoordinateReferenceSystem.NameOrWKT.
Fields
InvalidCompoundAngle
An IfcCompoundPlaneAngleMeasure breaks a WHERE rule of its type in
the declared release (such as IFC4 ConsistentSign or IFC2X3 WR1),
or the WGS84 range its attribute definition states.
Fields
InvalidParameter
A caller-supplied number is non-finite or outside its documented domain, such as a negative comparison tolerance.
IncompletePropertySets
IFC2X3 property-set georeferencing: an object carries one of
ePSet_MapConversion and ePSet_ProjectedCRS but not the other, so
it states a conversion without a CRS or a CRS without a conversion.
Refused rather than completed from another object: a pair is never joined across hosts.
Fields
AmbiguousPropertySets
IFC2X3 property-set georeferencing: an object carries more than one property set of the same georeferencing name, so which one applies is ambiguous.
Fields
MissingProperty
IFC2X3 property-set georeferencing: a property the conversion
requires is absent, or present with no NominalValue.
Fields
InvalidProperty
IFC2X3 property-set georeferencing: a property is present but is not
an IfcPropertySingleValue holding the value its definition states,
such as an Eastings that is not a finite IfcLengthMeasure.
Trait Implementations§
Source§impl Clone for GeorefError
impl Clone for GeorefError
Source§fn clone(&self) -> GeorefError
fn clone(&self) -> GeorefError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeorefError
impl Debug for GeorefError
Source§impl Display for GeorefError
impl Display for GeorefError
Source§impl Error for GeorefError
impl Error for GeorefError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()