ESRI.ArcGIS.ADF.ArcGISServer
Relation(Generic List,Generic List,esriGeometryRelationEnum,String) Method
See Also 
ESRI.ArcGIS.ADF.ArcGISServer Namespace > GeometryServerProxy Class > Relation Method : Relation(Generic List,Generic List,esriGeometryRelationEnum,String) Method




geometries1
The first set of geometries in the comparison.
geometries2
The second set of geometries in the comparison.
relationName
The spatial relationship to be tested between the two sets of geometries. If esriGeometryRelationRelation is specified, then the comparisonString parameter must be specified.
relationParameter
The 'Shape Comparison Language' string to be evaluated. Strings such as RELATE(G1, G2, "FFFTTT***") are accepted, in addition to other kinds of strings. This string describes the spatial relationship to be tested when the spatialRelationship parameter is specified as esriGeometryRelationRelation.
Computes the set of pairs of geometries from geometries1 and geometries2 that belong to the specified relation. Both arrays are assumed to be in the same spatial reference, denoted by the spatial reference of the first geometry in geometries1. The relations are evaluated in 2D. Z coordinates are not used. Geometry types cannot be mixed within an array. Note that if the spatialRelationship is specified as esriGeometryRelationRelation, the relationParam parameter describes the spatial relationship and must be specified.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Relation( _
   ByVal geometries1 As List(Of Geometry), _
   ByVal geometries2 As List(Of Geometry), _
   ByVal relationName As esriGeometryRelationEnum, _
   ByVal relationParameter As String _
) As List(Of RelationResult)
Visual Basic (Usage)Copy Code
Dim instance As GeometryServerProxy
Dim geometries1 As List(Of Geometry)
Dim geometries2 As List(Of Geometry)
Dim relationName As esriGeometryRelationEnum
Dim relationParameter As String
Dim value As List(Of RelationResult)
 
value = instance.Relation(geometries1, geometries2, relationName, relationParameter)
C# 
public List<RelationResult> Relation( 
   List<Geometry> geometries1,
   List<Geometry> geometries2,
   esriGeometryRelationEnum relationName,
   string relationParameter
)

Parameters

geometries1
The first set of geometries in the comparison.
geometries2
The second set of geometries in the comparison.
relationName
The spatial relationship to be tested between the two sets of geometries. If esriGeometryRelationRelation is specified, then the comparisonString parameter must be specified.
relationParameter
The 'Shape Comparison Language' string to be evaluated. Strings such as RELATE(G1, G2, "FFFTTT***") are accepted, in addition to other kinds of strings. This string describes the spatial relationship to be tested when the spatialRelationship parameter is specified as esriGeometryRelationRelation.

See Also

© 2010 All Rights Reserved.