ArcObjects Library Reference  (Geometry)    

IRelationalOperator.Crosses Method

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

[Visual Basic 6.0]
Function Crosses(
    ByVal other As IGeometry _
) As Boolean
[Visual Basic .NET]
Public Function Crosses ( _
    ByVal other As IGeometry _
) As Boolean
[C#]
public bool Crosses (
    IGeometry other
);
[Java]
public Boolean crosses (
    IGeometry other
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Crosses(
  IGeometry* other,
  VARIANT_BOOL* Crosses
);
[C++]

Parameters

other

  other is a parameter of type IGeometry

Crosses [out, retval]

  Crosses is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Two polylines cross if they share only points in common, at least one of which is not an endpoint.  A polyline and an polygon cross if they share a polyline in common on the interior of the polygon which is not equivalent to the entire polyline.  Cross is a Clementini operator.

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

Cross only applies to polyline/polyline, polyline/polygon, or polygon/polyline relations.

 

Crosses examples. Only "true" relationships are showed in this picture.

See Also

IRelationalOperator Interface

Example

IRelationalOperator_Example

 


Feedback Send feedback on this page