ESRI.ArcGIS.Mobile
Relate Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Geometries Namespace > Geometry Class : Relate Method

geometry

The geometry compared with this geometry.

relationship

the relationship could be one of the following:

GeometricRelationship.Any = 0,
GeometricRelationship.Intersect = 1,
GeometricRelationship.Touch = 4,
GeometricRelationship.Overlap = 5,
GeometricRelationship.Cross = 6,
GeometricRelationship.Within = 7,
GeometricRelationship.Contain = 8,
GeometricRelationship.Disjoint = 10

Returns true if the two geometries respect the specified spatial relation.

Syntax

Visual Basic (Declaration) 
Public Overridable Function Relate( _
   ByVal geometry As IGeometry, _
   ByVal relationship As GeometricRelationshipType _
) As Boolean
C# 
public virtual bool Relate( 
   IGeometry geometry,
   GeometricRelationshipType relationship
)

Parameters

geometry

The geometry compared with this geometry.

relationship

the relationship could be one of the following:

GeometricRelationship.Any = 0,
GeometricRelationship.Intersect = 1,
GeometricRelationship.Touch = 4,
GeometricRelationship.Overlap = 5,
GeometricRelationship.Cross = 6,
GeometricRelationship.Within = 7,
GeometricRelationship.Contain = 8,
GeometricRelationship.Disjoint = 10

Remarks

For more information on spatial relations (DE-9IM), see ArcGIS developer help on Spatial relations.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.