C# Class Earthworm.AO.RelationalOpExt

Provides extension methods for IGeometry so that functions such as spatial predicates can be invoked directly against shape objects.
ファイルを表示 Open project: jshirota/Earthworm

Public Methods

Method Description
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.

Method Details

Contains() public static method

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.
return bool

Crosses() public static method

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.
return bool

Disjoint() public static method

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.
return bool

DistanceTo() public static method

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.
return double

Equals2() public static method

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.
return bool

Equals2() public static method

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.
return bool

Intersects() public static method

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.
return bool

Overlaps() public static method

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.
return bool

Relation() public static method

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).
return bool

Touches() public static method

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.
return bool

Within() public static method

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.
return bool

Within() public static method

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.
return bool