com.esri.arcgis.geometry
Interface IConstructPoint2

All Superinterfaces:
IConstructPoint, Serializable
All Known Implementing Classes:
Point

public interface IConstructPoint2
extends IConstructPoint, Serializable

Provides access to additional point construction methods.

Product Availability

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


Method Summary
 void constructAverage(IPointCollection points, int attributeType)
          Constructs the geometric average of the input point collection.
 
Methods inherited from interface com.esri.arcgis.geometry.IConstructPoint
constructAlong, constructAngleBisector, constructAngleDistance, constructAngleIntersection, constructDeflection, constructDeflectionIntersection, constructOffset, constructParallel, constructPerpendicular, constructThreePointResection
 

Method Detail

constructAverage

void constructAverage(IPointCollection points,
                      int attributeType)
                      throws IOException,
                             AutomationException
Constructs the geometric average of the input point collection. Optionally uses the specified attribute as a source of weights on the locations of the points.

Remarks

If attributeType is esriAttributeNone then the average point location is computed; otherwise the attribute specified by attributeType serves as a weight. Points whose weight attribute is NaN are ignored (a weight of 0 has a similar affect). The resulting point will have the (weighted) average for all their attributes. However this does not apply to ID's; no average is calculated for them in any case; but thay can be used as weight.

Only the following attributeType values are permitted: esriAttributeNone, esriAttributeZ, esriAttributeM, esriAttributeID.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
points - A reference to a com.esri.arcgis.geometry.IPointCollection (in)
attributeType - A com.esri.arcgis.geometry.esriGeometryAttributes constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.