ESRI.ArcGIS.ADF.IMS
Multipoint Class
Members  Example  See Also 
ESRI.ArcGIS.ADF.IMS.Geometry Namespace : Multipoint Class




An object that represents a related group of Points.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class Multipoint 
   Inherits Geometry
Visual Basic (Usage)Copy Code
Dim instance As Multipoint
C# 
[SerializableAttribute()]
public class Multipoint : Geometry 

Example

The example below creates a Filter and a Multipoint as the geometry of the Filter.

For an example of Multipoint data returned as the geometry of features from the query, see FeatureTable.

C#Copy Code
Filter queryFilter = new Filter();  

  

ESRI.ArcGIS.ADF.IMS.Geometry.Multipoint multiPt = 

    new ESRI.ArcGIS.ADF.IMS.Geometry.Multipoint; 

  

ESRI.ArcGIS.ADF.IMS.Geometry.Point pt; 

pt = new ESRI.ArcGIS.ADF.IMS.Geometry.Point(-76.0, 42.0);  

multiPt.Points.Add(pt); 

pt = new ESRI.ArcGIS.ADF.IMS.Geometry.Point(-98.2, 35.9); 

multiPt.Points.Add(pt); 

  

queryFilter.Geometry = multiPt; 

    
Visual BasicCopy Code
Dim queryFilter As New Filter()



Dim multiPt As New _

    ESRI.ArcGIS.ADF.IMS.Geometry.Multipoint



Dim pt As ESRI.ArcGIS.ADF.IMS.Geometry.Point

pt = New ESRI.ArcGIS.ADF.IMS.Geometry.Point(-76.0, 42.0)

multiPt.Points.Add(pt)

pt = New ESRI.ArcGIS.ADF.IMS.Geometry.Point(-98.2, 35.9)

multiPt.Points.Add(pt)



queryFilter.Geometry = multiPt

Remarks

Multipoint may be used where a Geometry type is allowed and you wish to use multiple points instead of a single point. The two situations are when selecting features with a filter (Filter), when adding points to a GeometryElement for use in an acetate layer, and when projecting geometry with Projection. In addition, Multipoint data will be returned when querying a point layer and geometry is requested.

For more information on uses of geometry objects including Multipoint, see Geometry.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.IMS.Geometry.Geometry
      ESRI.ArcGIS.ADF.IMS.Geometry.Multipoint

See Also

© 2010 All Rights Reserved.