logo

Struct geo::algorithm::relate::IntersectionMatrix[][src]

pub struct IntersectionMatrix(_);
Expand description

Models a Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix.

DE-9IM matrix values (such as “212FF1FF2”) specify the topological relationship between two Geometeries.

DE-9IM matrices are 3x3 matrices that represent the topological locations that occur in a geometry (Interior, Boundary, Exterior).

The indices are provided by the enum cases CoordPos::Inside, CoordPos::OnBoundary, CoordPos::Outside.

The matrix entries represent the Dimensions of each intersection.

For a description of the DE-9IM and the spatial predicates derived from it, see the following references:

This implementation is heavily based on that from the JTS project.

Implementations

Tests if this matrix matches [FF*FF****].

returns true if the two geometries related by this matrix are disjoint

Tests if is_disjoint returns false.

returns true if the two geometries related by this matrix intersect.

Tests whether this matrix matches [T*F**F***].

returns true if the first geometry is within the second.

Tests whether this matrix matches [T*****FF*].

returns true if the first geometry contains the second.

Trait Implementations

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.