C# Class SharpMap.Geometries.SpatialRelations

Class defining a set of named spatial relationship operators for geometric shape objects.
显示文件 Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

Method Description
Contains ( Geometry sourceGeometry, Geometry otherGeometry ) : bool

Returns true if otherGeometry is wholly contained within the source geometry. This is the same as reversing the primary and comparison shapes of the Within operation.

Crosses ( Geometry g1, Geometry g2 ) : bool

Returns true if the intersection of the two geometries results in a geometry whose dimension is less than the maximum dimension of the two geometries and the intersection geometry is not equal to either. geometry.

Disjoint ( Geometry g1, Geometry g2 ) : bool

Returns true if otherGeometry is disjoint from the source geometry.

Equals ( Geometry g1, Geometry g2 ) : bool

Returns true if otherGeometry is of the same type and defines the same point set as the source geometry.

Intersects ( Geometry g1, Geometry g2 ) : bool

Returns true if there is any intersection between the two geometries.

Overlaps ( Geometry g1, Geometry g2 ) : bool

Returns true if the intersection of the two geometries results in an object of the same dimension as the input geometries and the intersection geometry is not equal to either geometry.

Touches ( Geometry g1, Geometry g2 ) : bool

Returns true if the only points in common between the two geometries lie in the union of their boundaries.

Within ( Geometry g1, Geometry g2 ) : bool

Returns true if the primary geometry is wholly contained within the comparison geometry.

Method Details

Contains() public static method

Returns true if otherGeometry is wholly contained within the source geometry. This is the same as reversing the primary and comparison shapes of the Within operation.
public static Contains ( Geometry sourceGeometry, Geometry otherGeometry ) : bool
sourceGeometry Geometry
otherGeometry Geometry
return bool

Crosses() public static method

Returns true if the intersection of the two geometries results in a geometry whose dimension is less than the maximum dimension of the two geometries and the intersection geometry is not equal to either. geometry.
public static Crosses ( Geometry g1, Geometry g2 ) : bool
g1 Geometry
g2 Geometry
return bool

Disjoint() public static method

Returns true if otherGeometry is disjoint from the source geometry.
public static Disjoint ( Geometry g1, Geometry g2 ) : bool
g1 Geometry
g2 Geometry
return bool

Equals() public static method

Returns true if otherGeometry is of the same type and defines the same point set as the source geometry.
public static Equals ( Geometry g1, Geometry g2 ) : bool
g1 Geometry source geometry
g2 Geometry other Geometry
return bool

Intersects() public static method

Returns true if there is any intersection between the two geometries.
public static Intersects ( Geometry g1, Geometry g2 ) : bool
g1 Geometry
g2 Geometry
return bool

Overlaps() public static method

Returns true if the intersection of the two geometries results in an object of the same dimension as the input geometries and the intersection geometry is not equal to either geometry.
public static Overlaps ( Geometry g1, Geometry g2 ) : bool
g1 Geometry
g2 Geometry
return bool

Touches() public static method

Returns true if the only points in common between the two geometries lie in the union of their boundaries.
public static Touches ( Geometry g1, Geometry g2 ) : bool
g1 Geometry
g2 Geometry
return bool

Within() public static method

Returns true if the primary geometry is wholly contained within the comparison geometry.
public static Within ( Geometry g1, Geometry g2 ) : bool
g1 Geometry
g2 Geometry
return bool