C# Класс Earthworm.AO.RelationalOpExt

Provides extension methods for IGeometry so that functions such as spatial predicates can be invoked directly against shape objects.
Показать файл Открыть проект

Открытые методы

Метод Описание
Contains ( this shape, IGeometry comparisonShape ) : bool

Indicates if this geometry contains the other geometry.

Crosses ( this shape, IGeometry comparisonShape ) : bool

Indicates if the two geometries intersect in a geometry of lesser dimension.

Disjoint ( this shape, IGeometry comparisonShape ) : bool

Indicates if the two geometries share no points in common.

DistanceTo ( this shape, IGeometry comparisonShape ) : double

Calculates the distance from the current geometry to the other geometry.

Equals2 ( this shape, IGeometry comparisonShape ) : bool

Indicates if the two geometries are of the same type and define the same set of points in the plane.

Equals2 ( this shape, IPoint comparisonShape ) : bool

Indicates if the two points are the same.

Intersects ( this shape, IGeometry comparisonShape ) : bool

Indicates if this geometry intersects the other geometry.

Overlaps ( this shape, IGeometry comparisonShape ) : bool

Indicates if the intersection of the two geometries has the same dimension as one of the input geometries.

Relation ( this shape, IGeometry comparisonShape, string relationDescription ) : bool

Indicates if the defined relationship exists.

Touches ( this shape, IGeometry comparisonShape ) : bool

Indicates if the boundaries of the geometries intersect.

Within ( this shape, IGeometry comparisonShape ) : bool

Indicates if this geometry is contained (is within) another geometry.

Within ( this shape, IGeometry comparisonShape, double distance ) : bool

Indicates if this geometry is within the distance of (buffer intersects) another geometry.

Описание методов

Contains() публичный статический Метод

Indicates if this geometry contains the other geometry.
public static Contains ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

Crosses() публичный статический Метод

Indicates if the two geometries intersect in a geometry of lesser dimension.
public static Crosses ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

Disjoint() публичный статический Метод

Indicates if the two geometries share no points in common.
public static Disjoint ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

DistanceTo() публичный статический Метод

Calculates the distance from the current geometry to the other geometry.
public static DistanceTo ( this shape, IGeometry comparisonShape ) : double
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат double

Equals2() публичный статический Метод

Indicates if the two geometries are of the same type and define the same set of points in the plane.
public static Equals2 ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

Equals2() публичный статический Метод

Indicates if the two points are the same.
public static Equals2 ( this shape, IPoint comparisonShape ) : bool
shape this The current geometry.
comparisonShape IPoint The geometry to compare with.
Результат bool

Intersects() публичный статический Метод

Indicates if this geometry intersects the other geometry.
public static Intersects ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

Overlaps() публичный статический Метод

Indicates if the intersection of the two geometries has the same dimension as one of the input geometries.
public static Overlaps ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

Relation() публичный статический Метод

Indicates if the defined relationship exists.
public static Relation ( this shape, IGeometry comparisonShape, string relationDescription ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
relationDescription string Description of the spatial relation (Shape Comparison Language).
Результат bool

Touches() публичный статический Метод

Indicates if the boundaries of the geometries intersect.
public static Touches ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

Within() публичный статический Метод

Indicates if this geometry is contained (is within) another geometry.
public static Within ( this shape, IGeometry comparisonShape ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
Результат bool

Within() публичный статический Метод

Indicates if this geometry is within the distance of (buffer intersects) another geometry.
public static Within ( this shape, IGeometry comparisonShape, double distance ) : bool
shape this The current geometry.
comparisonShape IGeometry The geometry to compare with.
distance double The distance in the map unit of the current shape.
Результат bool