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




An object that represents a related group of Points.

Object Model

Multipoint Class

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.

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

© 2011 All Rights Reserved.