Class PolylineClass

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll
[Guid("30707210-52D5-11D0-A8F2-00608C85EDE5")]
[ClassInterface(ClassInterfaceType.None)]
public class PolylineClass : Polyline, IPointCollection4, IPointCollection3, IPointCollection2, IPointCollection, IGeometry5, IGeometry4, IGeometry3, IGeometry2, ISegmentCollection, IGeometryCollection, ICurve3, ICurve2, IPolycurve2, IPolycurveGeodetic, IPolycurve4, IConstructGeodetic, IPolyline5, IPolyline4, IPolyline3, IPolyline2, IPolyline, IPolycurve, ICurve, IGeometry, IMAware, IMSegmentation4, IMSegmentation3, IMSegmentation2, IMSegmentation, IMCollection, IZAware, IZ2, IZ, IZCollection, IPointIDAware, ISpatialIndex2, ISpatialIndex, IRelationalOperator2, IRelationalOperator, IProximityOperator, ITopologicalOperator5, ITopologicalOperator4, ITopologicalOperator3, ITopologicalOperator2, ITopologicalOperator, ITopologicalOperator6, IHitTest, IHitTest3D, IConstructCurve3, IConstructCurve2, IConstructCurve, ISupportErrorInfo, IPersistStream, IPersist, IClone, ITransform2D, ITransform3D, IXMLSerialize, IMSnap, IPolycurve3D, ICurve3D, IProximityOperator3D, IRelationalOperator3D2, IRelationalOperator3D
Inheritance
PolylineClass
Implements
Inherited Members

Constructors

PolylineClass()

public PolylineClass()

Explicit Interface Implementations

AddGeometries(int, ref IGeometry)

Adds references to the specified geometries. This method is intended for internal use only.

virtual void AddGeometries(int Count, ref IGeometry newGeometries)

Parameters

Count int
newGeometries IGeometry

Remarks


The geometries are added last in the list. Use an array of geometries (IGeometry) and the exact number (count ) of elements in the array. Exceeding the boundary of the array will cause an application error. If you don't want to place the geometries last in the collection then use the InsertGeometries method.



[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

AddGeometry(IGeometry, ref object, ref object)

Adds a reference to the input geometry either at the end, or before, or after the specified index.

virtual void AddGeometry(IGeometry inGeometry, ref object before, ref object after)

Parameters

inGeometry IGeometry
before object
after object

Remarks

When applying the AddGeometry method give either the before or after index and not both. Adding a Geometry to the collection as the first one is done by setting the before index as 0.

The spatial reference of the GeometryCollection is transferred (objects projected if necessary) to any objects added to it. However the spatial reference of the added geometry is not transferred to the GeometryCollection. Always make sure to set the spatial reference on the object GeometryCollection prior to add other geometries to it to avoid creating invalid geometry. For example, adding geometry objects to a GeometryBag that doesn't have a well-defined spatial reference will set an undefined spatial reference to all the objects added to the bag. Using this GeometryBag may cause unexpected behavior with the ITopologicalOperator::ConstructUnion method.

 
[C#]

IPoint pnt = new PointClass();

pnt.PutCoords(x, y);

IGeometryCollection geomColl = new MultipointClass() as IGeometryCollection;

object obj = Type.Missing;

geomColl.AddGeometry(pnt, ref obj, ref obj);

AddGeometryCollection(IGeometryCollection)

Adds references to geometries in the input collection.

virtual void AddGeometryCollection(IGeometryCollection newGeometries)

Parameters

newGeometries IGeometryCollection

AddPoint(IPoint, ref object, ref object)

Adds a vertex to a Path, Ring, Polyline, or Polygon; or adds a reference to the input point to a Multipoint, TriangleFan, or TriangleStrip.

virtual void AddPoint(IPoint inPoint, ref object before, ref object after)

Parameters

inPoint IPoint
before object
after object

AddPointCollection(IPointCollection)

Adds copies of points in the input point collection to this Path, Ring, Polyline, or Polygon; or adds references to the points in the collection to this Multipoint, TriangleFan, or TriangleStrip.

virtual void AddPointCollection(IPointCollection newPoints)

Parameters

newPoints IPointCollection

AddPoints(int, ref IPoint)

Adds copies of the input points as vertices to this Path, Ring, Polyline, or Polygon; or references to the input points to this Multipoint, TriangleFan, or TriangleStrip. This method is intended for internal use only.

virtual void AddPoints(int Count, ref IPoint newPoints)

Parameters

Count int
newPoints IPoint

AddSegment(ISegment, ref object, ref object)

Adds a reference to the input segment at the end, or before or after a specified index.

virtual void AddSegment(ISegment inSegment, ref object before, ref object after)

Parameters

inSegment ISegment
before object
after object

AddSegmentCollection(ISegmentCollection)

Adds references to the segments from the specified segment collection.

virtual void AddSegmentCollection(ISegmentCollection segments)

Parameters

segments ISegmentCollection

Remarks

AddSegmentCollection add the other geometry to the last part of the current geometry.
For example, adding a polyline (with one part) to another polyline (with one part)
is adding the second polyline segments into the first part of the other polyline
even if the polylines are disjoint.


AddSegments(int, ref ISegment)

Adds references to segments. This method is intended for internal use only.

virtual void AddSegments(int Count, ref ISegment newSegments)

Parameters

Count int
newSegments ISegment

Remarks

Note: the array must contains only ISegment pointers, otherwise it night crash the application.

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

AddWKSPointZs(int, ref WKSPointZ)

Adds vertices/points to this Path, Ring, Polyline, Polygon, Multipoint, TriangleFan, Triangles, TriangleStrip, or MultiPatch.

virtual void AddWKSPointZs(int Count, ref WKSPointZ pointStructures)

Parameters

Count int
pointStructures WKSPointZ

AddWKSPoints(int, ref WKSPoint)

Adds vertices to this Path, Ring, Polyline, or Polygon, or adds new points to this Multipoint, TriangleFan, or TriangleStrip.

virtual void AddWKSPoints(int Count, ref WKSPoint pointStructures)

Parameters

Count int
pointStructures WKSPoint

AllowIndexing

virtual bool AllowIndexing { get; set; }

Returns

bool

ApproximateByBeziers(IPolycurve, ref object, ref object)

Constructs a curve which approximates the input curve by a small number of Bezier segments.

virtual void ApproximateByBeziers(IPolycurve pInCurve, ref object pMaxDistance, ref object smoothClosedParts)

Parameters

pInCurve IPolycurve
pMaxDistance object
smoothClosedParts object

Assign(IClone)

Assigns the properties of src to the receiver.

virtual void Assign(IClone src)

Parameters

src IClone

Boundary

The boundary of this geometry. A polygon's boundary is a polyline. A polyline's boundary is a multipoint. A point or multipoint's boundary is an empty point or multipoint.

virtual IGeometry Boundary { get; }

Returns

IGeometry

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

This method does not support GeometryBags.



 

Boundary Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

Buffer(double)

Constructs a polygon that is the locus of points at a distance less than or equal to a specified distance from this geometry.

virtual IGeometry Buffer(double distance)

Parameters

distance double

Returns

IGeometry

Remarks


The buffer distance is in the same units as the source shape that is being buffered.

A negative distance can be specified to produce a buffer inside the original polygon. This cannot be used with polyline.

ITopologicalOperator methods must be applied on top-level geometries only. Top-Level geometries are point, multipoint, polyline and polygon. To use this method with segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped with a top-level type.

A buffer distance of 0 will generate an empty polygon with the input geometry being a polyline and multipoint.  However, if the input geometry is a point, the output will be the original point.

Buffer Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods


[C#]//This example demonstrates how to use ITopologicalOperator::Buffer
private void BufferArea()
  {
  IPoint[] points = new IPoint[5];
  //The spatial reference should be set here using IGeometry::SpatialReference (Code skipped here)
  for(int i = 0; i < points.Length; i++)
  {
     points[i] = new PointClass();
  }
  points[0].PutCoords(0, 0);
  points[1].PutCoords(0, 10);
  points[2].PutCoords(10, 10);
  points[3].PutCoords(10, 0);
  points[4].PutCoords(0, 0);
  IPointCollection4 pointCollection = new PolygonClass();
  IGeometryBridge geometryBride = new GeometryEnvironmentClass();
  geometryBride.AddPoints(pointCollection, ref points);
  IArea area = pointCollection as IArea;
  System.Windows.Forms.MessageBox.Show("Area original polygon : " + area.Area);
  ITopologicalOperator topologicalOperator = pointCollection as ITopologicalOperator;
  //Outside buffer
  IPolygon polygon = topologicalOperator.Buffer(1) as IPolygon;
  area = polygon as IArea;
  System.Windows.Forms.MessageBox.Show( "Area polygon positive distance : " + area.Area);
  //Inside buffer
  polygon = topologicalOperator.Buffer(-1) as IPolygon;
  area = polygon as IArea;
  System.Windows.Forms.MessageBox.Show("Area polygon negative distance : " + area.Area);
}




























 

 

 

 

 

 

[Visual Basic .NET]

    Sub exampleITopologicalOperator_Buffer()
        Dim ptc As ESRI.ArcGIS.Geometry.IPointCollection, i As Long, pa As ESRI.ArcGIS.Geometry.IArea, ptopo As ESRI.ArcGIS.Geometry.ITopologicalOperator
        ptc = New ESRI.ArcGIS.Geometry.Polygon
        Dim pt(4) As ESRI.ArcGIS.Geometry.IPoint, poutPoly As ESRI.ArcGIS.Geometry.IPolygon
        'The spatial reference should be set here using IGeometry::SpatialReference (Code skipped here)
        For i = 0 To 4

pt(i) = New ESRI.ArcGIS.Geometry.Point
Next
pt(0).PutCoords(0, 0)
pt(1).PutCoords(0, 10)
pt(2).PutCoords(10, 10)
pt(3).PutCoords(10, 0)
pt(4).PutCoords(0, 0)
Dim geometryBride As ESRI.ArcGIS.Geometry.IGeometryBridge
geometryBride = New ESRI.ArcGIS.Geometry.GeometryEnvironmentClass()

geometryBride.AddPoints(ptc, pt)
pa = ptc
Debug.Print("Area original polygon : " & pa.Area)
ptopo = ptc
poutPoly = ptopo.Buffer(1) 'Outside buffer
pa = poutPoly
Debug.Print("Area polygon positive distance : " & pa.Area)
poutPoly = ptopo.Buffer(-1) 'Inside buffer
pa = poutPoly
Debug.Print("Area polygon negative distance : " & pa.Area)
End Sub

























 

CalculateNonSimpleMs()

Redefines the non-simple Ms to be values obtained from interpolation of surrounding defined Ms, or extrapolation of Ms.

virtual void CalculateNonSimpleMs()

CalculateNonSimpleZs()

Calculates the non-simple Z values by extrapolation/interpolation for polylines and interpolation for polygons.

virtual void CalculateNonSimpleZs()

CalibrateByDistance(IEnumVertex, int, bool, double)

Calibrates Ms of existing vertices using new Ms from the input points and the shortest path distances along the polyline between those points. The update method is given as a combination of esriGeometryUpdateMEnum values.

virtual IEnumSplitPoint CalibrateByDistance(IEnumVertex Points, int updateHow, bool ignoreGaps, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
ignoreGaps bool
cutoffDistance double

Returns

IEnumSplitPoint

Remarks

The updateHow argument is given as a combination of esriGeometryUpdateMEnum values. When combining multiple values, the bitwise Or operator should always be used. This assures an error-free combination of the values (as long as the attempted combination is valid). Do not use the addition operator (+) to combine the values as unexpected results may occur.

For example, to interpolate between the input points and to extrapolate before and after the input points, you would use 7, which equates to: esriGeometryInterpolate OR esriGeometryExtrapolateBefore OR esriGeometryExtrapolateAfter. A value of 0 will only split the input polyline and assign the Ms value to the new created vertex. If an input point has the same X (or projected to the same X) as an existing vertex the Ms value of the existing vertex will be updated.

Note : The "After" and "Before" for the updateHow parameter is define by the order of the points in the multipoints. Ex : If the points are define from left to right the "Before" will be at the left of the first point and the "After" will be at the right of the last point.

The cutoffDistance parameter is an input Double that represents the distance from the polyline from where points are not considered anymore as being valid calibration points.

The following picture demonstrates graphically  the method behavior. A updateHow paramater of 7 has been used.

 

esriGeometryInterpolate =
0001 (1)
esriGeometryExtrapolateBefore = 0010 (2)
esriGeometryExtrapolateAfter = 0100 (4)

0001
0010
0100
----
0111
[C#]
[C#]

public void CalibratePolyLineByDistance(IPolyline polyline, IMultipoint multipoint, int updateHow, bool ignoreGaps, double cutOffDistance)
{

/* This function will use IMSegmentation2.CalibrateByDistance. This method calibrates the Ms using geometric distance. If you want to calibrate using some existing M values, then use IMSegmentation2.CalibrateByMs updateHow is a bitwise combination of these three values: esriGeometryInterpolate = 1 esriGeometryExtrapolateBefore = 2 esriGeometryExtrapolateAfter = 4 Note that CalibrateByDistance does not require that MultiPoint's points fall on top of the PolyLine. You might consider adding some logic to make sure that the points fall on top of (e.g. ITopologicalOperator.Intersect) or are within a tolerance (e.g. IProximityOperator.ReturnDistance) If you pass in a PolyLine that is from a data source of unknown quality, you may consider calling IGeometryCollection.GeometriesChanged before you call IPolyLine.SimplifyNetwork below. This is because SimplifyNetwork will not do anything if the geometry is assumed to be simple. Calling GeometriesChanged tells the geometry that it is not simple. */

//This operation must be performed on a simple geometry polyline.SimplifyNetwork();

//The MultiPoint's points should have Ms IMAware mAware = multipoint as IMAware; if(!mAware.MAware) { return; } //The PolyLine should be M Aware as well. mAware = polyline as IMAware; if(!mAware.MAware) { return; } IMSegmentation2 mSegmentation = polyline as IMSegmentation2; IPointCollection pointCollection = multipoint as IPointCollection; IEnumVertex enumVertex = pointCollection.EnumVertices; IEnumSplitPoint enumSplitPoint = mSegmentation.CalibrateByDistance(enumVertex, updateHow, ignoreGaps, cutOffDistance);

//Note that we do nothing with enumSplitPoint. IEnumSplitPoint specializes //IEnumVertex and gives additional information about the locations in a //PolyLine where it was split by a set of input points

}

[Visual Basic .NET]

    Public Sub CalibratePolyLineByDistance(ByVal pPl As ESRI.ArcGIS.Geometry.IPolyline, ByVal pMP As ESRI.ArcGIS.Geometry.IMultipoint, _
        ByVal updateHow As Long, ByVal ignoreGaps As Boolean, ByVal dCOffDist As Double)

        '+++ This function will use IMSegmentation2::CalibrateByDistance. This function
        '+++ calibrates the Ms using geometric distance. If you want to calibrate using
        '+++ some existing M values, then use IMSegmentation2::CalibrateByMs

        '+++ updateHow is a bitwise combination of these three values:

'+++       esriGeometryInterpolate = 1

'+++       esriGeometryExtrapolateBefore = 2

'+++       esriGeometryExtrapolateAfter = 4


        '+++ Note that CalibrateByDistance does not require that MultiPoint's points
        '+++ fall on top of the PolyLine. You might consider adding some logic to make
        '+++ sure that the points fall on top of (e.g. ITopologicalOperator::Intersect)
        '+++ or are within a tolerance (e.g. IProximityOperator::ReturnDistance)


        '+++ If you pass in a PolyLine that is from a data source of unknown quality,
        '+++ you may consider calling IGeometryCollection::GeometriesChanged before
        '+++ you call IPolyLine::SimplifyNetwork below. This is because SimplifyNetwork
        '+++ will not do anything if the geometry is assumed to be simple. Calling
        '+++ GeometriesChanged tells the geometry that it is not simple.



        '+++ This operation must be performed on a simple geometry

pPl.SimplifyNetwork()

        Dim pMA As ESRI.ArcGIS.Geometry.IMAware
        Dim pMSeg As ESRI.ArcGIS.Geometry.IMSegmentation2

        '+++ The MultiPoint's points should have Ms
        pMA = pMP
        If Not pMA.MAware Then _

Err.Raise(vbObjectError + 11282000, "CalibratePolyLineByDistance", "MultiPoint Not M Aware")


        '+++ The PolyLine should be M Aware as well.
        pMA = Nothing
        pMA = pPl
        If Not pMA.MAware Then

Err.Raise(vbObjectError + 11282000, "CalibratePolyLineByDistance", "PolyLine Not M Aware")
Else

Dim pPC As ESRI.ArcGIS.Geometry.IPointCollection

Dim pEnumV As ESRI.ArcGIS.Geometry.IEnumVertex

Dim pEnumSp As ESRI.ArcGIS.Geometry.IEnumSplitPoint

pMSeg = pMA

pPC = pMP

pEnumV = pPC.EnumVertices

pEnumSp = pMSeg.CalibrateByDistance(pEnumV, updateHow, ignoreGaps, dCOffDist)
End If












        '+++ Note that we do nothing with pEnumSp. IEnumSplitPoint specializes
        '+++ IEnumVertex and gives additional information about the locations in a
        '+++ PolyLine where it was split by a set of input points

    End Sub

CalibrateByDistance3D(IEnumVertex, int, bool, double)

Calibrates Ms of existing vertices using new Ms from the input points and the shortest 3D path distances along the polyline between those points. The update method is given as a combination of esriGeometryUpdateMEnum values.

virtual IEnumSplitPoint CalibrateByDistance3D(IEnumVertex Points, int updateHow, bool ignoreGaps, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
ignoreGaps bool
cutoffDistance double

Returns

IEnumSplitPoint

CalibrateByMs(IEnumVertex, int, double)

Calibrates Ms of existing vertices using new Ms from the input points and existing Ms along shortest paths between those points. The update method is given as a combination of esriGeometryUpdateMEnum values.

virtual IEnumSplitPoint CalibrateByMs(IEnumVertex Points, int updateHow, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
cutoffDistance double

Returns

IEnumSplitPoint

Remarks

The updateHow argument is given as a combination of esriGeometryUpdateMEnum values. When combining multiple values, the bitwise Or operator should always be used. This assures an error-free combination of the values (as long as the attempted combination is valid). Do not use the addition operator (+) to combine the values as unexpected results may occur.

The cutoffDistance parameter is an input Double that represents the distance from the polyline from where points are not considered anymore as being valid calibration points.

For example, to interpolate between the input points and to extrapolate before and after the input points, you would use 7, which equates to: esriGeometryInterpolate OR esriGeometryExtrapolateBefore OR esriGeometryExtrapolateAfter

esriGeometryInterpolate = 0001 (1)
esriGeometryExtrapolateBefore = 0010 (2)
esriGeometryExtrapolateAfter = 0100 (4)
	0001
	0010
	0100
	----
	0111
[C#]

public void CalibratePolyLineByMs(IPolyline polyline, IMultipoint multipoint, int updateHow, double cutOffDistance)
{
  /*
   This function will use IMSegmentation2.CalibrateByMs. This function
   calibrates the Ms using measure distance. If you want to calibrate using
   some existing geometric distance, then use IMSegmentation2.CalibrateByDistance
 
   updateHow is a bitwise combination of these three values:
         esriGeometryInterpolate = 1
         esriGeometryExtrapolateBefore = 2
         esriGeometryExtrapolateAfter = 4
 
   Note that CalibrateByMs does not require that the MultiPoint's points
   fall on top of the PolyLine. You might consider adding some logic to make
   sure that the points fall on top of (e.g. ITopologicalOperator.Intersect)
   or are within a tolerance (e.g. IProximityOperator.ReturnDistance)
 
   If you pass in a PolyLine that is from a data source of unknown quality,
   you may consider calling IGeometryCollection.GeometriesChanged before
   you call IPolyLine.SimplifyNetwork below. This is because SimplifyNetwork
   will not do anything if the geometry is assumed to be simple. Calling
   GeometriesChanged tells the geometry that it is not simple.
 
   This operation must be performed on a simple geometry
  */























  //This operation must be performed on a simple geometry
  polyline.SimplifyNetwork();
  
  //The MultiPoint's points should have Ms
  IMAware mAware = multipoint as IMAware;
  if(!mAware.MAware)
  {
    return;
  }
  //The PolyLine should be M Aware as well.
  mAware = polyline as IMAware;
  if(!mAware.MAware)
  {
    return;
  }
  IMSegmentation2 mSegmentation = polyline as IMSegmentation2;
  IPointCollection pointCollection = multipoint as IPointCollection;
  IEnumVertex enumVertex = pointCollection.EnumVertices;
  IEnumSplitPoint enumSplitPoint = mSegmentation.CalibrateByMs(enumVertex, updateHow, cutOffDistance);

















  //Note that we do nothing with enumSplitPoint. IEnumSplitPoint specializes
  //IEnumVertex and gives additional information about the locations in a
  //PolyLine where it was split by a set of input points
 
}




[Visual Basic .NET]

    Public Sub CalibratePolyLineByMs(ByVal pPl As ESRI.ArcGIS.Geometry.IPolyline, ByVal pMP As ESRI.ArcGIS.Geometry.IMultipoint, ByVal updateHow As Long, ByVal dCutOffDist As Double)
        '+++ This function will use IMSegmentation2::CalibrateByMs. This function 
        '+++ calibrates the Ms using measure distance. If you want to calibrate using 
        '+++ some existing geometric distance, then use IMSegmentation2::CalibrateByDistance   
        '+++ updateHow is a bitwise combination of these three values: 
        '+++       esriGeometryInterpolate = 1 
        '+++       esriGeometryExtrapolateBefore = 2 
        '+++       esriGeometryExtrapolateAfter = 4   
        '+++ Note that CalibrateByMs does not require that the MultiPoint's points 
        '+++ fall on top of the PolyLine. You might consider adding some logic to make 
        '+++ sure that the points fall on top of (e.g. ITopologicalOperator::Intersect) 
        '+++ or are within a tolerance (e.g. IProximityOperator::ReturnDistance)   
        '+++ If you pass in a PolyLine that is from a data source of unknown quality, 
        '+++ you may consider calling IGeometryCollection::GeometriesChanged before 
        '+++ you call IPolyLine::SimplifyNetwork below. This is because SimplifyNetwork 
        '+++ will not do anything if the geometry is assumed to be simple. Calling 
        '+++ GeometriesChanged tells the geometry that it is not simple.   
        '+++ This operation must be performed on a simple geometry 
        pPl.SimplifyNetwork()
        Dim pMA As ESRI.ArcGIS.Geometry.IMAware
        Dim pMSeg As ESRI.ArcGIS.Geometry.IMSegmentation2
        '+++ The MultiPoint's points should have Ms 
        pMA = pMP
        If Not pMA.MAware Then
            Err.Raise(vbObjectError + 11282000, "CalibratePolyLineByMs", "MultiPoint Not M Aware")
        End If
























        '+++ The PolyLine should be M Aware as well. 
        pMA = Nothing
        pMA = pPl
        If Not pMA.MAware Then
            Err.Raise(vbObjectError + 11282000, "CalibratePolyLineByMs", "PolyLine Not M Aware")
        Else
            Dim pPC As ESRI.ArcGIS.Geometry.IPointCollection
            Dim pEnumV As ESRI.ArcGIS.Geometry.IEnumVertex
            Dim pEnumSp As ESRI.ArcGIS.Geometry.IEnumSplitPoint
            pMSeg = pMA
            pPC = pMP
            pEnumV = pPC.EnumVertices
            pEnumSp = pMSeg.CalibrateByMs(pEnumV, updateHow, dCutOffDist)
        End If
        '+++ Note that we do nothing with pEnumSp. IEnumSplitPoint specializes 
        '+++ IEnumVertex and gives additional information about the locations in a 
        '+++ PolyLine where it was split by a set of input points
    End Sub

















CalibrateByMs3D(IEnumVertex, int, double)

Calibrates Ms of existing vertices using new Ms from the input points and existing Ms along the shortest 3D paths between those points. The update method is given as a combination of esriGeometryUpdateMEnum values.

virtual IEnumSplitPoint CalibrateByMs3D(IEnumVertex Points, int updateHow, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
cutoffDistance double

Returns

IEnumSplitPoint

CentroidEx

The center of gravity (centroid).

virtual IPoint CentroidEx { get; }

Returns

IPoint

Changed

Indicates if a geometry has been changed (edited, projected, etc).

virtual bool Changed { get; set; }

Returns

bool

CheckInvalidate()

Invalidates the spatial index if the geometry has been changed since the index was last constructed.

virtual void CheckInvalidate()

Clip(IEnvelope)

Constructs the intersection of this geometry and the specified envelope.

virtual void Clip(IEnvelope clipperEnvelope)

Parameters

clipperEnvelope IEnvelope

Remarks

Use QueryClipped or QueryClippedDense methods to send the results to a different polygon.

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

ITopologicalOperator Clip Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

ClipDense(IEnvelope, double)

Constructs the intersection of this geometry and the specified envelope; densifies lines in output contributed by the clipping envelope.

virtual void ClipDense(IEnvelope clipperEnvelope, double denseDistance)

Parameters

clipperEnvelope IEnvelope
denseDistance double

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

This method does not support GeometryBags.

ClipEx(IEnvelope, bool)

Constructs the intersection of this geometry and the specified envelope.

virtual void ClipEx(IEnvelope clipperEnvelope, bool bIncludeBoundary)

Parameters

clipperEnvelope IEnvelope
bIncludeBoundary bool

Remarks

ITopologicalOperator5 methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this interface with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bezier Curve), paths or rings, they must be wrapped into high-level geometry types.

ClipToDomain()

Clips the geometry to the domain of the spatial reference. Useful for ensuring that buffers can be fit within the spatial domain of the feature class to which they are being added.

virtual void ClipToDomain()

Clone()

Clones the receiver and assigns the result to *clone.

virtual IClone Clone()

Returns

IClone

ConstructBuffers(int, ref double)

Constructs a set of buffers at various distances. More efficient than calling Buffer repeatedly on the same geometry. This method is intended for internal use only.

virtual IEnumGeometry ConstructBuffers(int numBuffers, ref double distances)

Parameters

numBuffers int
distances double

Returns

IEnumGeometry

Remarks

use the generic version of this method accesible through the GeometryEnvironment singleton object via the IGeometryBridge interface.

 

This method is only implemented for polygons and polylines.

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

ConstructExtended(ICurve, ICurve, int, ref bool)

Constructs an extended version of the 'from' curve that goes to the 'to' curve. The flags are bit-wise combined esriCurveExtension values.

virtual void ConstructExtended(ICurve fromCurve, ICurve toCurve, int extensionFlags, ref bool extensionsPerformed)

Parameters

fromCurve ICurve
toCurve ICurve
extensionFlags int
extensionsPerformed bool

Remarks

This method will return an empty geometry if you attempt to create a polygon from two linear

geometries as input. This is not a way to create a polygon from two polylines.

If the input curve is a polygon the result will be a copy of the polygon.

The flags are bit-wise combined esriCurveExtension values.

ConstructCurve ConstructExtended Example

[C#]
private void ConstructExtended()
{
   //Segment 0
   IPoint point0 = new PointClass();
   point0.PutCoords(0, 0);
   IPoint point1 = new PointClass();
   point1.PutCoords(10, 10);

ILine segment0 = new LineClass(); segment0.PutCoords(point0, point1);

//Segment 1 IPoint point2 = new PointClass(); point2.PutCoords(10, 10); IPoint point3 = new PointClass(); point3.PutCoords(10, 0);

ILine segment1 = new LineClass(); segment1.PutCoords(point2, point3);

//Segment 2 IPoint point4 = new PointClass(); point4.PutCoords(10, 0); IPoint point5 = new PointClass(); point5.PutCoords(0, 0); ILine segment2 = new LineClass(); segment2.PutCoords(point4, point5);

//Polygon object Missing = Type.Missing; ISegmentCollection segmentCollection = new PolygonClass(); segmentCollection.AddSegment(segment0 as ISegment, ref Missing, ref Missing); segmentCollection.AddSegment(segment1 as ISegment, ref Missing, ref Missing); segmentCollection.AddSegment(segment2 as ISegment, ref Missing, ref Missing); ICurve curve = segmentCollection as ICurve;

//Line IPoint point6 = new PointClass(); point6.PutCoords(-10, 20); IPoint point7= new PointClass(); point7.PutCoords(0, 5); ILine line = new Line(); line.PutCoords(point6, point7);

//Polyline ISegmentCollection polyLineSegmentCollection = new PolylineClass(); polyLineSegmentCollection.AddSegment(line as ISegment, ref Missing, ref Missing); ICurve curve1 = polyLineSegmentCollection as ICurve;

//Construct the extend IConstructCurve constructCurve = new PolylineClass(); bool isExtensionPerfomed = false; constructCurve.ConstructExtended(curve, curve1, (int) esriCurveExtension.esriDefaultCurveExtension, ref isExtensionPerfomed); }

[Visual Basic .NET]

    Private Sub ConstructExtended()
        Dim pConstructCurve As ESRI.ArcGIS.Geometry.IConstructCurve
        Dim pCurve1 As ESRI.ArcGIS.Geometry.ICurve
        Dim pCurve2 As ESRI.ArcGIS.Geometry.ICurve
        Dim pPolyLineGeoColl As ESRI.ArcGIS.Geometry.ISegmentCollection
        Dim pPolygonGeoColl As ESRI.ArcGIS.Geometry.ISegmentCollection
        Dim pSeg0 As ESRI.ArcGIS.Geometry.ILine
        Dim pSeg1 As ESRI.ArcGIS.Geometry.ILine
        Dim pSeg2 As ESRI.ArcGIS.Geometry.ILine
        Dim pLine As ESRI.ArcGIS.Geometry.ILine
        Dim pPt0 As ESRI.ArcGIS.Geometry.IPoint
        Dim pPt1 As ESRI.ArcGIS.Geometry.IPoint
        Dim bExtensionPerformed As Boolean
        'Points
        pPt0 = New ESRI.ArcGIS.Geometry.Point
        pPt1 = New ESRI.ArcGIS.Geometry.Point
        'Segment 0
        pSeg0 = New ESRI.ArcGIS.Geometry.Line
        pPt0.PutCoords(0, 0)
        pPt1.PutCoords(10, 10)
        pSeg0.PutCoords(pPt0, pPt1)
        'Segment 1
        pSeg1 = New ESRI.ArcGIS.Geometry.Line
        pPt0.PutCoords(10, 10)
        pPt1.PutCoords(10, 0)
        pSeg1.PutCoords(pPt0, pPt1)
        'Segment 2
        pSeg2 = New ESRI.ArcGIS.Geometry.Line
        pPt0.PutCoords(10, 0)
        pPt1.PutCoords(0, 0)
        pSeg2.PutCoords(pPt0, pPt1)
        'Polygon
        pPolygonGeoColl = New ESRI.ArcGIS.Geometry.Polygon
        pPolygonGeoColl.AddSegment(pSeg0)
        pPolygonGeoColl.AddSegment(pSeg1)
        pPolygonGeoColl.AddSegment(pSeg2)
        pCurve2 = pPolygonGeoColl
        'Line
        pLine = New ESRI.ArcGIS.Geometry.Line
        pPt0.PutCoords(-10, 20)
        pPt1.PutCoords(0, 5)
        pLine.PutCoords(pPt0, pPt1)
        'Polyline
        pPolyLineGeoColl = New ESRI.ArcGIS.Geometry.Polyline
        pPolyLineGeoColl.AddSegment(pLine)
        pCurve1 = pPolyLineGeoColl
        'Construct the extend
        pConstructCurve = New ESRI.ArcGIS.Geometry.Polyline
        pConstructCurve.ConstructExtended(pCurve1, pCurve2, ESRI.ArcGIS.Geometry.esriCurveExtension.esriDefaultCurveExtension, bExtensionPerformed)
    End Sub
















































ConstructExtendedEx(ICurve, ICurve, int, ref bool)

Returns an enumerator which identifies which segments were added to the result polyline by the construction process. The result is not simplified when an enumerator is requested.

virtual IEnumSegment ConstructExtendedEx(ICurve fromCurve, ICurve toCurve, int extensionFlags, ref bool extensionsPerformed)

Parameters

fromCurve ICurve
toCurve ICurve
extensionFlags int
extensionsPerformed bool

Returns

IEnumSegment

ConstructGeodesicCircle(IPoint, ILinearUnit, double, esriCurveDensifyMethod, double)

constructs a geodesic circle centered on the specified point. All densification options are supported (length, angle, deviation).

virtual void ConstructGeodesicCircle(IPoint CenterPoint, ILinearUnit LinearUnit, double Radius, esriCurveDensifyMethod densifyMethod, double densifyParameter)

Parameters

CenterPoint IPoint
LinearUnit ILinearUnit
Radius double
densifyMethod esriCurveDensifyMethod
densifyParameter double

ConstructGeodesicEllipse(IPoint, ILinearUnit, double, double, double, esriCurveDensifyMethod, double)

constructs a geodesic ellipse with origin at the specified point and semi major axis oriented according to the specified azimuth. The 'by angle' and 'by deviation' densification options are supported.

virtual void ConstructGeodesicEllipse(IPoint CenterPoint, ILinearUnit LinearUnit, double semiMajorAxisLength, double semiMinorAxisLength, double semiMajorAxisAzimuth, esriCurveDensifyMethod densifyMethod, double densifyParameter)

Parameters

CenterPoint IPoint
LinearUnit ILinearUnit
semiMajorAxisLength double
semiMinorAxisLength double
semiMajorAxisAzimuth double
densifyMethod esriCurveDensifyMethod
densifyParameter double

ConstructGeodeticLineFromDistance(esriGeodeticType, IPoint, ILinearUnit, double, double, esriCurveDensifyMethod, double)

constructs a geodetic line with the specified length and azimuth. The 'by length' and 'by deviation' densification options are supported.

virtual void ConstructGeodeticLineFromDistance(esriGeodeticType geodeticLineType, IPoint FromPoint, ILinearUnit LinearUnit, double Length, double Azimuth, esriCurveDensifyMethod densifyMethod, double densifyParameter)

Parameters

geodeticLineType esriGeodeticType
FromPoint IPoint
LinearUnit ILinearUnit
Length double
Azimuth double
densifyMethod esriCurveDensifyMethod
densifyParameter double

Remarks

Length of output line will always be less than one hemisphere.

ConstructGeodeticLineFromPoints(esriGeodeticType, IPoint, IPoint, ILinearUnit, esriCurveDensifyMethod, double)

Constructs a geodetic line connecting the specified points. The 'by length' and 'by deviation' densification options are supported.

virtual void ConstructGeodeticLineFromPoints(esriGeodeticType geodeticLineType, IPoint FromPoint, IPoint ToPoint, ILinearUnit LinearUnit, esriCurveDensifyMethod densifyMethod, double densifyParameter)

Parameters

geodeticLineType esriGeodeticType
FromPoint IPoint
ToPoint IPoint
LinearUnit ILinearUnit
densifyMethod esriCurveDensifyMethod
densifyParameter double

Remarks

Length of output line will always be less than one hemisphere.

ConstructKoch(IPolycurve, double, int)

Constructs a Koch snowflake fractal using the input polycurve as the generator. 'r' is not used. Do not use a value for recursionLevel > 10.

virtual void ConstructKoch(IPolycurve p, double r, int recursionLevel)

Parameters

p IPolycurve
r double
recursionLevel int

Remarks

 

ConstructCurve ConstructKoch Example

ConstructOffset(IPolycurve, double, ref object, ref object)

Constructs a curve being the locus of points offset a given distance from another curve. See the enumeration esriConstructOffsetEnum to information on different ways that offset curve can be generated.

virtual void ConstructOffset(IPolycurve inCurve, double Offset, ref object offsetHow, ref object bevelRatio)

Parameters

inCurve IPolycurve
Offset double
offsetHow object
bevelRatio object

Remarks

This results produced by this method are sensitive to large offset distances, particularly when the offset distance is larger than the length of the segments in the reference geometry.  The remove self intersecting arcs feature is particularly problematic when extremely large offsets are involved. 

The sides of the curve are determined from the order of the vertices of the curve.  Tracing the curve from the first vertex to the last will give you a direction along the curve it is to the right and left of this direction that the positive and negative parameters will dictate where the offset is constructed.  In these terms it is simple to infer where the offset will be constructed.

One alternative is to use buffer to generate the offsets. 

[C#]

//This example demonstrate how to use IConstructCurve::ConstructOffset
private IPolyline ConstructOffset(IPolyline inPolyline, double offset)
{
    if (inPolyline == null || inPolyline.IsEmpty)
    {
        return null;
    }
    object Missing = Type.Missing;
    IConstructCurve constructCurve = new PolylineClass();
    constructCurve.ConstructOffset(inPolyline, offset, ref Missing, ref Missing);
    return constructCurve as IPolyline;
}










[Visual Basic .NET]

    'This example demonstrate how to use IConstructCurve::ConstructOffset
    Private Function ConstructOffset(ByVal pInPolyline As IPolyline, ByVal dOffset As Double) As IPolyline
        Dim pConstructCurve As IConstructCurve
        On Error GoTo ErrorHandler


        If pInPolyline Is Nothing Or pInPolyline.IsEmpty Then

ConstructOffset = Nothing

Exit Function
End If


        pConstructCurve = New Polyline

pConstructCurve.ConstructOffset(pInPolyline, dOffset, esriConstructOffsetEnum.esriConstructOffsetRounded + esriConstructOffsetEnum.esriConstructOffsetSimple)
ConstructOffset = pConstructCurve
Exit Function


ErrorHandler:
        ConstructOffset = Nothing
    End Function

ConstructUnion(IEnumGeometry)

Defines this geometry to be the union of the inputs. More efficient for unioning multiple geometries than calling Union repeatedly.

virtual void ConstructUnion(IEnumGeometry geometries)

Parameters

geometries IEnumGeometry

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

This method does not support GeometryBags.

Temproray files might be created.  If environment variable "ARCTMPDIR" exists, then the files are written to the path, otherwise written to current directory or system temp directory.

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

ConstructUnionEx(IEnumGeometry, bool)

Defines this geometry to be the union of the inputs, with the option for non-planary result.

virtual void ConstructUnionEx(IEnumGeometry pEnum, bool bNonPlanar)

Parameters

pEnum IEnumGeometry
bNonPlanar bool

Contains(IGeometry)

Indicates if this geometry contains the other geometry.

virtual bool Contains(IGeometry other)

Parameters

other IGeometry

Returns

bool

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

If geometry1 Contains geometry2, then geometry2 is Within geometry1.

An empty geometry does not contain another geometry.  On the other hand, an empty geometry is contained in another geometry, unless the other geometry is empty.

Contains examples. Only "true" relationships are showed in this picture.

ContainsEx(IGeometry, esriSpatialRelationExEnum)

Indicates if this geometry contains the other geometry, optionally using Celementini's definition.

virtual bool ContainsEx(IGeometry pOther, esriSpatialRelationExEnum Relation)

Parameters

pOther IGeometry
Relation esriSpatialRelationExEnum

Returns

bool

ConvexHull()

Constructs the convex hull of this geometry.

virtual IGeometry ConvexHull()

Returns

IGeometry

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

This method does not support GeometryBags. 

ConvexHull method does not deal with Z attribute now.

ConvexHull Example

Crosses(IGeometry)

Indicates if the two geometries intersect in a geometry of lesser dimension.

virtual bool Crosses(IGeometry other)

Parameters

other IGeometry

Returns

bool

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

Cross only applies to polyline/polyline, polyline/polygon, or polygon/polyline relations.

If either one of the geometries is empty, the geometries do not cross.

Crosses examples. Only "true" relationships are showed in this picture.

Cut(IPolyline, out IGeometry, out IGeometry)

Splits this geometry into a part left of the cutting polyline, and a part right of it.

virtual void Cut(IPolyline cutter, out IGeometry leftGeom, out IGeometry rightGeom)

Parameters

cutter IPolyline
leftGeom IGeometry
rightGeom IGeometry

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

When a polyline/polygon is cut, it is split where it intersects the cutter polyline. Each piece is classified as ‘left of’ or ‘right of’ the cutter. This classification is based on the orientation of the cutter line. Parts of the target polyline that do not intersect the cutting polyline are returned as part of the ‘right of’ result for that input polyline.  If a geometry is not cut, the left geometry will be empty.

When using a multi-part polyline to cut a single ring of a polyline, the orientation of the polyline paths is important. The cut piece of the ring must be on the same side of each cutting path as defined by the orientation of each path.

This method does not support GeometryBags.

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

Cut2(IPolyline)

virtual IGeometryCollection Cut2(IPolyline pCutter)

Parameters

pCutter IPolyline

Returns

IGeometryCollection

Densify(double, double)

Converts this polycurve into a piecewise linear approximation of itself.

virtual void Densify(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

Remarks

If the maxSegmentLength is negative IGeometryEnvironment::AutoDensifyTolerance is used. IGeometryEnvironment::AutoDensifyTolerance default value is 0. This value can be explicitly set via IGeometryEnvironment::AutoDensifyTolerance.

If the maxDeviation is negative IGeometryEnvironment::DeviationAutoDensifyTolerance is used. The default value is 2*XYResolution * 100 (2/XYUnits * 100). This value can be explicitly set via IGeometryEnvironment::DeviationAutoDensifyTolerance.

In order to avoid the creation of too many segments,  the geometry system uses a maxdeviation = 2*xyResolution * 100 as default value if maxSegmentLength is 0 and the maxDeviation is 0.

If the maxDeviation is positive but smaller than 2*XYResolution of the spatial reference then the maxDeviation used is 2*XYResolution * 100

NOTE: The default values given in this topic are subject to change without notice. If specific values want to be maintained we recommend using the methods on IGeometryEnvironment to set those explicitly.

The start and end points are always honored and remain the same as for the original feature.

Polycurve Densify Example


Densify3D(double, double)

Converts this Polycurve into a piecewise linear approximation of itself.

virtual void Densify3D(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

DensifyByAngle(double, double)

Converts this polycurve into a piecewise linear approximation of itself. Vertices are introduced at points where the included angle between tangents at those point is maxAngleDeviation.

virtual void DensifyByAngle(double maxSegmentLength, double maxAngleDeviation)

Parameters

maxSegmentLength double
maxAngleDeviation double

Remarks

If the maxSegmentLength is negative IGeometryEnvironment::AutoDensifyTolerance is used. IGeometryEnvironment::AutoDensifyTolerance default value is 0. This value can be explicitly set via IGeometryEnvironment::AutoDensifyTolerance.

If the maxDeviation is negative IGeometryEnvironment::AngularAutoDensifyTolerance is used. The default value is Pi / 18.0. That value can be explicitly set via IGeometryEnvironment::AngularAutoDensifyTolerance.

In order to avoid the creation of too many segments,  the geometry system uses a maxDeviation = 2*XYresolution * 100 (or 2/XYUnits * 100) as the default value if maxSegmentLength is 0 and the maxDeviation is 0.

The maximum number of segments that can be produced is 2000, an external user cannot modify that value.


NOTE: The default values given in this topic are subject to change without notice. If you have specific values that you want to be maintained, we recommend using the methods on IGeometryEnvironment to set them explicitly.

The start and end points are always honored and remain the same as for the original feature.

 

DensifyGeodetic(esriGeodeticType, ILinearUnit, esriCurveDensifyMethod, double)

Constructs different types of geodetic curves. The 'by length' and 'by deviation' densification methods are supported.

virtual void DensifyGeodetic(esriGeodeticType geodeticLineType, ILinearUnit pLU, esriCurveDensifyMethod densifyMethod, double densifyParameter)

Parameters

geodeticLineType esriGeodeticType
pLU ILinearUnit
densifyMethod esriCurveDensifyMethod
densifyParameter double

Deserialize(IXMLSerializeData)

Deserializes an object from XML.

virtual void Deserialize(IXMLSerializeData data)

Parameters

data IXMLSerializeData

Difference(IGeometry)

Constructs the geometry containing points from this geometry but not the other geometry.

virtual IGeometry Difference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

This method does not support GeometryBags.

ITopologicalOperator Differenece Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

DifferenceEx(IGeometry, bool)

defined for (multi)points and polylines.

virtual IGeometry DifferenceEx(IGeometry other, bool bNonPlanar)

Parameters

other IGeometry
bNonPlanar bool

Returns

IGeometry

Dimension

The topological dimension of this geometry.

virtual esriGeometryDimension Dimension { get; }

Returns

esriGeometryDimension

Remarks


Note: At 9.0, Multipatches are now considered as two dimensional geometry. esriGeometry3Dimension will be used for an upcoming new geometry type.
Supported esriGeometryDimensions:

-1    esriGeometryNoDimension
1    esriGeometry0Dimension
2    esriGeometry1Dimension
4    esriGeometry2Dimension
5    esriGeometry25Dimension
6    esriGeometry3Dimension






Dimension Example





Disjoint(IGeometry)

Indicates if the two geometries share no points in common. Negate this result to compute the Intersect relation.

virtual bool Disjoint(IGeometry other)

Parameters

other IGeometry

Returns

bool

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

Two geometries are disjoint if either one is empty.

Disjoint example. Only "true" relationships are showed in this picture.

Disjoint3D(IGeometry)

Indicates if the two geometries share no points in common. Negate this result to compute the Intersect relation.

virtual bool Disjoint3D(IGeometry pOther)

Parameters

pOther IGeometry

Returns

bool

DropMs()

Sets all the M values to a non-valid number (NaN).

virtual void DropMs()

DropPointIDs()

Unsets all PointID values without changing awareness. Only works if geometry is aware of PointIDs.

virtual void DropPointIDs()

DropZs()

Sets all the Z values to a non-valid number (NaN).

virtual void DropZs()

EnumCurve

A new curve enumerator for this segment collection.

virtual IEnumCurve EnumCurve { get; }

Returns

IEnumCurve

EnumSegments

A new enumerator for this segment collection.

virtual IEnumSegment EnumSegments { get; }

Returns

IEnumSegment

EnumShortestPath[int, int, int, int]

Not implemented.

virtual IEnumSegment EnumShortestPath[int fromPart, int FromPoint, int toPart, int ToPoint] { get; }

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

Returns

IEnumSegment

EnumVertices

A new enumerator for this point collection.

virtual IEnumVertex EnumVertices { get; }

Returns

IEnumVertex

Envelope

Creates a copy of this geometry's envelope and returns it.

virtual IEnvelope Envelope { get; }

Returns

IEnvelope

Examples

Sample Snippet

<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
<img src="./bitmaps/envelope.gif" align=
"baseline"></span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
 </p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">public</span> <span style="COLOR: blue">static</span>
<span style="COLOR: teal">IGeometry</span>
GetEnvelopeGeometry()</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaX = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaY = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaZ = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">IPoint</span> centerPoint =
GetPoint();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">IEnvelope</span> envelope = <span style=
"COLOR: blue">new</span> <span style=
"COLOR: teal">EnvelopeClass</span>();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.XMin = centerPoint.X - DeltaX;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.XMax = centerPoint.X + DeltaX;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.YMin = centerPoint.Y - DeltaY;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.YMax = centerPoint.Y + DeltaY;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.ZMin = centerPoint.Z - DeltaZ;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.ZMax = centerPoint.Z + DeltaZ;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
MakeZAware(envelope <span style="COLOR: blue">as</span>
<span style="COLOR: teal">IGeometry</span>);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">return</span> envelope <span style=
"COLOR: blue">as</span> <span style=
"COLOR: teal">IGeometry</span>;</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><span style=
"FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
<span style=
"mso-spacerun: yes">       </span>
}</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">private</span> <span style=
"COLOR: blue">static</span> <span style="COLOR: teal">IPoint</span>
GetPoint()</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Min = -10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Max = 10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">Random</span> random = <span style=
"COLOR: blue">new</span> <span style=
"COLOR: teal">Random</span>();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> x = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> y = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> z = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">return</span> ConstructPoint3D(x, y,
z);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> }</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint3D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
z)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point = ConstructPoint2D(x, y);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span>
point.Z = z;<br>
<br>
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
}<br>
<br style="mso-special-character: line-break">
<br style="mso-special-character: line-break"></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint2D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point =</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
new</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
PointClass</span><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span>
point.PutCoords(x, y);<br>
<span style="mso-spacerun: yes"> </span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
}</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">private</span> <span style=
"COLOR: blue">static</span> <span style="COLOR: blue">void</span>
MakeZAware(<span style="COLOR: teal">IGeometry</span>
geometry)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">IZAware</span> zAware = geometry
<span style="COLOR: blue">as</span> <span style=
"COLOR: teal">IZAware</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
zAware.ZAware = <span style="COLOR: blue">true</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> }</span></p>

Remarks

 

Envelope Example

Equals(IGeometry)

Indicates if the two geometries are of the same type and define the same set of points in the plane.

virtual bool Equals(IGeometry other)

Parameters

other IGeometry

Returns

bool

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries. GeometryBags are not supported. IRelationalOperator::Equals delegates to ITopologicalOperatorSymmetricDifference and returns true when that method returns an empty geometry; M's and Z's are ignored. Please use IClone::IsEqual if M's and Z's need to be compared.

IClone::IsEqual simply iterates over each segment in each geometry, in index order, and compares their types and coordinates (but using the spatial reference's cluster tolerances to determine equality of coordinates).

Only "true" relationships are showed in this picture.

[C#]

The RCW for the IRelationalOperator inherits from System.Object, as do all reference types in .NET. The System.Object type has a method called Equals, which results in the IRelationalOperator RCW having two overloaded versions of the Equals method. Ensure that you are not using the Equals method inherited from the System.Object class by mistake, by making sure you pass in an IGeometry reference to the Equals method. For example, the following extract of code from a C# console application demonstrates calling Equals correctly.

ESRI.ArcGIS.Geometry.IPoint pt1 = new ESRI.ArcGIS.Geometry.PointClass();
pt1.PutCoords(5, 5);

ESRI.ArcGIS.Geometry.IPoint pt2 = new ESRI.ArcGIS.Geometry.PointClass(); pt2.PutCoords(5, 5);

ESRI.ArcGIS.Geometry.IRelationalOperator rel1 = pt1 as ESRI.ArcGIS.Geometry.IRelationalOperator; ESRI.ArcGIS.Geometry.IGeometry geom2 = pt2 as ESRI.ArcGIS.Geometry.IGeometry;

bool relEqual = rel1.Equals(pt2); //calling IRelationalOperator::Equals Console.WriteLine("Equal: " + relEqual.ToString()); bool netEqual = rel1.Equals(pt2 as object); //calling Object::Equals Console.WriteLine("Equal: " + netEqual.ToString());

ExtrapolateMs(esriExtrapolationEnum, int, int, int, int)

Extrapolates the Ms at one or both ends of the geometry based on the M interval between the fromIndex and the toIndex.

virtual void ExtrapolateMs(esriExtrapolationEnum extrapolationStyle, int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

extrapolationStyle esriExtrapolationEnum
fromPart int
FromPoint int
toPart int
ToPoint int

ExtrapolateMs3D(esriExtrapolationEnum, int, int, int, int)

Extrapolates the Ms at one or both ends of the geometry based on the M interval between the fromIndex and the toIndex.

virtual void ExtrapolateMs3D(esriExtrapolationEnum extrapolationStyle, int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

extrapolationStyle esriExtrapolationEnum
fromPart int
FromPoint int
toPart int
ToPoint int

FromPoint

The 'from' point of the curve.

virtual IPoint FromPoint { get; set; }

Returns

IPoint

Remarks

 

FromPoint Example

Generalize(double)

Generalizes this polycurve using the Douglas-Peucker algorithm.

virtual void Generalize(double maxAllowableOffset)

Parameters

maxAllowableOffset double

Remarks

For polycurve with non-linear segments, the output curve may contain more vertices than the input curve, but all output segments will be linear.


Generalize3D(double)

Generalizes this polycurve using the Douglas-Peucker algorithm.

virtual void Generalize3D(double maxAllowableOffset)

Parameters

maxAllowableOffset double

GeoNormalize()

Shifts longitudes, if need be, into a continuous range of 360 degrees.

virtual void GeoNormalize()

Remarks

GeoNormalize acts on geometries whose geographic system coordinates are below -180 degrees longitude or over +180 degrees longitude or on geometries that span the +-180 degrees longitude.
 
This method requires the geometry to have a valid spatial reference (geographic or projected coordinate system).
 
This method is used internally as part of the projection process for polygons and polylines.  It is typically not used by itself.
 

GeoNormalizeEx(ISpatialReference, double)

Shifts longitudes, if need be, into a continuous range of 360 degrees.

virtual void GeoNormalizeEx(ISpatialReference SR, double denseDistance)

Parameters

SR ISpatialReference
denseDistance double

Remarks

Not implemented for Multipatches.

GeoNormalizeFromLongitude(double)

Normalizes longitudes into a continuous range containing the longitude. This method is obsolete.

virtual void GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

Remarks

This method is obsolete.  Use IGeometry::GeoNormalize instead.
 
This method requires the geometry to have a valid spatial reference (geographic or projected coordinate system).

GeodesicDensify(double)

virtual void GeodesicDensify(double maxSegmentLength)

Parameters

maxSegmentLength double

GeometriesChanged()

Tells this geometry collection that some of its geometries have been altered. Use this method on polylines, polygons and multipatches after directly editing one of its parts.

virtual void GeometriesChanged()

Geometry[int]

A reference to the ith geometry.

virtual IGeometry Geometry[int Index] { get; }

Parameters

Index int

Returns

IGeometry

Remarks

Note: The GeometryType returned by the Geometry method depends on which object type points the IGeometryCollection pointer.

IGeometryCollection Object GeometryType Returned Object GeometryType
Polygon
Rings
Polyline
Paths
Multipoint
Points
Multipatch
TriangleFans or TriangleStrips or Rings
TriangleFan
Points
TriangleStrip
Points
Geometry Bag
Any type of IGeometry

GeometryCount

The number of geometries in this collection.

virtual int GeometryCount { get; }

Returns

int

GeometryType

The type of this geometry.

virtual esriGeometryType GeometryType { get; }

Returns

esriGeometryType

Remarks

esriGeometryNull          = 0
esriGeometryPoint = 1
esriGeometryMultipoint = 2
esriGeometryPolyline = 3
esriGeometryPolygon = 4
esriGeometryEnvelope = 5
esriGeometryPath = 6
esriGeometryAny = 7
esriGeometryMultiPatch = 9
esriGeometryRing = 11
esriGeometryLine = 13
esriGeometryCircularArc = 14
esriGeometryBezier3Curve = 15
esriGeometryEllipticArc = 16
esriGeometryBag = 17
esriGeometryTriangleStrip = 18
esriGeometryTriangleFan = 19
esriGeometryRay = 20
esriGeometrySphere = 21

















Geometry Type Example

GetClassID(out Guid)

virtual void GetClassID(out Guid pClassID)

Parameters

pClassID Guid

GetDistancesAtM(bool, double)

Returns an array of distances along the polyline at which is located the specified M. If the geometry's M's are monotonic along the geometry then the array will only have one element.

virtual object GetDistancesAtM(bool asRatio, double M)

Parameters

asRatio bool
M double

Returns

object

GetDistancesAtM3D(bool, double)

Returns an array of 3D distances along the polyline at which is located the specified M. If the geometry's M's are monotonic along the geometry then the array will only have one element.

virtual object GetDistancesAtM3D(bool asRatio, double M)

Parameters

asRatio bool
M double

Returns

object

GetMsAtDistance(double, bool)

Returns M values at the distance along the geometry. An array of one or two Ms is returned. Two Ms can be returned if the given distance is exactly at the beginning or ending of a part.

virtual object GetMsAtDistance(double distance, bool asRatio)

Parameters

distance double
asRatio bool

Returns

object

GetMsAtDistance3D(double, bool)

Returns M values at the 3D distance along the geometry. An array of one or two Ms is returned. Two Ms can be returned if the given distance is exactly at the beginning or ending of a part.

virtual object GetMsAtDistance3D(double distance, bool asRatio)

Parameters

distance double
asRatio bool

Returns

object

GetNormalsAtM(double, double)

Returns a geometry bag of line segments corresponding to the normal at the locations along the geometry where the specified M occurs.

virtual IGeometryCollection GetNormalsAtM(double M, double Length)

Parameters

M double
Length double

Returns

IGeometryCollection

Remarks

Note : The Length parameter represents the length of the normal lines returned. A negative value returns the normal lines on the left of the polyline.

In the above example the specified M was 10 and the Length was 50. The normal line was then created on the right side of the polyline at the location of M = 10.

GetPoints(int, int, out IPoint)

virtual void GetPoints(int Index, int Count, out IPoint Points)

Parameters

Index int
Count int
Points IPoint

GetPointsAtM(double, double)

Returns a multipoint geometry corresponding to the locations along the geometry where the specified M occurs.

virtual IGeometryCollection GetPointsAtM(double M, double lateralOffset)

Parameters

M double
lateralOffset double

Returns

IGeometryCollection

GetPointsAtM3D(double, IVector3D)

Returns a multipoint geometry corresponding to the locations along the geometry where the specified M occurs.

virtual IGeometryCollection GetPointsAtM3D(double M, IVector3D Offset)

Parameters

M double
Offset IVector3D

Returns

IGeometryCollection

GetSizeMax(out _ULARGE_INTEGER)

virtual void GetSizeMax(out _ULARGE_INTEGER pcbSize)

Parameters

pcbSize _ULARGE_INTEGER

GetSubcurve(double, double, bool, out ICurve)

Extracts a portion of this curve into a new curve.

virtual void GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

Remarks

 

Subcurve Example

GetSubcurve3D(double, double, bool, out ICurve3D)

Extracts a portion of this curve into a new curve.

virtual void GetSubcurve3D(double fromDistance, double toDistance, bool bAsRatio, out ICurve3D ppOutSubCurve)

Parameters

fromDistance double
toDistance double
bAsRatio bool
ppOutSubCurve ICurve3D

GetSubcurveBetweenMs(double, double)

Returns a polyline geometry corresponding to the subcurve(s) between the fromM and the toM.

virtual IGeometryCollection GetSubcurveBetweenMs(double fromM, double toM)

Parameters

fromM double
toM double

Returns

IGeometryCollection

GetSubcurveBetweenMs3D(double, double)

Returns a polyline geometry corresponding to the subcurve(s) between the fromM and the toM.

virtual IGeometryCollection GetSubcurveBetweenMs3D(double fromM, double toM)

Parameters

fromM double
toM double

Returns

IGeometryCollection

GetSubcurveBetweenMsEx(double, double, ref int, ref int)

Returns a polyline geometry corresponding to the subcurve(s) between the fromM and the toM values. The 'details' arguments are composed of esriMCurveRelationEnum values.

virtual IGeometryCollection GetSubcurveBetweenMsEx(double fromM, double toM, ref int fromMDetails, ref int toMDetails)

Parameters

fromM double
toM double
fromMDetails int
toMDetails int

Returns

IGeometryCollection

GetSubcurveBetweenMsEx3D(double, double, ref int, ref int)

Returns a polyline geometry corresponding to the subcurve(s) between the fromM and the toM values. The 'details' arguments are composed of esriMCurveRelationEnum values.

virtual IGeometryCollection GetSubcurveBetweenMsEx3D(double fromM, double toM, ref int fromMDetails, ref int toMDetails)

Parameters

fromM double
toM double
fromMDetails int
toMDetails int

Returns

IGeometryCollection

HasNonLinearSegments(ref bool)

Indicates if this segment collection contains segments other than lines.

virtual void HasNonLinearSegments(ref bool nonLinearSegments)

Parameters

nonLinearSegments bool

HitTest(IPoint, double, esriGeometryHitPartType, IPoint, ref double, ref int, ref int, ref bool)

Locates a part of a geometry closest to a query point. Any located part must be within searchRadius units from the query point.

virtual bool HitTest(IPoint QueryPoint, double searchRadius, esriGeometryHitPartType geometryPart, IPoint hitPoint, ref double hitDistance, ref int hitPartIndex, ref int hitSegmentIndex, ref bool bRightSide)

Parameters

QueryPoint IPoint
searchRadius double
geometryPart esriGeometryHitPartType
hitPoint IPoint
hitDistance double
hitPartIndex int
hitSegmentIndex int
bRightSide bool

Returns

bool

Remarks

The segment index returned has different meanings depending on the esriGeometryHitPartType used (Please see the example for more details).


EsriGeometryPartVertex: returns a vertex index


EsriGeometryPartBoundary, esriGeometryPartMidpoint and esriGeometryPartEndpoint: return a segment index


EsriGeometryPartCentroid: Always returns 0 for the part index and the segment index.

 

brightside: Indicates if the input point is on the right side of the input geometry

 

Note: The distance units use in this method are the units of the input geometry. No conversion is performed. esriGeometryHitPartType parameter cannot be a combination of several esriGeometryHitPartTypes.

HitTest3D(IPoint, double, esriGeometryHitPartType, IPoint, ref double, ref int, ref int)

Locates a part of a geometry closest to a query point. Any located part must be within searchRadius units from the query point.

virtual bool HitTest3D(IPoint QueryPoint, double searchRadius, esriGeometryHitPartType geometryPart, IPoint hitPoint, ref double hitDistance, ref int hitPartIndex, ref int hitSegmentIndex)

Parameters

QueryPoint IPoint
searchRadius double
geometryPart esriGeometryHitPartType
hitPoint IPoint
hitDistance double
hitPartIndex int
hitSegmentIndex int

Returns

bool

HitTestCone(IRay, double, esriGeometryHitPartType, IPoint, ref double, ref int, ref int)

Locates a part of a geometry closest to a query ray.

virtual bool HitTestCone(IRay pQueryRay, double minAngle, esriGeometryHitPartType geometryPart, IPoint pHitPoint, ref double pHitDistance, ref int pHitPartIndex, ref int pHitSegmentIndex)

Parameters

pQueryRay IRay
minAngle double
geometryPart esriGeometryHitPartType
pHitPoint IPoint
pHitDistance double
pHitPartIndex int
pHitSegmentIndex int

Returns

bool

IConstructCurve2_ConstructExtended(ICurve, ICurve, int, ref bool)

virtual void IConstructCurve2_ConstructExtended(ICurve fromCurve, ICurve toCurve, int extensionFlags, ref bool extensionsPerformed)

Parameters

fromCurve ICurve
toCurve ICurve
extensionFlags int
extensionsPerformed bool

IConstructCurve2_ConstructKoch(IPolycurve, double, int)

virtual void IConstructCurve2_ConstructKoch(IPolycurve p, double r, int recursionLevel)

Parameters

p IPolycurve
r double
recursionLevel int

IConstructCurve2_ConstructOffset(IPolycurve, double, ref object, ref object)

virtual void IConstructCurve2_ConstructOffset(IPolycurve inCurve, double Offset, ref object offsetHow, ref object bevelRatio)

Parameters

inCurve IPolycurve
Offset double
offsetHow object
bevelRatio object

IConstructCurve3_ApproximateByBeziers(IPolycurve, ref object, ref object)

virtual void IConstructCurve3_ApproximateByBeziers(IPolycurve pInCurve, ref object pMaxDistance, ref object smoothClosedParts)

Parameters

pInCurve IPolycurve
pMaxDistance object
smoothClosedParts object

IConstructCurve3_ConstructExtended(ICurve, ICurve, int, ref bool)

virtual void IConstructCurve3_ConstructExtended(ICurve fromCurve, ICurve toCurve, int extensionFlags, ref bool extensionsPerformed)

Parameters

fromCurve ICurve
toCurve ICurve
extensionFlags int
extensionsPerformed bool

IConstructCurve3_ConstructKoch(IPolycurve, double, int)

virtual void IConstructCurve3_ConstructKoch(IPolycurve p, double r, int recursionLevel)

Parameters

p IPolycurve
r double
recursionLevel int

IConstructCurve3_ConstructOffset(IPolycurve, double, ref object, ref object)

virtual void IConstructCurve3_ConstructOffset(IPolycurve inCurve, double Offset, ref object offsetHow, ref object bevelRatio)

Parameters

inCurve IPolycurve
Offset double
offsetHow object
bevelRatio object

ICurve2_Dimension

virtual esriGeometryDimension ICurve2_Dimension { get; }

Returns

esriGeometryDimension

ICurve2_Envelope

virtual IEnvelope ICurve2_Envelope { get; }

Returns

IEnvelope

ICurve2_FromPoint

virtual IPoint ICurve2_FromPoint { get; set; }

Returns

IPoint

ICurve2_GeoNormalize()

virtual void ICurve2_GeoNormalize()

ICurve2_GeoNormalizeFromLongitude(double)

virtual void ICurve2_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

ICurve2_GeometryType

virtual esriGeometryType ICurve2_GeometryType { get; }

Returns

esriGeometryType

ICurve2_GetSubcurve(double, double, bool, out ICurve)

virtual void ICurve2_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

ICurve2_IsClosed

virtual bool ICurve2_IsClosed { get; }

Returns

bool

ICurve2_IsEmpty

virtual bool ICurve2_IsEmpty { get; }

Returns

bool

ICurve2_Length

virtual double ICurve2_Length { get; }

Returns

double

ICurve2_Project(ISpatialReference)

virtual void ICurve2_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

ICurve2_QueryEnvelope(IEnvelope)

virtual void ICurve2_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

ICurve2_QueryFromPoint(IPoint)

virtual void ICurve2_QueryFromPoint(IPoint from)

Parameters

from IPoint

ICurve2_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve2_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

ICurve2_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void ICurve2_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

ICurve2_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void ICurve2_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

ICurve2_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve2_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

ICurve2_QueryToPoint(IPoint)

virtual void ICurve2_QueryToPoint(IPoint to)

Parameters

to IPoint

ICurve2_ReverseOrientation()

virtual void ICurve2_ReverseOrientation()

ICurve2_SetEmpty()

virtual void ICurve2_SetEmpty()

ICurve2_SnapToSpatialReference()

virtual void ICurve2_SnapToSpatialReference()

ICurve2_SpatialReference

virtual ISpatialReference ICurve2_SpatialReference { get; set; }

Returns

ISpatialReference

ICurve2_ToPoint

virtual IPoint ICurve2_ToPoint { get; set; }

Returns

IPoint

ICurve3_Dimension

virtual esriGeometryDimension ICurve3_Dimension { get; }

Returns

esriGeometryDimension

ICurve3_Envelope

virtual IEnvelope ICurve3_Envelope { get; }

Returns

IEnvelope

ICurve3_FromPoint

virtual IPoint ICurve3_FromPoint { get; set; }

Returns

IPoint

ICurve3_GeoNormalize()

virtual void ICurve3_GeoNormalize()

ICurve3_GeoNormalizeFromLongitude(double)

virtual void ICurve3_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

ICurve3_GeometryType

virtual esriGeometryType ICurve3_GeometryType { get; }

Returns

esriGeometryType

ICurve3_GetSubcurve(double, double, bool, out ICurve)

virtual void ICurve3_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

ICurve3_IsClosed

virtual bool ICurve3_IsClosed { get; }

Returns

bool

ICurve3_IsEmpty

virtual bool ICurve3_IsEmpty { get; }

Returns

bool

ICurve3_Length

virtual double ICurve3_Length { get; }

Returns

double

ICurve3_Project(ISpatialReference)

virtual void ICurve3_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

ICurve3_PutCoordsEx(IPoint, IPoint)

virtual void ICurve3_PutCoordsEx(IPoint from, IPoint to)

Parameters

from IPoint
to IPoint

ICurve3_QueryEnvelope(IEnvelope)

virtual void ICurve3_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

ICurve3_QueryFromPoint(IPoint)

virtual void ICurve3_QueryFromPoint(IPoint from)

Parameters

from IPoint

ICurve3_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve3_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

ICurve3_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void ICurve3_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

ICurve3_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void ICurve3_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

ICurve3_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve3_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

ICurve3_QueryToPoint(IPoint)

virtual void ICurve3_QueryToPoint(IPoint to)

Parameters

to IPoint

ICurve3_ReverseOrientation()

virtual void ICurve3_ReverseOrientation()

ICurve3_SetEmpty()

virtual void ICurve3_SetEmpty()

ICurve3_SnapToSpatialReference()

virtual void ICurve3_SnapToSpatialReference()

ICurve3_SpatialReference

virtual ISpatialReference ICurve3_SpatialReference { get; set; }

Returns

ISpatialReference

ICurve3_ToPoint

virtual IPoint ICurve3_ToPoint { get; set; }

Returns

IPoint

ICurve_Dimension

virtual esriGeometryDimension ICurve_Dimension { get; }

Returns

esriGeometryDimension

ICurve_Envelope

virtual IEnvelope ICurve_Envelope { get; }

Returns

IEnvelope

ICurve_GeoNormalize()

virtual void ICurve_GeoNormalize()

ICurve_GeoNormalizeFromLongitude(double)

virtual void ICurve_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

ICurve_GeometryType

virtual esriGeometryType ICurve_GeometryType { get; }

Returns

esriGeometryType

ICurve_IsEmpty

virtual bool ICurve_IsEmpty { get; }

Returns

bool

ICurve_Project(ISpatialReference)

virtual void ICurve_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

ICurve_QueryEnvelope(IEnvelope)

virtual void ICurve_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

ICurve_SetEmpty()

virtual void ICurve_SetEmpty()

ICurve_SnapToSpatialReference()

virtual void ICurve_SnapToSpatialReference()

ICurve_SpatialReference

virtual ISpatialReference ICurve_SpatialReference { get; set; }

Returns

ISpatialReference

IGeometry2_Dimension

virtual esriGeometryDimension IGeometry2_Dimension { get; }

Returns

esriGeometryDimension

IGeometry2_Envelope

virtual IEnvelope IGeometry2_Envelope { get; }

Returns

IEnvelope

IGeometry2_GeoNormalize()

virtual void IGeometry2_GeoNormalize()

IGeometry2_GeoNormalizeFromLongitude(double)

virtual void IGeometry2_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IGeometry2_GeometryType

virtual esriGeometryType IGeometry2_GeometryType { get; }

Returns

esriGeometryType

IGeometry2_IsEmpty

virtual bool IGeometry2_IsEmpty { get; }

Returns

bool

IGeometry2_Project(ISpatialReference)

virtual void IGeometry2_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IGeometry2_QueryEnvelope(IEnvelope)

virtual void IGeometry2_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IGeometry2_SetEmpty()

virtual void IGeometry2_SetEmpty()

IGeometry2_SnapToSpatialReference()

virtual void IGeometry2_SnapToSpatialReference()

IGeometry2_SpatialReference

virtual ISpatialReference IGeometry2_SpatialReference { get; set; }

Returns

ISpatialReference

IGeometry3_Dimension

virtual esriGeometryDimension IGeometry3_Dimension { get; }

Returns

esriGeometryDimension

IGeometry3_Envelope

virtual IEnvelope IGeometry3_Envelope { get; }

Returns

IEnvelope

IGeometry3_GeoNormalize()

virtual void IGeometry3_GeoNormalize()

IGeometry3_GeoNormalizeFromLongitude(double)

virtual void IGeometry3_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IGeometry3_GeometryType

virtual esriGeometryType IGeometry3_GeometryType { get; }

Returns

esriGeometryType

IGeometry3_IsEmpty

virtual bool IGeometry3_IsEmpty { get; }

Returns

bool

IGeometry3_Project(ISpatialReference)

virtual void IGeometry3_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IGeometry3_ProjectEx(ISpatialReference, esriTransformDirection, IGeoTransformation, bool, double, double)

virtual void IGeometry3_ProjectEx(ISpatialReference newReferenceSystem, esriTransformDirection Direction, IGeoTransformation GeoTransformation, bool bAngularDensify, double maxSegmentLength, double maxDeviation)

Parameters

newReferenceSystem ISpatialReference
Direction esriTransformDirection
GeoTransformation IGeoTransformation
bAngularDensify bool
maxSegmentLength double
maxDeviation double

IGeometry3_QueryEnvelope(IEnvelope)

virtual void IGeometry3_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IGeometry3_SetEmpty()

virtual void IGeometry3_SetEmpty()

IGeometry3_SnapToSpatialReference()

virtual void IGeometry3_SnapToSpatialReference()

IGeometry3_SpatialReference

virtual ISpatialReference IGeometry3_SpatialReference { get; set; }

Returns

ISpatialReference

IGeometry4_Dimension

virtual esriGeometryDimension IGeometry4_Dimension { get; }

Returns

esriGeometryDimension

IGeometry4_Envelope

virtual IEnvelope IGeometry4_Envelope { get; }

Returns

IEnvelope

IGeometry4_GeoNormalize()

virtual void IGeometry4_GeoNormalize()

IGeometry4_GeoNormalizeFromLongitude(double)

virtual void IGeometry4_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IGeometry4_GeometryType

virtual esriGeometryType IGeometry4_GeometryType { get; }

Returns

esriGeometryType

IGeometry4_IsEmpty

virtual bool IGeometry4_IsEmpty { get; }

Returns

bool

IGeometry4_Project(ISpatialReference)

virtual void IGeometry4_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IGeometry4_ProjectEx(ISpatialReference, esriTransformDirection, IGeoTransformation, bool, double, double)

virtual void IGeometry4_ProjectEx(ISpatialReference newReferenceSystem, esriTransformDirection Direction, IGeoTransformation GeoTransformation, bool bAngularDensify, double maxSegmentLength, double maxDeviation)

Parameters

newReferenceSystem ISpatialReference
Direction esriTransformDirection
GeoTransformation IGeoTransformation
bAngularDensify bool
maxSegmentLength double
maxDeviation double

IGeometry4_QueryEnvelope(IEnvelope)

virtual void IGeometry4_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IGeometry4_QueryWKSEnvelope(out WKSEnvelope)

virtual void IGeometry4_QueryWKSEnvelope(out WKSEnvelope e)

Parameters

e WKSEnvelope

IGeometry4_SetEmpty()

virtual void IGeometry4_SetEmpty()

IGeometry4_SnapToSpatialReference()

virtual void IGeometry4_SnapToSpatialReference()

IGeometry4_SpatialReference

virtual ISpatialReference IGeometry4_SpatialReference { get; set; }

Returns

ISpatialReference

IGeometry5_Changed

virtual bool IGeometry5_Changed { get; set; }

Returns

bool

IGeometry5_Dimension

virtual esriGeometryDimension IGeometry5_Dimension { get; }

Returns

esriGeometryDimension

IGeometry5_Envelope

virtual IEnvelope IGeometry5_Envelope { get; }

Returns

IEnvelope

IGeometry5_GeoNormalize()

virtual void IGeometry5_GeoNormalize()

IGeometry5_GeoNormalizeFromLongitude(double)

virtual void IGeometry5_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IGeometry5_GeometryType

virtual esriGeometryType IGeometry5_GeometryType { get; }

Returns

esriGeometryType

IGeometry5_IsEmpty

virtual bool IGeometry5_IsEmpty { get; }

Returns

bool

IGeometry5_Project(ISpatialReference)

virtual void IGeometry5_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IGeometry5_ProjectEx(ISpatialReference, esriTransformDirection, IGeoTransformation, bool, double, double)

virtual void IGeometry5_ProjectEx(ISpatialReference newReferenceSystem, esriTransformDirection Direction, IGeoTransformation GeoTransformation, bool bAngularDensify, double maxSegmentLength, double maxDeviation)

Parameters

newReferenceSystem ISpatialReference
Direction esriTransformDirection
GeoTransformation IGeoTransformation
bAngularDensify bool
maxSegmentLength double
maxDeviation double

IGeometry5_QueryEnvelope(IEnvelope)

virtual void IGeometry5_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IGeometry5_QueryWKSEnvelope(out WKSEnvelope)

virtual void IGeometry5_QueryWKSEnvelope(out WKSEnvelope e)

Parameters

e WKSEnvelope

IGeometry5_SetEmpty()

virtual void IGeometry5_SetEmpty()

IGeometry5_SnapToSpatialReference()

virtual void IGeometry5_SnapToSpatialReference()

IGeometry5_SpatialReference

virtual ISpatialReference IGeometry5_SpatialReference { get; set; }

Returns

ISpatialReference

IMSegmentation2_CalculateNonSimpleMs()

virtual void IMSegmentation2_CalculateNonSimpleMs()

IMSegmentation2_ExtrapolateMs(esriExtrapolationEnum, int, int, int, int)

virtual void IMSegmentation2_ExtrapolateMs(esriExtrapolationEnum extrapolationStyle, int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

extrapolationStyle esriExtrapolationEnum
fromPart int
FromPoint int
toPart int
ToPoint int

IMSegmentation2_GetDistancesAtM(bool, double)

virtual object IMSegmentation2_GetDistancesAtM(bool asRatio, double M)

Parameters

asRatio bool
M double

Returns

object

IMSegmentation2_GetMsAtDistance(double, bool)

virtual object IMSegmentation2_GetMsAtDistance(double distance, bool asRatio)

Parameters

distance double
asRatio bool

Returns

object

IMSegmentation2_GetPointsAtM(double, double)

virtual IGeometryCollection IMSegmentation2_GetPointsAtM(double M, double lateralOffset)

Parameters

M double
lateralOffset double

Returns

IGeometryCollection

IMSegmentation2_GetSubcurveBetweenMs(double, double)

virtual IGeometryCollection IMSegmentation2_GetSubcurveBetweenMs(double fromM, double toM)

Parameters

fromM double
toM double

Returns

IGeometryCollection

IMSegmentation2_InsertMAtDistance(double, double, bool, bool, out bool, out int, out int)

virtual void IMSegmentation2_InsertMAtDistance(double M, double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

M double
distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IMSegmentation2_InterpolateMsBetween(int, int, int, int)

virtual void IMSegmentation2_InterpolateMsBetween(int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

IMSegmentation2_MMax

virtual double IMSegmentation2_MMax { get; }

Returns

double

IMSegmentation2_MMin

virtual double IMSegmentation2_MMin { get; }

Returns

double

IMSegmentation2_MMonotonic

virtual esriMMonotonicEnum IMSegmentation2_MMonotonic { get; }

Returns

esriMMonotonicEnum

IMSegmentation2_MultiplyMs(double)

virtual void IMSegmentation2_MultiplyMs(double factor)

Parameters

factor double

IMSegmentation2_OffsetMs(double)

virtual void IMSegmentation2_OffsetMs(double Offset)

Parameters

Offset double

IMSegmentation2_ReverseMsOrder()

virtual void IMSegmentation2_ReverseMsOrder()

IMSegmentation2_SetAndInterpolateMsBetween(double, double)

virtual void IMSegmentation2_SetAndInterpolateMsBetween(double fromM, double toM)

Parameters

fromM double
toM double

IMSegmentation2_SetMsAsDistance(bool)

virtual void IMSegmentation2_SetMsAsDistance(bool asRatio)

Parameters

asRatio bool

IMSegmentation3_CalculateNonSimpleMs()

virtual void IMSegmentation3_CalculateNonSimpleMs()

IMSegmentation3_CalibrateByDistance(IEnumVertex, int, bool, double)

virtual IEnumSplitPoint IMSegmentation3_CalibrateByDistance(IEnumVertex Points, int updateHow, bool ignoreGaps, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
ignoreGaps bool
cutoffDistance double

Returns

IEnumSplitPoint

IMSegmentation3_CalibrateByMs(IEnumVertex, int, double)

virtual IEnumSplitPoint IMSegmentation3_CalibrateByMs(IEnumVertex Points, int updateHow, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
cutoffDistance double

Returns

IEnumSplitPoint

IMSegmentation3_ExtrapolateMs(esriExtrapolationEnum, int, int, int, int)

virtual void IMSegmentation3_ExtrapolateMs(esriExtrapolationEnum extrapolationStyle, int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

extrapolationStyle esriExtrapolationEnum
fromPart int
FromPoint int
toPart int
ToPoint int

IMSegmentation3_GetDistancesAtM(bool, double)

virtual object IMSegmentation3_GetDistancesAtM(bool asRatio, double M)

Parameters

asRatio bool
M double

Returns

object

IMSegmentation3_GetMsAtDistance(double, bool)

virtual object IMSegmentation3_GetMsAtDistance(double distance, bool asRatio)

Parameters

distance double
asRatio bool

Returns

object

IMSegmentation3_GetPointsAtM(double, double)

virtual IGeometryCollection IMSegmentation3_GetPointsAtM(double M, double lateralOffset)

Parameters

M double
lateralOffset double

Returns

IGeometryCollection

IMSegmentation3_GetSubcurveBetweenMs(double, double)

virtual IGeometryCollection IMSegmentation3_GetSubcurveBetweenMs(double fromM, double toM)

Parameters

fromM double
toM double

Returns

IGeometryCollection

IMSegmentation3_GetSubcurveBetweenMsEx(double, double, ref int, ref int)

virtual IGeometryCollection IMSegmentation3_GetSubcurveBetweenMsEx(double fromM, double toM, ref int fromMDetails, ref int toMDetails)

Parameters

fromM double
toM double
fromMDetails int
toMDetails int

Returns

IGeometryCollection

IMSegmentation3_InsertMAtDistance(double, double, bool, bool, out bool, out int, out int)

virtual void IMSegmentation3_InsertMAtDistance(double M, double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

M double
distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IMSegmentation3_InterpolateMsBetween(int, int, int, int)

virtual void IMSegmentation3_InterpolateMsBetween(int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

IMSegmentation3_MMax

virtual double IMSegmentation3_MMax { get; }

Returns

double

IMSegmentation3_MMin

virtual double IMSegmentation3_MMin { get; }

Returns

double

IMSegmentation3_MMonotonic

virtual esriMMonotonicEnum IMSegmentation3_MMonotonic { get; }

Returns

esriMMonotonicEnum

IMSegmentation3_MultiplyMs(double)

virtual void IMSegmentation3_MultiplyMs(double factor)

Parameters

factor double

IMSegmentation3_OffsetMs(double)

virtual void IMSegmentation3_OffsetMs(double Offset)

Parameters

Offset double

IMSegmentation3_ReverseMsOrder()

virtual void IMSegmentation3_ReverseMsOrder()

IMSegmentation3_SetAndInterpolateMsBetween(double, double)

virtual void IMSegmentation3_SetAndInterpolateMsBetween(double fromM, double toM)

Parameters

fromM double
toM double

IMSegmentation3_SetMsAsDistance(bool)

virtual void IMSegmentation3_SetMsAsDistance(bool asRatio)

Parameters

asRatio bool

IMSegmentation3_SetMsAsDistance2(IPoint, double, double, bool)

virtual void IMSegmentation3_SetMsAsDistance2(IPoint Origin, double Scale, double Offset, bool ignoreGaps)

Parameters

Origin IPoint
Scale double
Offset double
ignoreGaps bool

IMSegmentation3_UpdateMsByDistance(int, int, int, int, double, double, int, bool)

virtual void IMSegmentation3_UpdateMsByDistance(int fromPart, int FromPoint, int toPart, int ToPoint, double fromM, double toM, int updateHow, bool ignoreGaps)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int
fromM double
toM double
updateHow int
ignoreGaps bool

IMSegmentation3_UpdateMsByMs(int, int, int, int, double, double, int)

virtual void IMSegmentation3_UpdateMsByMs(int fromPart, int FromPoint, int toPart, int ToPoint, double fromM, double toM, int updateHow)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int
fromM double
toM double
updateHow int

IMSegmentation4_CalculateNonSimpleMs()

virtual void IMSegmentation4_CalculateNonSimpleMs()

IMSegmentation4_CalibrateByDistance(IEnumVertex, int, bool, double)

virtual IEnumSplitPoint IMSegmentation4_CalibrateByDistance(IEnumVertex Points, int updateHow, bool ignoreGaps, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
ignoreGaps bool
cutoffDistance double

Returns

IEnumSplitPoint

IMSegmentation4_CalibrateByMs(IEnumVertex, int, double)

virtual IEnumSplitPoint IMSegmentation4_CalibrateByMs(IEnumVertex Points, int updateHow, double cutoffDistance)

Parameters

Points IEnumVertex
updateHow int
cutoffDistance double

Returns

IEnumSplitPoint

IMSegmentation4_ExtrapolateMs(esriExtrapolationEnum, int, int, int, int)

virtual void IMSegmentation4_ExtrapolateMs(esriExtrapolationEnum extrapolationStyle, int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

extrapolationStyle esriExtrapolationEnum
fromPart int
FromPoint int
toPart int
ToPoint int

IMSegmentation4_GetDistancesAtM(bool, double)

virtual object IMSegmentation4_GetDistancesAtM(bool asRatio, double M)

Parameters

asRatio bool
M double

Returns

object

IMSegmentation4_GetMsAtDistance(double, bool)

virtual object IMSegmentation4_GetMsAtDistance(double distance, bool asRatio)

Parameters

distance double
asRatio bool

Returns

object

IMSegmentation4_GetNormalsAtM(double, double)

virtual IGeometryCollection IMSegmentation4_GetNormalsAtM(double M, double Length)

Parameters

M double
Length double

Returns

IGeometryCollection

IMSegmentation4_GetPointsAtM(double, double)

virtual IGeometryCollection IMSegmentation4_GetPointsAtM(double M, double lateralOffset)

Parameters

M double
lateralOffset double

Returns

IGeometryCollection

IMSegmentation4_GetSubcurveBetweenMs(double, double)

virtual IGeometryCollection IMSegmentation4_GetSubcurveBetweenMs(double fromM, double toM)

Parameters

fromM double
toM double

Returns

IGeometryCollection

IMSegmentation4_GetSubcurveBetweenMsEx(double, double, ref int, ref int)

virtual IGeometryCollection IMSegmentation4_GetSubcurveBetweenMsEx(double fromM, double toM, ref int fromMDetails, ref int toMDetails)

Parameters

fromM double
toM double
fromMDetails int
toMDetails int

Returns

IGeometryCollection

IMSegmentation4_InsertMAtDistance(double, double, bool, bool, out bool, out int, out int)

virtual void IMSegmentation4_InsertMAtDistance(double M, double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

M double
distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IMSegmentation4_InterpolateMsBetween(int, int, int, int)

virtual void IMSegmentation4_InterpolateMsBetween(int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

IMSegmentation4_MMax

virtual double IMSegmentation4_MMax { get; }

Returns

double

IMSegmentation4_MMin

virtual double IMSegmentation4_MMin { get; }

Returns

double

IMSegmentation4_MMonotonic

virtual esriMMonotonicEnum IMSegmentation4_MMonotonic { get; }

Returns

esriMMonotonicEnum

IMSegmentation4_MMonotonicity

virtual int IMSegmentation4_MMonotonicity { get; }

Returns

int

IMSegmentation4_MultiplyMs(double)

virtual void IMSegmentation4_MultiplyMs(double factor)

Parameters

factor double

IMSegmentation4_OffsetMs(double)

virtual void IMSegmentation4_OffsetMs(double Offset)

Parameters

Offset double

IMSegmentation4_OrientByMs()

virtual void IMSegmentation4_OrientByMs()

IMSegmentation4_QueryFirstLastM(out double, out double)

virtual void IMSegmentation4_QueryFirstLastM(out double firstM, out double lastM)

Parameters

firstM double
lastM double

IMSegmentation4_ReverseMsOrder()

virtual void IMSegmentation4_ReverseMsOrder()

IMSegmentation4_SetAndInterpolateMsBetween(double, double)

virtual void IMSegmentation4_SetAndInterpolateMsBetween(double fromM, double toM)

Parameters

fromM double
toM double

IMSegmentation4_SetMsAsDistance(bool)

virtual void IMSegmentation4_SetMsAsDistance(bool asRatio)

Parameters

asRatio bool

IMSegmentation4_SetMsAsDistance2(IPoint, double, double, bool)

virtual void IMSegmentation4_SetMsAsDistance2(IPoint Origin, double Scale, double Offset, bool ignoreGaps)

Parameters

Origin IPoint
Scale double
Offset double
ignoreGaps bool

IMSegmentation4_UpdateAllMsByMs(IPoint, double, double, bool)

virtual void IMSegmentation4_UpdateAllMsByMs(IPoint Origin, double Scale, double Offset, bool ignoreGaps)

Parameters

Origin IPoint
Scale double
Offset double
ignoreGaps bool

IMSegmentation4_UpdateMsByDistance(int, int, int, int, double, double, int, bool)

virtual void IMSegmentation4_UpdateMsByDistance(int fromPart, int FromPoint, int toPart, int ToPoint, double fromM, double toM, int updateHow, bool ignoreGaps)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int
fromM double
toM double
updateHow int
ignoreGaps bool

IMSegmentation4_UpdateMsByMs(int, int, int, int, double, double, int)

virtual void IMSegmentation4_UpdateMsByMs(int fromPart, int FromPoint, int toPart, int ToPoint, double fromM, double toM, int updateHow)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int
fromM double
toM double
updateHow int

IMSegmentation_MMax

virtual double IMSegmentation_MMax { get; }

Returns

double

IMSegmentation_MMin

virtual double IMSegmentation_MMin { get; }

Returns

double

IMSegmentation_MultiplyMs(double)

virtual void IMSegmentation_MultiplyMs(double factor)

Parameters

factor double

IMSegmentation_OffsetMs(double)

virtual void IMSegmentation_OffsetMs(double Offset)

Parameters

Offset double

IPersistStream_GetClassID(out Guid)

virtual void IPersistStream_GetClassID(out Guid pClassID)

Parameters

pClassID Guid

IPointCollection4_AddPoint(IPoint, ref object, ref object)

virtual void IPointCollection4_AddPoint(IPoint inPoint, ref object before, ref object after)

Parameters

inPoint IPoint
before object
after object

IPointCollection4_AddPointCollection(IPointCollection)

virtual void IPointCollection4_AddPointCollection(IPointCollection newPoints)

Parameters

newPoints IPointCollection

IPointCollection4_AddPoints(int, ref IPoint)

virtual void IPointCollection4_AddPoints(int Count, ref IPoint newPoints)

Parameters

Count int
newPoints IPoint

IPointCollection4_AddWKSPoints(int, ref WKSPoint)

virtual void IPointCollection4_AddWKSPoints(int Count, ref WKSPoint pointStructures)

Parameters

Count int
pointStructures WKSPoint

IPointCollection4_EnumVertices

virtual IEnumVertex IPointCollection4_EnumVertices { get; }

Returns

IEnumVertex

IPointCollection4_InsertPointCollection(int, IPointCollection)

virtual void IPointCollection4_InsertPointCollection(int Index, IPointCollection newPoints)

Parameters

Index int
newPoints IPointCollection

IPointCollection4_InsertPoints(int, int, ref IPoint)

virtual void IPointCollection4_InsertPoints(int Index, int Count, ref IPoint newPoints)

Parameters

Index int
Count int
newPoints IPoint

IPointCollection4_InsertWKSPoints(int, int, ref WKSPoint)

virtual void IPointCollection4_InsertWKSPoints(int Index, int Count, ref WKSPoint newPoints)

Parameters

Index int
Count int
newPoints WKSPoint

IPointCollection4_Point[int]

virtual IPoint IPointCollection4_Point[int i] { get; }

Parameters

i int

Returns

IPoint

IPointCollection4_PointCount

virtual int IPointCollection4_PointCount { get; }

Returns

int

IPointCollection4_QueryPoint(int, IPoint)

virtual void IPointCollection4_QueryPoint(int Index, IPoint Point)

Parameters

Index int
Point IPoint

IPointCollection4_QueryPoints(int, int, ref IPoint)

virtual void IPointCollection4_QueryPoints(int Index, int Count, ref IPoint Points)

Parameters

Index int
Count int
Points IPoint

IPointCollection4_QueryWKSPoints(int, int, out WKSPoint)

virtual void IPointCollection4_QueryWKSPoints(int Index, int Count, out WKSPoint pointStructures)

Parameters

Index int
Count int
pointStructures WKSPoint

IPointCollection4_RemovePoints(int, int)

virtual void IPointCollection4_RemovePoints(int Index, int Count)

Parameters

Index int
Count int

IPointCollection4_ReplacePointCollection(int, int, IPointCollection)

virtual void IPointCollection4_ReplacePointCollection(int Index, int goingAway, IPointCollection newPoints)

Parameters

Index int
goingAway int
newPoints IPointCollection

IPointCollection4_ReplacePoints(int, int, int, ref IPoint)

virtual void IPointCollection4_ReplacePoints(int Index, int comingIn, int goingAway, ref IPoint newPoints)

Parameters

Index int
comingIn int
goingAway int
newPoints IPoint

IPointCollection4_SetPointCollection(IPointCollection)

virtual void IPointCollection4_SetPointCollection(IPointCollection newPoints)

Parameters

newPoints IPointCollection

IPointCollection4_SetPoints(int, ref IPoint)

virtual void IPointCollection4_SetPoints(int Count, ref IPoint newPoints)

Parameters

Count int
newPoints IPoint

IPointCollection4_SetWKSPoints(int, ref WKSPoint)

virtual void IPointCollection4_SetWKSPoints(int Count, ref WKSPoint pointStructures)

Parameters

Count int
pointStructures WKSPoint

IPointCollection4_UpdatePoint(int, IPoint)

virtual void IPointCollection4_UpdatePoint(int i, IPoint p)

Parameters

i int
p IPoint

IPolycurve2_Densify(double, double)

virtual void IPolycurve2_Densify(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

IPolycurve2_Dimension

virtual esriGeometryDimension IPolycurve2_Dimension { get; }

Returns

esriGeometryDimension

IPolycurve2_Envelope

virtual IEnvelope IPolycurve2_Envelope { get; }

Returns

IEnvelope

IPolycurve2_FromPoint

virtual IPoint IPolycurve2_FromPoint { get; set; }

Returns

IPoint

IPolycurve2_Generalize(double)

virtual void IPolycurve2_Generalize(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolycurve2_GeoNormalize()

virtual void IPolycurve2_GeoNormalize()

IPolycurve2_GeoNormalizeFromLongitude(double)

virtual void IPolycurve2_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IPolycurve2_GeometryType

virtual esriGeometryType IPolycurve2_GeometryType { get; }

Returns

esriGeometryType

IPolycurve2_GetSubcurve(double, double, bool, out ICurve)

virtual void IPolycurve2_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

IPolycurve2_IsClosed

virtual bool IPolycurve2_IsClosed { get; }

Returns

bool

IPolycurve2_IsEmpty

virtual bool IPolycurve2_IsEmpty { get; }

Returns

bool

IPolycurve2_Length

virtual double IPolycurve2_Length { get; }

Returns

double

IPolycurve2_Project(ISpatialReference)

virtual void IPolycurve2_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IPolycurve2_QueryEnvelope(IEnvelope)

virtual void IPolycurve2_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IPolycurve2_QueryFromPoint(IPoint)

virtual void IPolycurve2_QueryFromPoint(IPoint from)

Parameters

from IPoint

IPolycurve2_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolycurve2_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

IPolycurve2_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void IPolycurve2_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

IPolycurve2_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void IPolycurve2_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

IPolycurve2_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolycurve2_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

IPolycurve2_QueryToPoint(IPoint)

virtual void IPolycurve2_QueryToPoint(IPoint to)

Parameters

to IPoint

IPolycurve2_ReverseOrientation()

virtual void IPolycurve2_ReverseOrientation()

IPolycurve2_SetEmpty()

virtual void IPolycurve2_SetEmpty()

IPolycurve2_Smooth(double)

virtual void IPolycurve2_Smooth(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolycurve2_SnapToSpatialReference()

virtual void IPolycurve2_SnapToSpatialReference()

IPolycurve2_SpatialReference

virtual ISpatialReference IPolycurve2_SpatialReference { get; set; }

Returns

ISpatialReference

IPolycurve2_SplitAtDistance(double, bool, bool, out bool, out int, out int)

virtual void IPolycurve2_SplitAtDistance(double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolycurve2_SplitAtPoint(IPoint, bool, bool, out bool, out int, out int)

virtual void IPolycurve2_SplitAtPoint(IPoint splitPoint, bool projectOnto, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

splitPoint IPoint
projectOnto bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolycurve2_ToPoint

virtual IPoint IPolycurve2_ToPoint { get; set; }

Returns

IPoint

IPolycurve2_Weed(double)

virtual void IPolycurve2_Weed(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

IPolycurve_Dimension

virtual esriGeometryDimension IPolycurve_Dimension { get; }

Returns

esriGeometryDimension

IPolycurve_Envelope

virtual IEnvelope IPolycurve_Envelope { get; }

Returns

IEnvelope

IPolycurve_FromPoint

virtual IPoint IPolycurve_FromPoint { get; set; }

Returns

IPoint

IPolycurve_GeoNormalize()

virtual void IPolycurve_GeoNormalize()

IPolycurve_GeoNormalizeFromLongitude(double)

virtual void IPolycurve_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IPolycurve_GeometryType

virtual esriGeometryType IPolycurve_GeometryType { get; }

Returns

esriGeometryType

IPolycurve_GetSubcurve(double, double, bool, out ICurve)

virtual void IPolycurve_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

IPolycurve_IsClosed

virtual bool IPolycurve_IsClosed { get; }

Returns

bool

IPolycurve_IsEmpty

virtual bool IPolycurve_IsEmpty { get; }

Returns

bool

IPolycurve_Length

virtual double IPolycurve_Length { get; }

Returns

double

IPolycurve_Project(ISpatialReference)

virtual void IPolycurve_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IPolycurve_QueryEnvelope(IEnvelope)

virtual void IPolycurve_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IPolycurve_QueryFromPoint(IPoint)

virtual void IPolycurve_QueryFromPoint(IPoint from)

Parameters

from IPoint

IPolycurve_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolycurve_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

IPolycurve_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void IPolycurve_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

IPolycurve_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void IPolycurve_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

IPolycurve_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolycurve_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

IPolycurve_QueryToPoint(IPoint)

virtual void IPolycurve_QueryToPoint(IPoint to)

Parameters

to IPoint

IPolycurve_ReverseOrientation()

virtual void IPolycurve_ReverseOrientation()

IPolycurve_SetEmpty()

virtual void IPolycurve_SetEmpty()

IPolycurve_SnapToSpatialReference()

virtual void IPolycurve_SnapToSpatialReference()

IPolycurve_SpatialReference

virtual ISpatialReference IPolycurve_SpatialReference { get; set; }

Returns

ISpatialReference

IPolycurve_ToPoint

virtual IPoint IPolycurve_ToPoint { get; set; }

Returns

IPoint

IPolyline2_Densify(double, double)

virtual void IPolyline2_Densify(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

IPolyline2_Dimension

virtual esriGeometryDimension IPolyline2_Dimension { get; }

Returns

esriGeometryDimension

IPolyline2_Envelope

virtual IEnvelope IPolyline2_Envelope { get; }

Returns

IEnvelope

IPolyline2_FromPoint

virtual IPoint IPolyline2_FromPoint { get; set; }

Returns

IPoint

IPolyline2_Generalize(double)

virtual void IPolyline2_Generalize(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline2_GeoNormalize()

virtual void IPolyline2_GeoNormalize()

IPolyline2_GeoNormalizeFromLongitude(double)

virtual void IPolyline2_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IPolyline2_GeometryType

virtual esriGeometryType IPolyline2_GeometryType { get; }

Returns

esriGeometryType

IPolyline2_GetSubcurve(double, double, bool, out ICurve)

virtual void IPolyline2_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

IPolyline2_IsClosed

virtual bool IPolyline2_IsClosed { get; }

Returns

bool

IPolyline2_IsEmpty

virtual bool IPolyline2_IsEmpty { get; }

Returns

bool

IPolyline2_Length

virtual double IPolyline2_Length { get; }

Returns

double

IPolyline2_Project(ISpatialReference)

virtual void IPolyline2_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IPolyline2_QueryEnvelope(IEnvelope)

virtual void IPolyline2_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IPolyline2_QueryFromPoint(IPoint)

virtual void IPolyline2_QueryFromPoint(IPoint from)

Parameters

from IPoint

IPolyline2_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline2_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

IPolyline2_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void IPolyline2_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

IPolyline2_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void IPolyline2_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

IPolyline2_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline2_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

IPolyline2_QueryToPoint(IPoint)

virtual void IPolyline2_QueryToPoint(IPoint to)

Parameters

to IPoint

IPolyline2_Reshape(IPath)

virtual bool IPolyline2_Reshape(IPath reshapeSource)

Parameters

reshapeSource IPath

Returns

bool

IPolyline2_ReverseOrientation()

virtual void IPolyline2_ReverseOrientation()

IPolyline2_SetEmpty()

virtual void IPolyline2_SetEmpty()

IPolyline2_SimplifyNetwork()

virtual void IPolyline2_SimplifyNetwork()

IPolyline2_Smooth(double)

virtual void IPolyline2_Smooth(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline2_SnapToSpatialReference()

virtual void IPolyline2_SnapToSpatialReference()

IPolyline2_SpatialReference

virtual ISpatialReference IPolyline2_SpatialReference { get; set; }

Returns

ISpatialReference

IPolyline2_SplitAtDistance(double, bool, bool, out bool, out int, out int)

virtual void IPolyline2_SplitAtDistance(double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline2_SplitAtPoint(IPoint, bool, bool, out bool, out int, out int)

virtual void IPolyline2_SplitAtPoint(IPoint splitPoint, bool projectOnto, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

splitPoint IPoint
projectOnto bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline2_ToPoint

virtual IPoint IPolyline2_ToPoint { get; set; }

Returns

IPoint

IPolyline2_Weed(double)

virtual void IPolyline2_Weed(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

IPolyline3_Densify(double, double)

virtual void IPolyline3_Densify(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

IPolyline3_Dimension

virtual esriGeometryDimension IPolyline3_Dimension { get; }

Returns

esriGeometryDimension

IPolyline3_EnumShortestPath[int, int, int, int]

virtual IEnumSegment IPolyline3_EnumShortestPath[int fromPart, int FromPoint, int toPart, int ToPoint] { get; }

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

Returns

IEnumSegment

IPolyline3_Envelope

virtual IEnvelope IPolyline3_Envelope { get; }

Returns

IEnvelope

IPolyline3_FromPoint

virtual IPoint IPolyline3_FromPoint { get; set; }

Returns

IPoint

IPolyline3_Generalize(double)

virtual void IPolyline3_Generalize(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline3_GeoNormalize()

virtual void IPolyline3_GeoNormalize()

IPolyline3_GeoNormalizeFromLongitude(double)

virtual void IPolyline3_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IPolyline3_GeometryType

virtual esriGeometryType IPolyline3_GeometryType { get; }

Returns

esriGeometryType

IPolyline3_GetSubcurve(double, double, bool, out ICurve)

virtual void IPolyline3_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

IPolyline3_IsClosed

virtual bool IPolyline3_IsClosed { get; }

Returns

bool

IPolyline3_IsEmpty

virtual bool IPolyline3_IsEmpty { get; }

Returns

bool

IPolyline3_Length

virtual double IPolyline3_Length { get; }

Returns

double

IPolyline3_Project(ISpatialReference)

virtual void IPolyline3_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IPolyline3_QueryEnvelope(IEnvelope)

virtual void IPolyline3_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IPolyline3_QueryFromPoint(IPoint)

virtual void IPolyline3_QueryFromPoint(IPoint from)

Parameters

from IPoint

IPolyline3_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline3_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

IPolyline3_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void IPolyline3_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

IPolyline3_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void IPolyline3_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

IPolyline3_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline3_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

IPolyline3_QueryToPoint(IPoint)

virtual void IPolyline3_QueryToPoint(IPoint to)

Parameters

to IPoint

IPolyline3_Reshape(IPath)

virtual bool IPolyline3_Reshape(IPath reshapeSource)

Parameters

reshapeSource IPath

Returns

bool

IPolyline3_ReverseOrientation()

virtual void IPolyline3_ReverseOrientation()

IPolyline3_SetEmpty()

virtual void IPolyline3_SetEmpty()

IPolyline3_SimplifyNetwork()

virtual void IPolyline3_SimplifyNetwork()

IPolyline3_Smooth(double)

virtual void IPolyline3_Smooth(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline3_SnapToSpatialReference()

virtual void IPolyline3_SnapToSpatialReference()

IPolyline3_SpatialReference

virtual ISpatialReference IPolyline3_SpatialReference { get; set; }

Returns

ISpatialReference

IPolyline3_SplitAtDistance(double, bool, bool, out bool, out int, out int)

virtual void IPolyline3_SplitAtDistance(double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline3_SplitAtPoint(IPoint, bool, bool, out bool, out int, out int)

virtual void IPolyline3_SplitAtPoint(IPoint splitPoint, bool projectOnto, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

splitPoint IPoint
projectOnto bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline3_ToPoint

virtual IPoint IPolyline3_ToPoint { get; set; }

Returns

IPoint

IPolyline3_Weed(double)

virtual void IPolyline3_Weed(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

IPolyline4_Densify(double, double)

virtual void IPolyline4_Densify(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

IPolyline4_Dimension

virtual esriGeometryDimension IPolyline4_Dimension { get; }

Returns

esriGeometryDimension

IPolyline4_EnumShortestPath[int, int, int, int]

virtual IEnumSegment IPolyline4_EnumShortestPath[int fromPart, int FromPoint, int toPart, int ToPoint] { get; }

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

Returns

IEnumSegment

IPolyline4_Envelope

virtual IEnvelope IPolyline4_Envelope { get; }

Returns

IEnvelope

IPolyline4_FromPoint

virtual IPoint IPolyline4_FromPoint { get; set; }

Returns

IPoint

IPolyline4_Generalize(double)

virtual void IPolyline4_Generalize(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline4_GeoNormalize()

virtual void IPolyline4_GeoNormalize()

IPolyline4_GeoNormalizeFromLongitude(double)

virtual void IPolyline4_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IPolyline4_GeometryType

virtual esriGeometryType IPolyline4_GeometryType { get; }

Returns

esriGeometryType

IPolyline4_GetSubcurve(double, double, bool, out ICurve)

virtual void IPolyline4_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

IPolyline4_IsClosed

virtual bool IPolyline4_IsClosed { get; }

Returns

bool

IPolyline4_IsEmpty

virtual bool IPolyline4_IsEmpty { get; }

Returns

bool

IPolyline4_Length

virtual double IPolyline4_Length { get; }

Returns

double

IPolyline4_Project(ISpatialReference)

virtual void IPolyline4_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IPolyline4_QueryEnvelope(IEnvelope)

virtual void IPolyline4_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IPolyline4_QueryFromPoint(IPoint)

virtual void IPolyline4_QueryFromPoint(IPoint from)

Parameters

from IPoint

IPolyline4_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline4_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

IPolyline4_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void IPolyline4_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

IPolyline4_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void IPolyline4_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

IPolyline4_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline4_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

IPolyline4_QueryToPoint(IPoint)

virtual void IPolyline4_QueryToPoint(IPoint to)

Parameters

to IPoint

IPolyline4_Reshape(IPath)

virtual bool IPolyline4_Reshape(IPath reshapeSource)

Parameters

reshapeSource IPath

Returns

bool

IPolyline4_ReverseOrientation()

virtual void IPolyline4_ReverseOrientation()

IPolyline4_SetEmpty()

virtual void IPolyline4_SetEmpty()

IPolyline4_SimplifyNetwork()

virtual void IPolyline4_SimplifyNetwork()

IPolyline4_Smooth(double)

virtual void IPolyline4_Smooth(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline4_SnapToSpatialReference()

virtual void IPolyline4_SnapToSpatialReference()

IPolyline4_SpatialReference

virtual ISpatialReference IPolyline4_SpatialReference { get; set; }

Returns

ISpatialReference

IPolyline4_SplitAtDistance(double, bool, bool, out bool, out int, out int)

virtual void IPolyline4_SplitAtDistance(double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline4_SplitAtPoint(IPoint, bool, bool, out bool, out int, out int)

virtual void IPolyline4_SplitAtPoint(IPoint splitPoint, bool projectOnto, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

splitPoint IPoint
projectOnto bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline4_ToPoint

virtual IPoint IPolyline4_ToPoint { get; set; }

Returns

IPoint

IPolyline4_TouchCut(IPolyline, out IGeometry, out IGeometry)

virtual void IPolyline4_TouchCut(IPolyline pCutter, out IGeometry ppLeftGeom, out IGeometry ppRightGeom)

Parameters

pCutter IPolyline
ppLeftGeom IGeometry
ppRightGeom IGeometry

IPolyline4_Weed(double)

virtual void IPolyline4_Weed(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

IPolyline5_Densify(double, double)

virtual void IPolyline5_Densify(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

IPolyline5_Dimension

virtual esriGeometryDimension IPolyline5_Dimension { get; }

Returns

esriGeometryDimension

IPolyline5_EnumShortestPath[int, int, int, int]

virtual IEnumSegment IPolyline5_EnumShortestPath[int fromPart, int FromPoint, int toPart, int ToPoint] { get; }

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

Returns

IEnumSegment

IPolyline5_Envelope

virtual IEnvelope IPolyline5_Envelope { get; }

Returns

IEnvelope

IPolyline5_FromPoint

virtual IPoint IPolyline5_FromPoint { get; set; }

Returns

IPoint

IPolyline5_Generalize(double)

virtual void IPolyline5_Generalize(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline5_GeoNormalize()

virtual void IPolyline5_GeoNormalize()

IPolyline5_GeoNormalizeFromLongitude(double)

virtual void IPolyline5_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IPolyline5_GeometryType

virtual esriGeometryType IPolyline5_GeometryType { get; }

Returns

esriGeometryType

IPolyline5_GetSubcurve(double, double, bool, out ICurve)

virtual void IPolyline5_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

IPolyline5_IsClosed

virtual bool IPolyline5_IsClosed { get; }

Returns

bool

IPolyline5_IsEmpty

virtual bool IPolyline5_IsEmpty { get; }

Returns

bool

IPolyline5_Length

virtual double IPolyline5_Length { get; }

Returns

double

IPolyline5_Project(ISpatialReference)

virtual void IPolyline5_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IPolyline5_QueryEnvelope(IEnvelope)

virtual void IPolyline5_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IPolyline5_QueryFromPoint(IPoint)

virtual void IPolyline5_QueryFromPoint(IPoint from)

Parameters

from IPoint

IPolyline5_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline5_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

IPolyline5_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void IPolyline5_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

IPolyline5_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void IPolyline5_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

IPolyline5_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline5_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

IPolyline5_QueryToPoint(IPoint)

virtual void IPolyline5_QueryToPoint(IPoint to)

Parameters

to IPoint

IPolyline5_Reshape(IPath)

virtual bool IPolyline5_Reshape(IPath reshapeSource)

Parameters

reshapeSource IPath

Returns

bool

IPolyline5_ReverseOrientation()

virtual void IPolyline5_ReverseOrientation()

IPolyline5_SetEmpty()

virtual void IPolyline5_SetEmpty()

IPolyline5_SimplifyEx(bool)

virtual void IPolyline5_SimplifyEx(bool planarSimplify)

Parameters

planarSimplify bool

IPolyline5_SimplifyNetwork()

virtual void IPolyline5_SimplifyNetwork()

IPolyline5_Smooth(double)

virtual void IPolyline5_Smooth(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline5_SnapToSpatialReference()

virtual void IPolyline5_SnapToSpatialReference()

IPolyline5_SpatialReference

virtual ISpatialReference IPolyline5_SpatialReference { get; set; }

Returns

ISpatialReference

IPolyline5_SplitAtDistance(double, bool, bool, out bool, out int, out int)

virtual void IPolyline5_SplitAtDistance(double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline5_SplitAtPoint(IPoint, bool, bool, out bool, out int, out int)

virtual void IPolyline5_SplitAtPoint(IPoint splitPoint, bool projectOnto, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

splitPoint IPoint
projectOnto bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline5_ToPoint

virtual IPoint IPolyline5_ToPoint { get; set; }

Returns

IPoint

IPolyline5_TouchCut(IPolyline, out IGeometry, out IGeometry)

virtual void IPolyline5_TouchCut(IPolyline pCutter, out IGeometry ppLeftGeom, out IGeometry ppRightGeom)

Parameters

pCutter IPolyline
ppLeftGeom IGeometry
ppRightGeom IGeometry

IPolyline5_Weed(double)

virtual void IPolyline5_Weed(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

IPolyline_Densify(double, double)

virtual void IPolyline_Densify(double maxSegmentLength, double maxDeviation)

Parameters

maxSegmentLength double
maxDeviation double

IPolyline_Dimension

virtual esriGeometryDimension IPolyline_Dimension { get; }

Returns

esriGeometryDimension

IPolyline_Envelope

virtual IEnvelope IPolyline_Envelope { get; }

Returns

IEnvelope

IPolyline_FromPoint

virtual IPoint IPolyline_FromPoint { get; set; }

Returns

IPoint

IPolyline_Generalize(double)

virtual void IPolyline_Generalize(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline_GeoNormalize()

virtual void IPolyline_GeoNormalize()

IPolyline_GeoNormalizeFromLongitude(double)

virtual void IPolyline_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

IPolyline_GeometryType

virtual esriGeometryType IPolyline_GeometryType { get; }

Returns

esriGeometryType

IPolyline_GetSubcurve(double, double, bool, out ICurve)

virtual void IPolyline_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

IPolyline_IsClosed

virtual bool IPolyline_IsClosed { get; }

Returns

bool

IPolyline_IsEmpty

virtual bool IPolyline_IsEmpty { get; }

Returns

bool

IPolyline_Length

virtual double IPolyline_Length { get; }

Returns

double

IPolyline_Project(ISpatialReference)

virtual void IPolyline_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

IPolyline_QueryEnvelope(IEnvelope)

virtual void IPolyline_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

IPolyline_QueryFromPoint(IPoint)

virtual void IPolyline_QueryFromPoint(IPoint from)

Parameters

from IPoint

IPolyline_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

IPolyline_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void IPolyline_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

IPolyline_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void IPolyline_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

IPolyline_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void IPolyline_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

IPolyline_QueryToPoint(IPoint)

virtual void IPolyline_QueryToPoint(IPoint to)

Parameters

to IPoint

IPolyline_ReverseOrientation()

virtual void IPolyline_ReverseOrientation()

IPolyline_SetEmpty()

virtual void IPolyline_SetEmpty()

IPolyline_Smooth(double)

virtual void IPolyline_Smooth(double maxAllowableOffset)

Parameters

maxAllowableOffset double

IPolyline_SnapToSpatialReference()

virtual void IPolyline_SnapToSpatialReference()

IPolyline_SpatialReference

virtual ISpatialReference IPolyline_SpatialReference { get; set; }

Returns

ISpatialReference

IPolyline_SplitAtDistance(double, bool, bool, out bool, out int, out int)

virtual void IPolyline_SplitAtDistance(double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline_SplitAtPoint(IPoint, bool, bool, out bool, out int, out int)

virtual void IPolyline_SplitAtPoint(IPoint splitPoint, bool projectOnto, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

splitPoint IPoint
projectOnto bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

IPolyline_ToPoint

virtual IPoint IPolyline_ToPoint { get; set; }

Returns

IPoint

IPolyline_Weed(double)

virtual void IPolyline_Weed(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

IRelationalOperator2_Contains(IGeometry)

virtual bool IRelationalOperator2_Contains(IGeometry other)

Parameters

other IGeometry

Returns

bool

IRelationalOperator2_Crosses(IGeometry)

virtual bool IRelationalOperator2_Crosses(IGeometry other)

Parameters

other IGeometry

Returns

bool

IRelationalOperator2_Disjoint(IGeometry)

virtual bool IRelationalOperator2_Disjoint(IGeometry other)

Parameters

other IGeometry

Returns

bool

IRelationalOperator2_Equals(IGeometry)

virtual bool IRelationalOperator2_Equals(IGeometry other)

Parameters

other IGeometry

Returns

bool

IRelationalOperator2_Overlaps(IGeometry)

virtual bool IRelationalOperator2_Overlaps(IGeometry other)

Parameters

other IGeometry

Returns

bool

IRelationalOperator2_Relation(IGeometry, string)

virtual bool IRelationalOperator2_Relation(IGeometry other, string relationDescription)

Parameters

other IGeometry
relationDescription string

Returns

bool

IRelationalOperator2_Touches(IGeometry)

virtual bool IRelationalOperator2_Touches(IGeometry other)

Parameters

other IGeometry

Returns

bool

IRelationalOperator2_Within(IGeometry)

virtual bool IRelationalOperator2_Within(IGeometry other)

Parameters

other IGeometry

Returns

bool

IRelationalOperator3D2_Disjoint3D(IGeometry)

virtual bool IRelationalOperator3D2_Disjoint3D(IGeometry pOther)

Parameters

pOther IGeometry

Returns

bool

ITopologicalOperator2_Boundary

virtual IGeometry ITopologicalOperator2_Boundary { get; }

Returns

IGeometry

ITopologicalOperator2_Buffer(double)

virtual IGeometry ITopologicalOperator2_Buffer(double distance)

Parameters

distance double

Returns

IGeometry

ITopologicalOperator2_Clip(IEnvelope)

virtual void ITopologicalOperator2_Clip(IEnvelope clipperEnvelope)

Parameters

clipperEnvelope IEnvelope

ITopologicalOperator2_ClipDense(IEnvelope, double)

virtual void ITopologicalOperator2_ClipDense(IEnvelope clipperEnvelope, double denseDistance)

Parameters

clipperEnvelope IEnvelope
denseDistance double

ITopologicalOperator2_ConstructUnion(IEnumGeometry)

virtual void ITopologicalOperator2_ConstructUnion(IEnumGeometry geometries)

Parameters

geometries IEnumGeometry

ITopologicalOperator2_ConvexHull()

virtual IGeometry ITopologicalOperator2_ConvexHull()

Returns

IGeometry

ITopologicalOperator2_Cut(IPolyline, out IGeometry, out IGeometry)

virtual void ITopologicalOperator2_Cut(IPolyline cutter, out IGeometry leftGeom, out IGeometry rightGeom)

Parameters

cutter IPolyline
leftGeom IGeometry
rightGeom IGeometry

ITopologicalOperator2_Difference(IGeometry)

virtual IGeometry ITopologicalOperator2_Difference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator2_Intersect(IGeometry, esriGeometryDimension)

virtual IGeometry ITopologicalOperator2_Intersect(IGeometry other, esriGeometryDimension resultDimension)

Parameters

other IGeometry
resultDimension esriGeometryDimension

Returns

IGeometry

ITopologicalOperator2_IsKnownSimple

virtual bool ITopologicalOperator2_IsKnownSimple { get; }

Returns

bool

ITopologicalOperator2_IsKnownSimple_2

Indicates whether this geometry is known (or assumed) to be topologically correct.

virtual bool ITopologicalOperator2_IsKnownSimple_2 { set; }

Returns

bool

ITopologicalOperator2_IsSimple

virtual bool ITopologicalOperator2_IsSimple { get; }

Returns

bool

ITopologicalOperator2_QueryClipped(IEnvelope, IGeometry)

virtual void ITopologicalOperator2_QueryClipped(IEnvelope clipperEnvelope, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
clippedGeometry IGeometry

ITopologicalOperator2_QueryClippedDense(IEnvelope, double, IGeometry)

virtual void ITopologicalOperator2_QueryClippedDense(IEnvelope clipperEnvelope, double denseDistance, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
denseDistance double
clippedGeometry IGeometry

ITopologicalOperator2_Simplify()

virtual void ITopologicalOperator2_Simplify()

ITopologicalOperator2_SymmetricDifference(IGeometry)

virtual IGeometry ITopologicalOperator2_SymmetricDifference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator2_TopologyCache(out long)

virtual void ITopologicalOperator2_TopologyCache(out long topologyCacheHandle)

Parameters

topologyCacheHandle long

ITopologicalOperator2_Union(IGeometry)

virtual IGeometry ITopologicalOperator2_Union(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator3_Boundary

virtual IGeometry ITopologicalOperator3_Boundary { get; }

Returns

IGeometry

ITopologicalOperator3_Buffer(double)

virtual IGeometry ITopologicalOperator3_Buffer(double distance)

Parameters

distance double

Returns

IGeometry

ITopologicalOperator3_Clip(IEnvelope)

virtual void ITopologicalOperator3_Clip(IEnvelope clipperEnvelope)

Parameters

clipperEnvelope IEnvelope

ITopologicalOperator3_ClipDense(IEnvelope, double)

virtual void ITopologicalOperator3_ClipDense(IEnvelope clipperEnvelope, double denseDistance)

Parameters

clipperEnvelope IEnvelope
denseDistance double

ITopologicalOperator3_ClipToDomain()

virtual void ITopologicalOperator3_ClipToDomain()

ITopologicalOperator3_ConstructBuffers(int, ref double)

virtual IEnumGeometry ITopologicalOperator3_ConstructBuffers(int numBuffers, ref double distances)

Parameters

numBuffers int
distances double

Returns

IEnumGeometry

ITopologicalOperator3_ConstructUnion(IEnumGeometry)

virtual void ITopologicalOperator3_ConstructUnion(IEnumGeometry geometries)

Parameters

geometries IEnumGeometry

ITopologicalOperator3_ConvexHull()

virtual IGeometry ITopologicalOperator3_ConvexHull()

Returns

IGeometry

ITopologicalOperator3_Cut(IPolyline, out IGeometry, out IGeometry)

virtual void ITopologicalOperator3_Cut(IPolyline cutter, out IGeometry leftGeom, out IGeometry rightGeom)

Parameters

cutter IPolyline
leftGeom IGeometry
rightGeom IGeometry

ITopologicalOperator3_Difference(IGeometry)

virtual IGeometry ITopologicalOperator3_Difference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator3_Intersect(IGeometry, esriGeometryDimension)

virtual IGeometry ITopologicalOperator3_Intersect(IGeometry other, esriGeometryDimension resultDimension)

Parameters

other IGeometry
resultDimension esriGeometryDimension

Returns

IGeometry

ITopologicalOperator3_IntersectMultidimension(IGeometry)

virtual IGeometry ITopologicalOperator3_IntersectMultidimension(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator3_IsKnownSimple

virtual bool ITopologicalOperator3_IsKnownSimple { get; }

Returns

bool

ITopologicalOperator3_IsKnownSimple_2

virtual bool ITopologicalOperator3_IsKnownSimple_2 { set; }

Returns

bool

ITopologicalOperator3_IsSimple

virtual bool ITopologicalOperator3_IsSimple { get; }

Returns

bool

ITopologicalOperator3_QueryClipped(IEnvelope, IGeometry)

virtual void ITopologicalOperator3_QueryClipped(IEnvelope clipperEnvelope, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
clippedGeometry IGeometry

ITopologicalOperator3_QueryClippedDense(IEnvelope, double, IGeometry)

virtual void ITopologicalOperator3_QueryClippedDense(IEnvelope clipperEnvelope, double denseDistance, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
denseDistance double
clippedGeometry IGeometry

ITopologicalOperator3_Simplify()

virtual void ITopologicalOperator3_Simplify()

ITopologicalOperator3_SymmetricDifference(IGeometry)

virtual IGeometry ITopologicalOperator3_SymmetricDifference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator3_TopologyCache(out long)

virtual void ITopologicalOperator3_TopologyCache(out long topologyCacheHandle)

Parameters

topologyCacheHandle long

ITopologicalOperator3_Union(IGeometry)

virtual IGeometry ITopologicalOperator3_Union(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator5_Boundary

virtual IGeometry ITopologicalOperator5_Boundary { get; }

Returns

IGeometry

ITopologicalOperator5_Buffer(double)

virtual IGeometry ITopologicalOperator5_Buffer(double distance)

Parameters

distance double

Returns

IGeometry

ITopologicalOperator5_Clip(IEnvelope)

virtual void ITopologicalOperator5_Clip(IEnvelope clipperEnvelope)

Parameters

clipperEnvelope IEnvelope

ITopologicalOperator5_ClipDense(IEnvelope, double)

virtual void ITopologicalOperator5_ClipDense(IEnvelope clipperEnvelope, double denseDistance)

Parameters

clipperEnvelope IEnvelope
denseDistance double

ITopologicalOperator5_ClipToDomain()

virtual void ITopologicalOperator5_ClipToDomain()

ITopologicalOperator5_ConstructBuffers(int, ref double)

virtual IEnumGeometry ITopologicalOperator5_ConstructBuffers(int numBuffers, ref double distances)

Parameters

numBuffers int
distances double

Returns

IEnumGeometry

ITopologicalOperator5_ConstructUnion(IEnumGeometry)

virtual void ITopologicalOperator5_ConstructUnion(IEnumGeometry geometries)

Parameters

geometries IEnumGeometry

ITopologicalOperator5_ConvexHull()

virtual IGeometry ITopologicalOperator5_ConvexHull()

Returns

IGeometry

ITopologicalOperator5_Cut(IPolyline, out IGeometry, out IGeometry)

virtual void ITopologicalOperator5_Cut(IPolyline cutter, out IGeometry leftGeom, out IGeometry rightGeom)

Parameters

cutter IPolyline
leftGeom IGeometry
rightGeom IGeometry

ITopologicalOperator5_Difference(IGeometry)

virtual IGeometry ITopologicalOperator5_Difference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator5_GeoNormalizeEx(ISpatialReference, double)

virtual void ITopologicalOperator5_GeoNormalizeEx(ISpatialReference SR, double denseDistance)

Parameters

SR ISpatialReference
denseDistance double

ITopologicalOperator5_Intersect(IGeometry, esriGeometryDimension)

virtual IGeometry ITopologicalOperator5_Intersect(IGeometry other, esriGeometryDimension resultDimension)

Parameters

other IGeometry
resultDimension esriGeometryDimension

Returns

IGeometry

ITopologicalOperator5_IntersectMultidimension(IGeometry)

virtual IGeometry ITopologicalOperator5_IntersectMultidimension(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator5_IsKnownSimple

virtual bool ITopologicalOperator5_IsKnownSimple { get; }

Returns

bool

ITopologicalOperator5_IsKnownSimple_2

virtual bool ITopologicalOperator5_IsKnownSimple_2 { set; }

Returns

bool

ITopologicalOperator5_IsSimple

virtual bool ITopologicalOperator5_IsSimple { get; }

Returns

bool

ITopologicalOperator5_IsSimpleEx[esriNonSimpleReasonEnum]

virtual bool ITopologicalOperator5_IsSimpleEx[out esriNonSimpleReasonEnum reason] { get; }

Parameters

reason esriNonSimpleReasonEnum

Returns

bool

ITopologicalOperator5_QueryClipped(IEnvelope, IGeometry)

virtual void ITopologicalOperator5_QueryClipped(IEnvelope clipperEnvelope, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
clippedGeometry IGeometry

ITopologicalOperator5_QueryClippedDense(IEnvelope, double, IGeometry)

virtual void ITopologicalOperator5_QueryClippedDense(IEnvelope clipperEnvelope, double denseDistance, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
denseDistance double
clippedGeometry IGeometry

ITopologicalOperator5_Simplify()

virtual void ITopologicalOperator5_Simplify()

ITopologicalOperator5_SymmetricDifference(IGeometry)

virtual IGeometry ITopologicalOperator5_SymmetricDifference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

ITopologicalOperator5_TopologyCache(out long)

virtual void ITopologicalOperator5_TopologyCache(out long topologyCacheHandle)

Parameters

topologyCacheHandle long

ITopologicalOperator5_Union(IGeometry)

virtual IGeometry ITopologicalOperator5_Union(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

IZ2_CalculateNonSimpleZs()

virtual void IZ2_CalculateNonSimpleZs()

IZ2_InterpolateFromSurface(IFunctionalSurface)

virtual void IZ2_InterpolateFromSurface(IFunctionalSurface interpolationSurface)

Parameters

interpolationSurface IFunctionalSurface

IZ2_InterpolateZsBetween(int, int, int, int)

virtual void IZ2_InterpolateZsBetween(int startPart, int startPoint, int endPart, int endPoint)

Parameters

startPart int
startPoint int
endPart int
endPoint int

IZ2_MultiplyZs(double)

virtual void IZ2_MultiplyZs(double factor)

Parameters

factor double

IZ2_OffsetZs(double)

virtual void IZ2_OffsetZs(double Offset)

Parameters

Offset double

IZ2_SetConstantZ(double)

virtual void IZ2_SetConstantZ(double zLevel)

Parameters

zLevel double

IZ2_ZMax

virtual double IZ2_ZMax { get; }

Returns

double

IZ2_ZMin

virtual double IZ2_ZMin { get; }

Returns

double

IZ2_ZVertical

virtual bool IZ2_ZVertical { get; }

Returns

bool

IZ_MultiplyZs(double)

virtual void IZ_MultiplyZs(double factor)

Parameters

factor double

IZ_OffsetZs(double)

virtual void IZ_OffsetZs(double Offset)

Parameters

Offset double

IZ_ZMax

virtual double IZ_ZMax { get; }

Returns

double

IZ_ZMin

virtual double IZ_ZMin { get; }

Returns

double

IndexedEnumSegments[IGeometry]

A new indexed segment enumerator for this segment collection.

virtual IEnumSegment IndexedEnumSegments[IGeometry queryGeometry] { get; }

Parameters

queryGeometry IGeometry

Returns

IEnumSegment

Remarks

Note: In order to have this method returning an indexed segment enumerator the ISpatialIndex::AllowIndexing property must be set to 'true' on the geometry.

IndexedEnumVertices[IGeometry]

virtual IEnumVertex IndexedEnumVertices[IGeometry queryGeometry] { get; }

Parameters

queryGeometry IGeometry

Returns

IEnumVertex

InsertGeometries(int, int, ref IGeometry)

Inserts at the specified index references to some number of geometries in the input array. This method is intended for internal use only.

virtual void InsertGeometries(int Index, int Count, ref IGeometry newGeometries)

Parameters

Index int
Count int
newGeometries IGeometry

Remarks

The geometries are inserted before the ith (index) element in the list. Use an array of geometries and give the exact number (count ) of elements in the array. A too large value for the count parameter causes exceeding the boundary of the array and will cause an application error. To place the geometries last in the collection then use the addGeometries method.

 

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

InsertGeometryCollection(int, IGeometryCollection)

Inserts at the specified index references to all if the geometries in the input collection.

virtual void InsertGeometryCollection(int Index, IGeometryCollection newGeometries)

Parameters

Index int
newGeometries IGeometryCollection

Remarks

InsertGeometryCollection merges one GeometryCollection within another at a specified index.

[C#]
//C# Example: Insert GeometryCollection geomColl2 within geomColl at index 3.
geomColl.InsertGeometryCollection(3, geomColl2);

InsertMAtDistance(double, double, bool, bool, out bool, out int, out int)

Sets the M value at the given distance along the geometry; creates a point at that distance if no point exists there.

virtual void InsertMAtDistance(double M, double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

M double
distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

InsertMAtDistance3D(double, double, bool, bool, out bool, out int, out int)

Sets the M value at the given 3D distance along the geometry; creates a point at that distance if no point exists there.

virtual void InsertMAtDistance3D(double M, double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

M double
distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

InsertPointCollection(int, IPointCollection)

Inserts copies of points, from the input point collection, as vertices into this Path, Ring, Polyline, or Polygon; or references to points in the input point collection into this Multipoint, TriangleFan, or TriangleStrip.

virtual void InsertPointCollection(int Index, IPointCollection newPoints)

Parameters

Index int
newPoints IPointCollection

InsertPoints(int, int, ref IPoint)

Inserts copies of the input points as vertices into a Path, Ring, Polyline, or Polygon; or references to the input points into a Multipoint, TriangleFan, or TriangleStrip. This method is intended for internal use only.

virtual void InsertPoints(int Index, int Count, ref IPoint newPoints)

Parameters

Index int
Count int
newPoints IPoint

InsertSegmentCollection(int, ISegmentCollection)

Inserts references to the segments in the input collectoin.

virtual void InsertSegmentCollection(int Index, ISegmentCollection newSegments)

Parameters

Index int
newSegments ISegmentCollection

InsertSegmentCollectionEx(int, int, int, ISegmentCollection)

Inserts references to some of the segments from the input collection.

virtual void InsertSegmentCollectionEx(int Index, int start, int Count, ISegmentCollection newSegments)

Parameters

Index int
start int
Count int
newSegments ISegmentCollection

InsertSegments(int, int, ref ISegment)

Inserts references to the input segments. This method is intended for internal use only.

virtual void InsertSegments(int Index, int Count, ref ISegment newSegments)

Parameters

Index int
Count int
newSegments ISegment

InsertWKSPointZs(int, int, ref WKSPointZ)

Inserts new vertices/points into this Path, Ring, Polyline, Polygon, Multipoint, TriangleFan, Triangles, TriangleStrip, or MultiPatch.

virtual void InsertWKSPointZs(int Index, int Count, ref WKSPointZ newPoints)

Parameters

Index int
Count int
newPoints WKSPointZ

InsertWKSPoints(int, int, ref WKSPoint)

Inserts new vertices/points into this Path, Ring, Polyline, Polygon, Multipoint, TriangleFan, TriangleStrip, or MultiPatch.

virtual void InsertWKSPoints(int Index, int Count, ref WKSPoint newPoints)

Parameters

Index int
Count int
newPoints WKSPoint

InterfaceSupportsErrorInfo(ref Guid)

virtual void InterfaceSupportsErrorInfo(ref Guid riid)

Parameters

riid Guid

InterpolateFromSurface(IFunctionalSurface)

Use the specified functional surface to generate Z values for the vertices of this object.

virtual void InterpolateFromSurface(IFunctionalSurface interpolationSurface)

Parameters

interpolationSurface IFunctionalSurface

InterpolateMsBetween(int, int, int, int)

Generates Ms by linear interpolation of segment distances for all vertices in the range [start+1, end-1].

virtual void InterpolateMsBetween(int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

InterpolateMsBetween3D(int, int, int, int)

Generates Ms by linear interpolation of 3D distances for all vertices in the range [start+1, end-1].

virtual void InterpolateMsBetween3D(int fromPart, int FromPoint, int toPart, int ToPoint)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int

InterpolateZsBetween(int, int, int, int)

Generate Z values by linear interpolation for all vertices in the range [start+1, end-1].

virtual void InterpolateZsBetween(int startPart, int startPoint, int endPart, int endPoint)

Parameters

startPart int
startPoint int
endPart int
endPoint int

Intersect(IGeometry, esriGeometryDimension)

Constructs the geometry that is the set-theoretic intersection of the input geometries. Use different resultDimension values to generate results of different dimensions.

virtual IGeometry Intersect(IGeometry other, esriGeometryDimension resultDimension)

Parameters

other IGeometry
resultDimension esriGeometryDimension

Returns

IGeometry

Remarks

Intersection is basically an AND between input geometries.

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

Note that when esriGeometryNoDimension is specified as resultDimension, the output will be in the dimension of the minimum dimension of the input geometries.

This method does not support GeometryBags.

Since ArcGIS 9.2, Intersect has a larger cost - it takes longer to run the method.  Therefore, it is a better approach to test if the two geometries are disjoint before calling Intersect.

Intersection Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

IntersectEx(IGeometry, bool, esriGeometryDimension)

Constructs the set-theoretic intersection of the inputs in the specified result dimension, , with the option for non-planary result.

virtual IGeometry IntersectEx(IGeometry other, bool bNonPlanar, esriGeometryDimension resultDimension)

Parameters

other IGeometry
bNonPlanar bool
resultDimension esriGeometryDimension

Returns

IGeometry

IntersectMultidimension(IGeometry)

Constructs the set-theoretic intersection of the inputs. The results are returned in a geometry bag with one element per result dimension.

virtual IGeometry IntersectMultidimension(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

Remarks

This method only works with the following combination of geometries: Polygon with Polyline (and vice versa), Polyline with Multipoint (and vice versa), Polygon with Multipoint (and vice versa).
 
When using this method to intersect a Polygon with a Polyline (or vice versa) the geometry returned will be a GeometryBag.

When using this method to intersect a Multipoint with a Polygon (or vice versa) or Multipoint with a Polyline (or vice versa) the geometry returned will be a Multipoint.

If the desired combination of geometries is not available on this function, use Intersect on ITopologicalOperator.

IntersectMultidimensionEx(IGeometry, bool)

Constructs the set-theoretic intersection of the inputs. The results are returned in a geometry bag with one element per result dimension.

virtual IGeometry IntersectMultidimensionEx(IGeometry other, bool bNonPlanar)

Parameters

other IGeometry
bNonPlanar bool

Returns

IGeometry

Invalidate()

virtual void Invalidate()

IsClosed

Indicates if 'from' and 'to' points (of each part) are identical.

virtual bool IsClosed { get; }

Returns

bool

Remarks

IsClosed may still return TRUE if the curve consists of improperly constructed geometries (ex. non-continuous paths).  IsClosed only checks the location of the From and To points of each part, it does not check the internal parts for topological consistency.

ICurve IsClosed Example

IsClosed3D

Indicates if 'from' and 'to' points (of each part) are identical.

virtual bool IsClosed3D { get; }

Returns

bool

IsDirty()

virtual void IsDirty()

IsEmpty

Indicates whether this geometry contains any points.

virtual bool IsEmpty { get; }

Returns

bool

IsEqual(IClone)

Indicates if the receiver and other have the same properties.

virtual bool IsEqual(IClone other)

Parameters

other IClone

Returns

bool

IsIdentical(IClone)

Indicates if the receiver and other are the same object.

virtual bool IsIdentical(IClone other)

Parameters

other IClone

Returns

bool

IsKnownSimple

Indicates whether this geometry is known (or assumed) to be topologically correct.

virtual bool IsKnownSimple { get; }

Returns

bool

Remarks

Here is the status of the IsKnownSimple flag in some common situations:


IsKnownSimple = 'False'
    - A non-empty newly created geometry. For example, creating a polygon using IPointCollection sets the flag IsKnownSimple = 'false' on that geometry.
    - Geometry after projection (IGeometry::Project )
    - Geometry after generalization (IPolycurve::Generalize ) or smoothing(IPolycurve::Smooth )
    - …




 

IsKnownSimple = 'True'
    - A geometry coming directly from a feature class
    - An empty geometry
    - Output geometry of any method on ITopologicalOperator
    - …



 

 

This method does not support GeometryBags.

IsNear(IGeometry, double)

Indicates if this geometry is within distance from the other geometry.

virtual bool IsNear(IGeometry pOther, double distance)

Parameters

pOther IGeometry
distance double

Returns

bool

IsNear3D(IGeometry, double)

Indicates if this geometry is within distance from the other geometry; both geometries must have Zs.

virtual bool IsNear3D(IGeometry pOther, double distance)

Parameters

pOther IGeometry
distance double

Returns

bool

IsSimple

Indicates whether this geometry is known (or assumed) to be topologically correct, after explicitly determining this if the geometry is not already known (or assumed) to be simple.

virtual bool IsSimple { get; }

Returns

bool

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

The xy cluster tolerance value of the geometry's associated spatial reference is used by this method. If the goal of this method is to determine if a geometry can be persisted in an sde (or other integer-based) layer without alteration, you may wish to use the minimum xy cluster tolerance value (ISpatialReferenceTolerance::SetMinimumXYTolerance) before applying this method (don't forget to set it back).

This method does not support GeometryBags.

ITopologicalOperator IsSimple SimplePolygon Example

ITopologicalOperator IsSimple SimplePolyline Example

ITopologicalOperator IsSimple SimplePoint Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

IsSimpleEx[esriNonSimpleReasonEnum]

Determines why a geometry is not simple. Currently only implemented for polygons.

virtual bool IsSimpleEx[out esriNonSimpleReasonEnum reason] { get; }

Parameters

reason esriNonSimpleReasonEnum

Returns

bool

Remarks

Note: All geometries involved in ITopologicalOperator operations must be high-level geometries. High-Level geometries are point, multipoint, polyline and polygon. To use it with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), path or ring they must be wrapped into high-level geometries type.

 

The xy cluster tolerance value of the geometry's associated spatial reference is used by this method. If the goal of this method is to determine if a geometry can be persisted in an sde (or other integer-based) layer without alteration, you may wish to use the minimum xy cluster tolerance value (ISpatialReferenceTolerance::SetMinimumXYTolerance) before applying this method (don't forget to set it back).

[C#]

//How to use get_IsSimpleEx

ITopologicalOperator3 topoOp3 = inGeom as ITopologicalOperator3; //Must be polygon

ESRI.ArcGIS.Geometry.esriNonSimpleReasonEnum reason = ESRI.ArcGIS.Geometry.esriNonSimpleReasonEnum.esriNonSimpleOK; //Initialize

topoOp3.IsKnownSimple_2 = false;

Boolean pBool = topoOp3.get_IsSimpleEx(out reason); //Inspect pReason for description code

 

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

Length

The length of the curve.

virtual double Length { get; }

Returns

double

Length3D

The length of the curve.

virtual double Length3D { get; }

Returns

double

LengthGeodetic[esriGeodeticType, ILinearUnit]

Returns length of this polycurve calculated using various types of geodetic methods.

virtual double LengthGeodetic[esriGeodeticType geodeticLineType, ILinearUnit pLU] { get; }

Parameters

geodeticLineType esriGeodeticType
pLU ILinearUnit

Returns

double

Load(IStream)

virtual void Load(IStream pstm)

Parameters

pstm IStream

MAware

Indicates whether or not the geometry is aware of and capable of handling Ms.

virtual bool MAware { get; set; }

Returns

bool

MMax

The maximum M value.

virtual double MMax { get; }

Returns

double

MMin

The minimum M value.

virtual double MMin { get; }

Returns

double

MMonotonic

A value indicating whether Ms are monotonic, and if so, whether they are ascending or descending.

virtual esriMMonotonicEnum MMonotonic { get; }

Returns

esriMMonotonicEnum

MMonotonicity

A combination of esriMonotinicityEnum values that describes all trends in M values over the length of the curve.

virtual int MMonotonicity { get; }

Returns

int

Remarks

The MMonotonicity value in the above case is 15 because that polyline has intervals that EsriValueIncreases (1), EsriValueLevel (2), EsriValueDecreases(4) and EsriValuesEmpty(8).

Note : That method returns a combination of esriMonotinicityEnum values.

MSimple

Indicates if all the Ms are valid numbers.

virtual bool MSimple { get; }

Returns

bool

Move(double, double)

Moves dx units horizontally and dy units vertically.

virtual void Move(double dx, double dy)

Parameters

dx double
dy double

Remarks

 

Transform2D Move Example

Move3D(double, double, double)

Moves the object by dx, dy and dz along the x, y, and z axes respectively.

virtual void Move3D(double dx, double dy, double dz)

Parameters

dx double
dy double
dz double

MoveVector(ILine)

Moves a direction and distance v. v can be in a different spatial reference than the geometry being moved.

virtual void MoveVector(ILine v)

Parameters

v ILine

Remarks

 

Transform2D MoveVector Example

MoveVector3D(IVector3D)

Moves the object by an offset defined by a 3D vector.

virtual void MoveVector3D(IVector3D v)

Parameters

v IVector3D

MultiplyMs(double)

Multiplies all the M values by a factor.

virtual void MultiplyMs(double factor)

Parameters

factor double

Remarks

The MultiplyMs method will update all the measure attributes for a PolyLine, and should only be used if every measure has been set (i.e. there are no NaNs). Check the IMAware::MSimple property or use the IMSegmentation methods to fill in any missing measure values. MultiplyMs is analogous to scaling spatial coordinates.

[C#]

    public IPolyline MultiplyMs(IPolyline polyline, double factor)
    {
        //Offset (add) the M values on a PolyLine by a factor
        IMAware mAware = polyline as IMAware;
        IMCollection mCollection = mAware as IMCollection;
        if (mAware.MAware)
        {
            mCollection.MultiplyMs(factor);
            return mCollection as IPolyline;
        }
        else
        {
            return null;
        }












    }

MultiplyZs(double)

Multiplies all the Z values by a factor.

virtual void MultiplyZs(double factor)

Parameters

factor double

OffsetMs(double)

Offsets all the M values by an offset value.

virtual void OffsetMs(double Offset)

Parameters

Offset double

Remarks

The OffsetMs method will update all the measure attributes for a PolyLine, and should only be used if every measure has been set (i.e. there are no NaNs). Check the IMAware::MSimple property or use the IMSegmentation methods to fill in any missing measure values. OffsetMs is analgous to moving spatial coordinates.

[C#]

    public IPolyline OffsetMs(IPolyline polyline, double offset)
    {
        //Offset (add) the M values on a PolyLine by a factor
        IMAware mAware = polyline as IMAware;
        IMCollection mCollection = mAware as IMCollection;
        if (mAware.MAware)
        {
            mCollection.OffsetMs(offset);
            return mCollection as IPolyline;
        }
        else
        {
            return null;
        }
    }













OffsetZs(double)

Offsets all the Z values by an offset value.

virtual void OffsetZs(double Offset)

Parameters

Offset double

OrientByMs()

Re-orients the curve to make Ms non-decreasing, if possible.

virtual void OrientByMs()

Remarks

Note: If one or many parts of the polyline are non-MMonotonic then the reordering will not happen.

Overlaps(IGeometry)

Indicates if the intersection of the two geometries has the same dimension as one of the input geometries.

virtual bool Overlaps(IGeometry other)

Parameters

other IGeometry

Returns

bool

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

Overlaps only applies to polyline/polyline, polygon/polygon and multipoint/multipoint relations.

Two geometries do not overlap if either one is empty.

Overlaps examples. Only "true" relationships are showed in this picture.

Point[int]

A copy of the ith vertex of a Path, Ring, Polyline, or Polygon; or a reference to the ith point of a Multipoint, TriangleFan, or TriangleStrip.

virtual IPoint Point[int i] { get; }

Parameters

i int

Returns

IPoint

Examples

Sample Snippet

<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
<img src="./bitmaps/point.gif" align="baseline"></span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
 </p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">public</span> <span style="COLOR: blue">static</span>
<span style="COLOR: teal">IGeometry</span>
GetPointGeometry()</span></span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Min = -10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Max = 10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">Random</span> random = <span style=
"COLOR: blue">new</span> <span style=
"COLOR: teal">Random</span>();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> x = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> y = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> z = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
 </p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">

IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point = ConstructPoint3D(x, y, z);</span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
 </p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
<span style=
"mso-spacerun: yes">           </span>
MakeZAware(point <span style="COLOR: blue">as</span> <span style=
"COLOR: teal">IGeometry</span>);</span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">return</span> point <span style=
"COLOR: blue">as</span> <span style=
"COLOR: teal">IGeometry</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> }</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint3D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
z)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point = ConstructPoint2D(x, y);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span>
point.Z = z;<br>
<br>
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
}<br>
<br style="mso-special-character: line-break">
<br style="mso-special-character: line-break"></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint2D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point =</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
new</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
PointClass</span><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span>
point.PutCoords(x, y);<br>
<span style="mso-spacerun: yes"> </span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
}</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">private</span> <span style=
"COLOR: blue">static</span> <span style="COLOR: blue">void</span>
MakeZAware(<span style="COLOR: teal">IGeometry</span>
geometry)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">IZAware</span> zAware = geometry
<span style="COLOR: blue">as</span> <span style=
"COLOR: teal">IZAware</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
zAware.ZAware = <span style="COLOR: blue">true</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> }</span></p>

Remarks

Note: Since a copy of the point is returned by Point (get_Point) for path, ring, polyline and polygon the IPointCollection::UpdatePoint method must be used to update points on those geometry types.

PointCount

The number of points in the collection.

virtual int PointCount { get; }

Returns

int

PointIDAware

Indicates whether or not the geometry is aware of and capable of handling PointIDs.

virtual bool PointIDAware { get; set; }

Returns

bool

PointIDSimple

Indicates if all PointID values for this geometry are well-defined. Only works if geometry is aware of PointIDs.

virtual bool PointIDSimple { get; }

Returns

bool

Project(ISpatialReference)

Projects this geometry into a new spatial reference.

virtual void Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

Remarks

Note: This method can only be called upon the top level geometries (Points, Multipoints, Polylines and Polygons).  If the from/to spatial references have different geographic coordinate systems, the Project method looks for a GeoTransformationsOperationSet. If the set of Geotransformations is present in memory, Project will use it to perform a geographic/datum Transformation. To use a specific geotransformation, use the IGeometry2::ProjectEx method.

[C#]
//Create Spatial Reference Factory
ISpatialReferenceFactory srFactory = new SpatialReferenceEnvironmentClass();
ISpatialReference sr1;
//GCS to project from 
IGeographicCoordinateSystem gcs = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_NAD1983);
sr1 = gcs;
sr1.SetFalseOriginAndUnits(-180, -90, 1000000);
//Projected Coordinate System to project into
IProjectedCoordinateSystem pcs = srFactory.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1983N_AmericaLambert);
pcs.SetFalseOriginAndUnits(0, 0, 1000);
ISpatialReference sr2;
sr2 = pcs;
//Point to project
IPoint point = new PointClass() as IPoint;
point.PutCoords(-117.17, 34.06);
//Geometry Interface to do actual project
IGeometry geometry;
geometry = point;
geometry.SpatialReference = sr1;
geometry.Project(sr2);
point = geometry as IPoint;
double x;
double y;
point.QueryCoords(out x, out y);
Debug.Print("X: " + x.ToString());
Debug.Print("Y: " + y.ToString());

Project5(ISpatialReference, int)

Same as Project, but with additional parameter projectionHint.

virtual void Project5(ISpatialReference newSpatialReference, int ProjectionHint)

Parameters

newSpatialReference ISpatialReference
ProjectionHint int

ProjectEx(ISpatialReference, esriTransformDirection, IGeoTransformation, bool, double, double)

Projects a geometry, optionally applies a GeoTransformation, and optionally densifies the geometry.

virtual void ProjectEx(ISpatialReference newReferenceSystem, esriTransformDirection Direction, IGeoTransformation GeoTransformation, bool bAngularDensify, double maxSegmentLength, double maxDeviation)

Parameters

newReferenceSystem ISpatialReference
Direction esriTransformDirection
GeoTransformation IGeoTransformation
bAngularDensify bool
maxSegmentLength double
maxDeviation double

Remarks

By default, ProjectEx will not densify geometries as they are projected. This can lead to the output geometries not reflecting the 'true' shape in the new coordinate system. A straight line in one coordinate system is not necessarily a straight line in a different coordinate system. Set the bAngularDensify parameter if you want to densify the geometries while they are projected.

[C#]

    //This example demonstrates how to use IGeometry2::ProjectEx
    public void ProjectExExample()
    {
        //Create source spatial reference
        ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironmentClass();
        ISpatialReference spatialReference = spatialReferenceFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);
        spatialReference.SetFalseOriginAndUnits(-80.0000000232831, 39.9999999767169, 42949672.9);
        //Create envelope and define its spatial reference
        IEnvelope envelope = new EnvelopeClass();
        envelope.PutCoords(-68.6076204314651, 49.6186709634653, -68.5531907607304, 49.6530789785679);
        envelope.SpatialReference = spatialReference;
        //Destination spatial reference
        IProjectedCoordinateSystem projectedCoordinateSystem = spatialReferenceFactory.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1927UTM_19N);
        //Define the XYDomain equivalent to SetFalseOriginAndUnits
        projectedCoordinateSystem.SetDomain(500000, 600000, 5300000, 5600000);
        //Create a Geotransformation (Datum transformation)
        IGeoTransformation geoTransformation = spatialReferenceFactory.CreateGeoTransformation((int)esriSRGeoTransformationType.esriSRGeoTransformation_NAD1927_To_WGS1984_12) as IGeoTransformation;















        String report = "Print envelope coordinates before projection:\n" +
        envelope.XMin + " , " + envelope.YMin + " , " + envelope.XMax + " , " + envelope.YMax + "\n\n\n";

        //Project envelope
        IGeometry2 geometry = envelope as IGeometry2;
        geometry.ProjectEx(projectedCoordinateSystem as ISpatialReference, esriTransformDirection.esriTransformReverse, geoTransformation, false, 0, 0);

        report = report + "Print envelope coordinates after projection:\n" +
        envelope.XMin + " , " + envelope.YMin + " , " + envelope.XMax + " , " + envelope.YMax;
        System.Windows.Forms.MessageBox.Show(report);
    }


ProjectEx5(ISpatialReference, esriTransformDirection, ITransformation, bool, double, double, int)

Same as ProjectEx, but with additional parameter projectionHint.

virtual void ProjectEx5(ISpatialReference newReferenceSystem, esriTransformDirection Direction, ITransformation Transformation, bool bAngularDensify, double maxSegmentLength, double maxDeviation, int ProjectionHint)

Parameters

newReferenceSystem ISpatialReference
Direction esriTransformDirection
Transformation ITransformation
bAngularDensify bool
maxSegmentLength double
maxDeviation double
ProjectionHint int

Remarks

By default, ProjectEx will not densify geometries as they are projected. This can lead to the output geometries not reflecting the 'true' shape in the new coordinate system. A straight line in one coordinate system is not necessarily a straight line in a different coordinate system. Set the bAngularDensify parameter if you want to densify the geometries while they are projected.

ProjectToPlane(IPoint, IVector3D, IVector3D)

Generates a polygon footprint for the object in an arbitrary plane. The footprint may have multiple parts.

virtual IGeometry ProjectToPlane(IPoint planarOrigin, IVector3D planarPositiveX, IVector3D planarNorm)

Parameters

planarOrigin IPoint
planarPositiveX IVector3D
planarNorm IVector3D

Returns

IGeometry

Remarks

This method can be used to get the xy-footprint of a multipatch if set all the parameters to Null.


[C#]

 

        public static void TransformMultiPatchGeometry()

        {

            //Transform3D: Cylinder Projected To XY Plane Via ProjectToPlane()

 

            //Define Origin At Which ProjectToPlane Operation Should Be Performed


            IPoint planarOriginPoint = ConstructPoint3D(0, 0, 0);

 

            //Construct A Vector3D Corresponding To The Positive X Vector

 

            IVector3D planarPositiveXVector3D = ConstructVector3D(10, 0, 0);

 

            //Construct A Vector3D Corresponding To The Normal Vector

 

            IVector3D planarNormalVector3D = ConstructVector3D(0, 0, 10);

 

            IGeometry geometry = GetMultiPatchGeometry();

 

            ITransform3D transform3D = geometry as ITransform3D;

 

IGeometry

projectedGeometry =

transform3D.ProjectToPlane(

planarOriginPoint, 

 

                          planarPositiveXVector3D,

planarNormalVector3D

                   );

        }

        private static IVector3D ConstructVector3D(double xComponent, double yComponent, double zComponent)

        {

            IVector3D vector3D = new Vector3DClass();

            vector3D.SetComponents(xComponent, yComponent, zComponent);

 

            return vector3D;

        }




PutCoordsEx(IPoint, IPoint)

Sets this segment's endpoints to 'from' and 'to'.

virtual void PutCoordsEx(IPoint from, IPoint to)

Parameters

from IPoint
to IPoint

QueryClipped(IEnvelope, IGeometry)

Redefines clippedGeometry to be the intersection of this geometry and the clipping envelope.

virtual void QueryClipped(IEnvelope clipperEnvelope, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
clippedGeometry IGeometry

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

The other geometry must be an high-level geometry. High-Level geometries are point, multipoint, polyline and polygon. To use it with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), path or ring they must be wrapped into high-level geometries type. The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

This method does not support GeometryBags.

QueryClipped Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

QueryClippedDense(IEnvelope, double, IGeometry)

Redefines clippedGeometry to be the intersection of this geometry and the clipping envelope; densifies lines in the output contributed by the clipping envelope.

virtual void QueryClippedDense(IEnvelope clipperEnvelope, double denseDistance, IGeometry clippedGeometry)

Parameters

clipperEnvelope IEnvelope
denseDistance double
clippedGeometry IGeometry

Remarks

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

The other geometry must be an high-level geometry. High-Level geometries are point, multipoint, polyline and polygon. To use it with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), path or ring they must be wrapped into high-level geometries type. The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

This method does not support GeometryBags.

QueryEnvelope(IEnvelope)

Copies this geometry's envelope properties into the specified envelope.

virtual void QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryEnvelope Example

QueryFirstLastM(out double, out double)

Returns the first and last defined M value for the curve.

virtual void QueryFirstLastM(out double firstM, out double lastM)

Parameters

firstM double
lastM double

Remarks

Note : NAN stands for Not A Number.

QueryFromPoint(IPoint)

Copies this curve's 'from' point to the input point.

virtual void QueryFromPoint(IPoint from)

Parameters

from IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryFromPoint Example

[C#]

//The example shows how to query the from and to points of a curve.
public void ICurveQueryPoints(IFeature currentFeature)
{
    if (currentFeature.Shape.GeometryType == esriGeometryType.esriGeometryPolyline ||
        currentFeature.Shape.GeometryType == esriGeometryType.esriGeometryLine)
    {
        ICurve curve = currentFeature.Shape as ICurve;
        IPoint fromPoint = new PointClass();
        IPoint toPoint = new PointClass();
        curve.QueryFromPoint(fromPoint);
        curve.QueryToPoint(toPoint);
        System.Windows.Forms.MessageBox.Show("ICurve properties..." + "\n" +
                        "Curve.QueryFromPoint (x,y) = " + fromPoint.X + "," + fromPoint.Y + "\n" +
                        "Curve.QueryToPoint (x,y) = " + toPoint.X + "," + toPoint.Y);
    }
}














[Visual Basic .NET]

    ' The example shows how to query the from and to points of a curve.
    Public Sub t_ICurve_QueryPoints(ByVal pFeature As IFeature)
        Dim pCurve As ICurve
        Dim pPointFrom As IPoint
        Dim pPointTo As IPoint
        pPointFrom = New Point
        pPointTo = New Point





        If pFeature.Shape.GeometryType = esriGeometryType.esriGeometryPolyline Or _
            esriGeometryType.esriGeometryPolyline Or esriGeometryType.esriGeometryLine Then
            pCurve = pFeature.Shape
            pCurve.QueryFromPoint(pPointFrom)
            pCurve.QueryToPoint(pPointTo)
            MsgBox("+++ICurve properties..." & vbCrLf _
              & "Curve.QueryFromPoint (x,y) = " & pPointFrom.X & "," & pPointFrom.Y & vbCrLf _
              & "Curve.QueryToPoint (x,y) = " & pPointTo.X & "," & pPointTo.Y & vbCrLf)
        End If
    End Sub








QueryGeometries(int, int, out IGeometry)

Populates the array with references to a sub-sequence of geometries. This method is intended for internal use only.

virtual void QueryGeometries(int Index, int Count, out IGeometry geometries)

Parameters

Index int
Count int
geometries IGeometry

Remarks

Note: The GeometryType returned by the QueryGeometries method depends on which object type points the IGeometryCollection pointer.

IGeometryCollection Object GeometryType Returned Object GeometryType
Polygon
Rings
Polyline
Paths
Multipoint
Points
Multipatch
TriangleFans or TriangleStrips or Rings
TriangleFan
Points
TriangleStrip
Points
Geometry Bag
Any type of IGeometry

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

QueryNearestPoint(IPoint, esriSegmentExtension, IPoint)

Copies into 'nearest' a point on this geometry nearest to the input point.

virtual void QueryNearestPoint(IPoint p, esriSegmentExtension extension, IPoint nearest)

Parameters

p IPoint
extension esriSegmentExtension
nearest IPoint

Remarks

 

QueryNearestPoint Example

QueryNearestPoint3D(IPoint, esriSegmentExtension, IPoint)

Copies into 'nearest' a point on this geometry nearest to the input point.

virtual void QueryNearestPoint3D(IPoint pInP, esriSegmentExtension extension, IPoint pNearest)

Parameters

pInP IPoint
extension esriSegmentExtension
pNearest IPoint

Remarks

If the geometry is an Envelope and the input point is located within the bounds of the Envelope, QueryNearestPoint3D will return a point on the exterior of the Envelope nearest the input point.

[C#]

QueryNearestPoint3D graphic example.

public static void QueryNearestPoint3D()
{
  IGeometry pointGeometry = GetPointGeometry();
  IGeometry envelopeGeometry = GetEnvelopeGeometry();
  IProximityOperator3D proximityOperator3D = envelopeGeometry as IProximityOperator3D;
  IPoint nearestPoint3D = new PointClass();
  proximityOperator3D.QueryNearestPoint3D(pointGeometry as IPoint, esriSegmentExtension.esriNoExtension, nearestPoint3D);
  //nearestPoint3D = (5.393, -0.583, -6.043)
}








QueryNormal(esriSegmentExtension, double, bool, double, ILine)

Constructs a line normal to a curve from a point at a specified distance along the curve.

virtual void QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

Remarks

 

QueryNormal Example

QueryPoint(esriSegmentExtension, double, bool, IPoint)

Copies to outPoint the properties of a point on the curve at a specified distance from the beginning of the curve.

virtual void QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

ICurve QueryPoint Example

QueryPoint(int, IPoint)

Queries for a point in the PointCollection at given index.

virtual void QueryPoint(int Index, IPoint Point)

Parameters

Index int
Point IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryPoint3D(esriSegmentExtension, double, bool, IPoint)

Copies to outPoint the properties of a point on the curve at a specified distance from the beginning of the curve.

virtual void QueryPoint3D(esriSegmentExtension extension, double DistanceAlongCurve, bool bAsRatio, IPoint pOutPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
bAsRatio bool
pOutPoint IPoint

QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

Finds the point on the curve closest to inPoint, then copies that point to outPoint; optionally calculates related items.

virtual void QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

Remarks

AsRatio is an input parameter that only affects the DistanceAlongCurve

distanceFromCurve is an output parameter that represents the minimum distance between the curve and the input point.

DistanceAlongCurve is an output parameter that represents the distance between the Frompoint of the input curve and the returned point on the curve.

bRightSide is an output parameter that tells if the input point is on the right side of the curve. The direction of the curve determines the right and left sides.

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryPointAndDistance Example

QueryPointAndDistance3D(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double)

Finds the point on the curve closest to inPoint, then copies that point to outPoint; optionally calculates related items.

virtual void QueryPointAndDistance3D(esriSegmentExtension extension, IPoint pInPoint, bool bAsRatio, IPoint pOutPoint, ref double pDistanceAlongCurve, ref double pDistanceFromCurve)

Parameters

extension esriSegmentExtension
pInPoint IPoint
bAsRatio bool
pOutPoint IPoint
pDistanceAlongCurve double
pDistanceFromCurve double

QueryPoints(int, int, ref IPoint)

Copies some points to an existing array of points. This method is intended for internal use only.

virtual void QueryPoints(int Index, int Count, ref IPoint Points)

Parameters

Index int
Count int
Points IPoint

QueryPointsAndDistances(esriSegmentExtension, double, IPoint, bool, ref double, out IEnumPointAndDistance)

Given an input point, calculates the minimum distance to the geometry and provides an enumerator over all closest points on the geometry, along with additional information.

virtual void QueryPointsAndDistances(esriSegmentExtension extension, double searchRadius, IPoint inPoint, bool asRatio, ref double distanceFromCurve, out IEnumPointAndDistance pointsAndDistances)

Parameters

extension esriSegmentExtension
searchRadius double
inPoint IPoint
asRatio bool
distanceFromCurve double
pointsAndDistances IEnumPointAndDistance

Remarks

AsRatio is an input parameter that only affects the DistanceAlongCurvereturned as part of the output IEnumPointAndDistance enumerator.

distanceFromCurve is an output parameter that represents the minimum distance between the curve and the input point.

IEnumPointAndDistance is an enumerator (it inherits from IEnumVertex) over all nearest points on the curve

QuerySegments(int, int, out ISegment)

Returns references to some of the input segments. This method is intended for internal use only.

virtual void QuerySegments(int Index, int Count, out ISegment segments)

Parameters

Index int
Count int
segments ISegment

QueryTangent(esriSegmentExtension, double, bool, double, ILine)

Constructs a line tangent to a curve from a point at a specified distance along the curve.

virtual void QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

Remarks

 

QueryTangent Example

QueryToPoint(IPoint)

Copies the curve's 'to' point into the input point.

virtual void QueryToPoint(IPoint to)

Parameters

to IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryToPoint Example

QueryWKSEnvelope(out WKSEnvelope)

Defines the specified wksenvelope to be the current extent of this geometry in the x-y plane.

virtual void QueryWKSEnvelope(out WKSEnvelope e)

Parameters

e WKSEnvelope

QueryWKSPointZs(int, int, out WKSPointZ)

Copies vertices/points coordinates to the array of point structures.

virtual void QueryWKSPointZs(int Index, int Count, out WKSPointZ pointStructures)

Parameters

Index int
Count int
pointStructures WKSPointZ

QueryWKSPoints(int, int, out WKSPoint)

Copies vertices'/points' coordinates to the array of point structures.

virtual void QueryWKSPoints(int Index, int Count, out WKSPoint pointStructures)

Parameters

Index int
Count int
pointStructures WKSPoint

Relation(IGeometry, string)

Indicates if the defined relationship exists.

virtual bool Relation(IGeometry other, string relationDescription)

Parameters

other IGeometry
relationDescription string

Returns

bool

Remarks

Here is a VBA example of using the "RELATE" function to detect overlapping polylines. It assumes two polyline features are selected. G1 and G2 are placeholders for, in this example, the VBA variables r1 and r2.

Option Explicit

Public Sub overlapstest()
Dim ef As IEnumFeature
Dim d As IMxDocument
Set d = ThisDocument
Set ef = d.FocusMap.FeatureSelection
Dim r1 As IRelationalOperator, r2 As IRelationalOperator
Set r1 = ef.Next.Shape
Set r2 = ef.Next.Shape






Debug.Print "relation:", r1.Relation(r2, "RELATE(G1, G2, ""1********"")")

End Sub

RemoveGeometries(int, int)

Removes references to some geometries from this collection.

virtual void RemoveGeometries(int Index, int Count)

Parameters

Index int
Count int

Remarks

RemoveGeometries deletes count number of geometries from the index location.

RemovePoints(int, int)

Removes vertices from a Path, Ring, Polyline, or Polygon, or references to points from a Multipoint, TriangleFan, or TriangleStrip.

virtual void RemovePoints(int Index, int Count)

Parameters

Index int
Count int

RemoveSegments(int, int, bool)

Removes references to some segments. If closeGap is TRUE, then any remaining internal gap in the path, ring, polyline or polygon is connected with a single line segment.

virtual void RemoveSegments(int Index, int Count, bool closeGap)

Parameters

Index int
Count int
closeGap bool

ReplacePointCollection(int, int, IPointCollection)

Replaces vertices/points within a PointCollection.

virtual void ReplacePointCollection(int Index, int goingAway, IPointCollection newPoints)

Parameters

Index int
goingAway int
newPoints IPointCollection

ReplacePoints(int, int, int, ref IPoint)

Replaces vertices/points within a PointCollection.

virtual void ReplacePoints(int Index, int comingIn, int goingAway, ref IPoint newPoints)

Parameters

Index int
comingIn int
goingAway int
newPoints IPoint

ReplaceSegmentCollection(int, int, ISegmentCollection)

Remove and inserts some segments.

virtual void ReplaceSegmentCollection(int Index, int goingAway, ISegmentCollection newSegments)

Parameters

Index int
goingAway int
newSegments ISegmentCollection

ReplaceSegments(int, int, int, ref ISegment)

Removes and inserts from segments. This method is intended for internal use only.

virtual void ReplaceSegments(int Index, int comingIn, int goingAway, ref ISegment newSegments)

Parameters

Index int
comingIn int
goingAway int
newSegments ISegment

Remarks

ReplaceSegments will return an error ("The index is either too large or too small") if the inputs are inconsistent. For example, specifying index = 4 on a polyline with only 2 segments.

On multipart geometry, segments cannot be replaced on more than one part at the time. For example, an error (("The index is either too large or too small") is returned on a polyline with two parts containing three segments each when specifying index= 2, incoming= 2, removal= 2. The error is returned because the first part doesn't contain enough segments to remove two segments starting at index = 2. This behavior is enforced for performance reasons. Please see the example.  

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

Reshape(IPath)

Modifies this polyline by replacing some of its segments with some segments from reshapeSource.

virtual bool Reshape(IPath reshapeSource)

Parameters

reshapeSource IPath

Returns

bool

Remarks

Note: For multipart (more than one path) polyline output part ordering may not be preserved. The orientation of vertices within parts is preserved.

ReshapeEx(IPath, bool)

If bInterpolateReshaped is true, then new vertices will be interpolated based on vertices from the polyline being reshaped. Otherwise, attributes on the reshaping line will be preserved in the output.

virtual bool ReshapeEx(IPath reshapeSource, bool bInterpolateReshaped)

Parameters

reshapeSource IPath
bInterpolateReshaped bool

Returns

bool

ReturnDistance(IGeometry)

Returns the minimum distance between two geometries.

virtual double ReturnDistance(IGeometry other)

Parameters

other IGeometry

Returns

double

Remarks

 

ReturnDistance Example

The geometry combinations which can be used with ReturnDistance are:

Point: Point, MultiPoint, Envelope, Polyline, Polygon, Line, CircularArc, EllipticArc, BezierCurve.
Multipoint: Point, MultiPoint, Envelope, Polyline, Polygon.
Envelope: Point, MultiPoint, Envelope, Line, CircularArc, EllipticArc, BezierCurve, PolyLine, Polygon.
PolyLine: Point, Multipoint, Envelope, PolyLine, Polygon.
Polygon: Point, Multipoint, Envelope, PolyLine, Polygon.
Line: Point, Envelope, Line, CircularArc, EllipticArc, BezierCurve.
CircularArc: Point, Envelope, Line, CircularArc, EllipticArc (not implemented yet), BezierCurve.
EllipticArc: Point, Envelope, Line, CircularArc (not implemented yet), EllipticArc (not implemented yet), BezierCurve (not implemented yet).
BezierCurve: Point, Envelope, Line, CircularArc, EllipticArc (not implemented yet), BezierCurve.







Note: To get the distance between a segment (Line, CircularArc, EllipticArc, BezierCurve) and a MultiPoint, PolyLine or Polygon, add that segment to a PolyLine.

ReturnDistance3D(IGeometry)

Returns the minimal distance between two geometries.

virtual double ReturnDistance3D(IGeometry pOther)

Parameters

pOther IGeometry

Returns

double

ReturnNearestPoint(IPoint, esriSegmentExtension)

Creates and returns a point on this geometry nearest to the input point.

virtual IPoint ReturnNearestPoint(IPoint p, esriSegmentExtension extension)

Parameters

p IPoint
extension esriSegmentExtension

Returns

IPoint

Remarks

 

ReturnNearestPoint Example

ReturnNearestPoint3D(IPoint, esriSegmentExtension)

Creates and returns a point on this geometry nearest to the input point.

virtual IPoint ReturnNearestPoint3D(IPoint pInP, esriSegmentExtension extension)

Parameters

pInP IPoint
extension esriSegmentExtension

Returns

IPoint

Remarks

If the geometry is an Envelope and the input point is located within the bounds of the Envelope, QueryNearestPoint3D will return a point on the exterior of the Envelope nearest the input point.

[C#]

 

        public static void ReturnNearestPoint3D()

        {

IGeometry

pointGeometry = GetPointGeometry();

IGeometry envelopeGeometry = GetEnvelopeGeometry();


IProximityOperator3D

 proximityOperator3D = envelopeGeometry as IProximityOperator3D;

IPoint nearestPoint3D = proximityOperator3D.ReturnNearestPoint3D(pointGeometry as IPoint, esriSegmentExtension.esriNoExtension);


               //nearestPoint3D = (5.393, -0.583, -6.043)


        }

ReverseMsOrder()

Reverses the order of the Ms along the geometry.

virtual void ReverseMsOrder()

Remarks

Note that the m values are simply reversed. Any length:measure ratios that were present before ReverseMsOrder is called are not preserved.

ReverseOrientation()

Reverses the parameterization of the curve ('from' point becomes 'to' point, first segment becomes last segment, etc).

virtual void ReverseOrientation()

Remarks

The ReverseOrientation method works the same way as the Arcedit FLIP command. It reverses the order of the vertices in the Curve.

Caution should be taken in using ReverseOrientation on Polygons.  Since ReverseOrientation changes the direction of each Ring within the Polygon, all Exterior Rings become Interior Rings and vice versa.

Reverse Orientation Example

[C#]

    public void ReverseOrientation(IFeatureClass featureClass, int oidToEdit)
    {
        IFeature feature = featureClass.GetFeature(oidToEdit);
        if (feature.Shape.GeometryType == esriGeometryType.esriGeometryPolygon)
        {
            IArea area = feature.Shape as IArea;
            double beforeReverse = area.Area;
            ICurve curve = feature.Shape as ICurve;
            curve.ReverseOrientation();
            double afterReverse = area.Area;
            System.Windows.Forms.MessageBox.Show(String.Format("The polygon area is originally {0}, after the orientation was reversed the area is {1}.",beforeReverse,afterReverse));
        }
    }











Rotate(IPoint, double)

Rotates about the specified origin point. The angle is in radians. The origin can be in a different spatial reference than the geometry being rotated.

virtual void Rotate(IPoint Origin, double rotationAngle)

Parameters

Origin IPoint
rotationAngle double

Remarks

An Envelope cannot be Rotated.

Transform2D Rotate Example

RotateVector3D(IVector3D, double)

Rotates the object about axis defined by the specified vector through an angle measured in radians.

virtual void RotateVector3D(IVector3D axis, double rotationAngle)

Parameters

axis IVector3D
rotationAngle double

Remarks

The angle of rotation must be in radians. To convert to radians from decimal degrees, multiply by PI/180.

[C#]

 

        public static void TransformMultiPatchGeometry()

        {

            const double DegreesOfRotation = 45;

 

            //Transform3D: Cylinder Rotated Around An Axis Via RotateVector3D()

 

            //Construct A Vector3D Corresponding To The Desired Axis Of Rotation

 

            IVector3D axisOfRotationVector3D = ConstructVector3D(0, 10, 0);

 

            //Obtain Angle Of Rotation In Radians

 

            double angleOfRotationInRadians = GetRadians(DegreesOfRotation);

 

            IGeometry geometry = GetMultiPatchGeometry();

 

            ITransform3D transform3D = geometry as ITransform3D;

            transform3D.RotateVector3D(axisOfRotationVector3D, angleOfRotationInRadians);

        }

        private static IVector3D ConstructVector3D(double xComponent, double yComponent, double zComponent)

        {

            IVector3D vector3D = new Vector3DClass();

            vector3D.SetComponents(xComponent, yComponent, zComponent);

 

            return vector3D;

        }

 

        private static double GetRadians(double decimalDegrees)

        {

            return decimalDegrees * (Math.PI / 180);

        }


Save(IStream, int)

virtual void Save(IStream pstm, int fClearDirty)

Parameters

pstm IStream
fClearDirty int

Scale(IPoint, double, double)

Scales about the specified origin using seperate horizonal and vertical scales. The origin point can be in a different spatial reference than the geometry being scaled.

virtual void Scale(IPoint Origin, double sx, double sy)

Parameters

Origin IPoint
sx double
sy double

Remarks

Note: Caution must be taken when scaling a CircularArc or a geometry containing CircularArc segments.  Unless Abs(ScaleX) = Abs(ScaleY), the resulting CircularArcs will not retain the characteristics of the original geometry (since they remain CircularArcs).

Scale Example

[C#]

            //Create Point you wish to scale
            IPoint startingPoint = new PointClass() as IPoint;
            startingPoint.PutCoords(10, 10);
            //Create a point to act as origin
            IPoint origin = new PointClass() as IPoint;
            origin.PutCoords(15, 15);
            //Cast the startingPoint into the correct Interface
            ITransform2D transformScalePoint = startingPoint as ITransform2D;
            //Perform Scale
            transformScalePoint.Scale(origin, .5, .5);
            double x;
            double y;
            startingPoint.QueryCoords(out x, out y);
            Debug.Print(x.ToString());
            Debug.Print(y.ToString());













Scale3D(IPoint, double, double, double)

Scales the object about the specified origin point. sx, sy, and sz are the scaling factors for the x, y, and z dimensions repectively.

virtual void Scale3D(IPoint Origin, double sx, double sy, double sz)

Parameters

Origin IPoint
sx double
sy double
sz double

Segment[int]

A reference to the ith segment.

virtual ISegment Segment[int i] { get; }

Parameters

i int

Returns

ISegment

SegmentCount

The number of segments.

virtual int SegmentCount { get; }

Returns

int

SegmentsChanged()

Informs the segment collection that any cached values that it may be maintaining (envelope, length, etc.) are invalid. Use this method after editing segments directly.

virtual void SegmentsChanged()

Serialize(IXMLSerializeData)

Serializes an object to XML.

virtual void Serialize(IXMLSerializeData data)

Parameters

data IXMLSerializeData

SetAndInterpolateMsBetween(double, double)

Sets the Ms at the beginning and the end of the geometry and interpolates the M values between these values.

virtual void SetAndInterpolateMsBetween(double fromM, double toM)

Parameters

fromM double
toM double

SetAndInterpolateMsBetween3D(double, double)

Sets the Ms at the beginning and the end of the geometry and interpolates the M values between these values based on an interpolation normalized to the 3D length of the shape.

virtual void SetAndInterpolateMsBetween3D(double fromM, double toM)

Parameters

fromM double
toM double

SetCircle(IPoint, double)

Defines this path, ring, polyline or polygon to contain a single circular arc segment that is closed.

virtual void SetCircle(IPoint cp, double circleRadius)

Parameters

cp IPoint
circleRadius double

SetConstantZ(double)

Sets Z coordinates at all vertices to zLevel.

virtual void SetConstantZ(double zLevel)

Parameters

zLevel double

SetEmpty()

Removes all points from this geometry.

virtual void SetEmpty()

Remarks


Use the SetEmpty method to clear geometries and release memory. For example, a polygon with 100 rings will have an internal array of 100 pointers to ring objects. That array will go away and Release will be called on each ring. If that polygon had the only reference on those rings, then they'll go away, which releases all their segments, which may also then go away.


[C#]     private bool EmptyGeometry(IGeometry geometry)
    {
        geometry.SetEmpty();
        return geometry.IsEmpty;
    }



SetGeometries(int, ref IGeometry)

Replaces all geometries in the collection with the specified number of references to those in the input array. This method is intended for internal use only.

virtual void SetGeometries(int Count, ref IGeometry newGeometries)

Parameters

Count int
newGeometries IGeometry

Remarks

SetGeometries is used to reset the references of the geometries within the GeometryCollection . The result is that all references are changed to point only at the geometries contained within the specified array. Note that the GeometryCount changes accordingly also.

 

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

SetGeometryCollection(IGeometryCollection)

Replaces all geometries in the collection with references to geometries from the input collection.

virtual void SetGeometryCollection(IGeometryCollection newParts)

Parameters

newParts IGeometryCollection

Remarks

SetGeometryCollection copies the geometry references from one GeometryCollection to another.

VB Example: Set GeometryCollection m_pGeoColl_A as m_pGeoColl_B


  m_pGeoColl_A.SetGeometryCollection m_pGeoColl_B

SetMsAsDistance(bool)

Sets the M values to the cumulative length from the origin of the geometry.

virtual void SetMsAsDistance(bool asRatio)

Parameters

asRatio bool

SetMsAsDistance2(IPoint, double, double, bool)

Sets Ms on vertices as scaled and offset distances from the input origin as measured along the polyline. Shortest path distances from the origin are used. Optionally ignores distances between parts of the polyline.

virtual void SetMsAsDistance2(IPoint Origin, double Scale, double Offset, bool ignoreGaps)

Parameters

Origin IPoint
Scale double
Offset double
ignoreGaps bool

SetMsAsDistance3D(bool)

Sets the M values to the cumulative 3D length from the origin of the geometry.

virtual void SetMsAsDistance3D(bool asRatio)

Parameters

asRatio bool

SetNonSimpleZs(double)

Replaces undefined (nonsimple) Z values with the specified constant value.

virtual void SetNonSimpleZs(double zLevel)

Parameters

zLevel double

SetPointCollection(IPointCollection)

Replaces all vertices of this Path, Ring, Polyline, or Polygon with copies of the points in the input collection; or all points of this Multipoint, TriangleFan, or TriangleStrip with references to points from the input collection.

virtual void SetPointCollection(IPointCollection newPoints)

Parameters

newPoints IPointCollection

SetPoints(int, ref IPoint)

Replaces all existing vertices of this Path, Ring, Polyline, or Polygon with copies of the input points; or all existing points of this Multipoint, TriangleFan, or TriangleStrip with references to the input points (for C++ and VB users only).

virtual void SetPoints(int Count, ref IPoint newPoints)

Parameters

Count int
newPoints IPoint

SetRectangle(IEnvelope)

Defines this path, ring, polyline or polygon to have four line segments in the same positions as the sides of the input envelope.

virtual void SetRectangle(IEnvelope inEnvelope)

Parameters

inEnvelope IEnvelope

Remarks

The method uses the spatial reference of the input envelope to determine whether or not the output geometry is simple. 

If the input envelope does not have a spatial reference, the output geometry will be assumed non-simple geometry.

If the input envelope has a spatial reference, and its width and height are greater than 3*tolerance, then the output geometry is a simple geometry.  Otherwise, the output is non-simple.

SetSegmentCollection(ISegmentCollection)

Replaces all segments with references to segments from the input collection.

virtual void SetSegmentCollection(ISegmentCollection newSegments)

Parameters

newSegments ISegmentCollection

SetSegments(int, ref ISegment)

Replaces all segments with references to the input segments. This method is intended for internal use only.

virtual void SetSegments(int Count, ref ISegment newSegments)

Parameters

Count int
newSegments ISegment

SetWKSPointZs(int, ref WKSPointZ)

Replaces all vertices/points of this Path, Ring, Polyline, Polygon, Multipoint, TriangleFan, Triangles, TriangleStrip, or MultiPatch with new ones.

virtual void SetWKSPointZs(int Count, ref WKSPointZ pointStructures)

Parameters

Count int
pointStructures WKSPointZ

SetWKSPoints(int, ref WKSPoint)

Replaces all vertices of this Path, Ring, Polyline, or Polygon with new ones, or replaces all points of this Multipoint, TriangleFan, or TriangleStrip with new ones.

virtual void SetWKSPoints(int Count, ref WKSPoint pointStructures)

Parameters

Count int
pointStructures WKSPoint

Simplify()

Makes this geometry topologically correct.

virtual void Simplify()

Remarks

This method first looks at the ITopologicalOperator::IsKnownSimple flag before starting processing. If the flag is 'true' then operation is interrupted and the geometry is considered simple. If the flag is 'false' then the geometry consistency is checked and the geometry is updated as needed.

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

Simplify Polygon Example

Simplify Polyline Example

Simplify Point Example

SimplifyAsFeature()

Simplifies the geometry using the rules appropriate for this feature.

virtual void SimplifyAsFeature()

SimplifyEx(bool)

Use either planar or network simplify regardless of current attribute awareness.

virtual void SimplifyEx(bool planarSimplify)

Parameters

planarSimplify bool

Remarks

The Simplify method, when applied to an m-aware polyline, will not attempt to detect self-intersections, overlaps, etc. You can use this method to force planar simplification of m-aware polylines.

SimplifyNetwork()

Removes zero length segments (zero in 2 dimensions), merges parts at endpoints that only connect to each other, reorients segments that are pointing against the prevailing orientation for a part.

virtual void SimplifyNetwork()

Remarks

It is possbile for network features to have an inconsistent geometry requiring simplification, for example, a network edge can be a multipart feature whose parts share an endpoint.  To correct the feature's geometry, set IsKnownSimple to False and call SimplifyNetwork on the feature to correct the inconsistency.

Smooth(double)

Converts this curve into a smooth curve containing only Bezier curve segments.

virtual void Smooth(double maxAllowableOffset)

Parameters

maxAllowableOffset double

Remarks

 

IPolycurve Smooth Example

Snap()

Snaps ms to the precision of the spatial reference associated with the geometry. M snapping does not happen automatically as part of calling IGeometry::SnapToSpatialReference.

virtual void Snap()

SnapToSpatialReference()

Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system.

virtual void SnapToSpatialReference()

Remarks

SnapToSpatialReference rounds all coordinates to the resolution defined by the geometry's spatial reference system. This has a similar effect on the geometry as storing the geometry in a Geodatabase.

SpatialReference

The spatial reference associated with this geometry.

virtual ISpatialReference SpatialReference { get; set; }

Returns

ISpatialReference

SplitAtDistance(double, bool, bool, out bool, out int, out int)

Introduces a new vertex into this polyline at a specified distance from the beginning of the polyline.

virtual void SplitAtDistance(double distance, bool asRatio, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

distance double
asRatio bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

Remarks

CreatePart must be FALSE for polygons.  For polylines, if CreatePart is TRUE, the part on which the new split point falls is split into two parts with the newly added vertex serving as the end of the first part and the beginning of the second.

 

SplitAtDistance Example

SplitAtDistances(int, ref double, bool, bool)

Introduces new vertices into this polyline at specified distances from the beginning of the polyline.

virtual IEnumSplitPoint SplitAtDistances(int distanceCount, ref double distances, bool asRatios, bool createParts)

Parameters

distanceCount int
distances double
asRatios bool
createParts bool

Returns

IEnumSplitPoint

SplitAtPoint(IPoint, bool, bool, out bool, out int, out int)

Introduces a new vertex into this polyline at the location on it closest to the input point.

virtual void SplitAtPoint(IPoint splitPoint, bool projectOnto, bool createPart, out bool SplitHappened, out int newPartIndex, out int newSegmentIndex)

Parameters

splitPoint IPoint
projectOnto bool
createPart bool
SplitHappened bool
newPartIndex int
newSegmentIndex int

Remarks

projectOnto is an input parameter that determines if the output point will be located on the polycurve. If projectOnto is true and the input point is not already on the polycurve then the point is projected on the curve.

createPart is an input parameter that determines if parts (paths) have to be created. createPart must be FALSE for polygons.  For polylines, if createPart is TRUE, the part on which the new split point falls is split into two parts with the newly added vertex serving as the end of the first part and the beginning of the second.

SplitHappened is an output parameter that tells if the polycurve has been split or not.

newPartIndex is an output parameter that tells on which part (ring or path) the point has been introduced.

newSegmentIndex is an output parameter that tells what is the index of the new created segment. That index is zero based and part relative (start at 0 for each part).

 

SplitAtPoint Example

SplitAtPoints(IEnumVertex, bool, bool, double)

Introduces new vertices into this polyline at the locations on it closest to the input points. Do not consider points farther than cutoffDistance from the polyline.

virtual IEnumSplitPoint SplitAtPoints(IEnumVertex splitPoints, bool projectOnto, bool createParts, double cutoffDistance)

Parameters

splitPoints IEnumVertex
projectOnto bool
createParts bool
cutoffDistance double

Returns

IEnumSplitPoint

Remarks

Parameters description:

splitPoints: Input IEnumVertex object. It represents the points to be used to split the polycurve.

projectOnto: The projectOnto is an input parameter that determines if the output point will be located on the polycurve. If projectOnto is true and the input point is not already on the polycurve then the point is projected on the curve. If false, the polycurve is split and modified to pass trough the point.

createParts: The createParts is an input parameter that determines if parts (paths) have to be created. createPart must be FALSE for polygons.  For polylines, if createPart is TRUE, the part on which the new split point falls is split into two parts with the newly added vertex serving as the end of the first part and the beginning of the second.

cutoffDistance: Input Double that represents the distance from the curve from where points are not considered anymore has being valid split points.

Note: The IEnumSplitPoint contains the input points.

SymmetricDifference(IGeometry)

Constructs the geometry that contains points from either but not both input geometries.

virtual IGeometry SymmetricDifference(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

Remarks

SymmetricDifference is basically an XOR between the input geometries.

SymmetricDifference of G1 and G2 can also be described as the Union(Difference(G1, G2), Difference(G2, G1)).

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

 This method does not support GeometryBags.

Symmetric Difference Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

SymmetricDifferenceEx(IGeometry, bool)

defined for (multi)points and polylines.

virtual IGeometry SymmetricDifferenceEx(IGeometry other, bool bNonPlanar)

Parameters

other IGeometry
bNonPlanar bool

Returns

IGeometry

SynchronizeEmptyAttributes()

If, at end point shared by two segments, one segment has an empty value for an attribute and the other has a non-empty value, use the non-empty value for both.

virtual void SynchronizeEmptyAttributes()

ToPoint

The 'to' point of the curve.

virtual IPoint ToPoint { get; set; }

Returns

IPoint

Remarks

 

ToPoint Example

TopologyCache(out long)

Provides a handle to the TopologyCache.

virtual void TopologyCache(out long topologyCacheHandle)

Parameters

topologyCacheHandle long

TouchCut(IPolyline, out IGeometry, out IGeometry)

Cut a polyline at locations where the cutter only touches the polyline, in addition to locations where the cutter crosses it.

virtual void TouchCut(IPolyline pCutter, out IGeometry ppLeftGeom, out IGeometry ppRightGeom)

Parameters

pCutter IPolyline
ppLeftGeom IGeometry
ppRightGeom IGeometry

Touches(IGeometry)

Indicates if the boundaries of the geometries intersect.

virtual bool Touches(IGeometry other)

Parameters

other IGeometry

Returns

bool

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

Touch does not apply for point/point comparison.

If either one of the two geometries is empty, the geometries are not touched.

 

Transform(esriTransformDirection, ITransformation)

Applies an arbitrary transformation. In particular, the transformation parameter can be either an affine transformation or a geographic transformation (datum shift).

virtual void Transform(esriTransformDirection Direction, ITransformation Transformation)

Parameters

Direction esriTransformDirection
Transformation ITransformation

Transform3D(esriTransformDirection, ITransformation3D)

Applies an arbitrary 3D transformation.

virtual void Transform3D(esriTransformDirection Direction, ITransformation3D Transformation)

Parameters

Direction esriTransformDirection
Transformation ITransformation3D

Union(IGeometry)

Constructs the geometry that is the set-theoretic union of the input geometries.

virtual IGeometry Union(IGeometry other)

Parameters

other IGeometry

Returns

IGeometry

Remarks

The Union is basically an OR between the input geometries.

ITopologicalOperator methods must be applied on high-level geometries only. High-Level geometries are point, multipoint, polyline and polygon. To use this method with low-level geometries such as segments (Line, Circular Arc, Elliptic Arc, Bézier Curve), paths or rings, they must be wrapped into high-level geometries types.

This method does not support GeometryBags.

Union Example

[C#]

//The following code shows to wrap a line segment into a polyline in C#

//Assume a line (line1 as ILine) is already created

object obj = Type.Missing;

ISegmentCollection segCollection = new PolylineClass() as ISegmentCollection;

segCollection.AddSegment((ISegment)line1, ref obj, ref obj);

//Set the spatial reference on the new polyline

//The spatial reference is not transfered automatically from the segments

IGeometry geom = segCollection as IGeometry;

geom.SpatialReference = spatialRef;

//Can now be used with ITopologicalOperator methods

 

UnionEx(IGeometry, bool)

Constructs the set-theoretic union of the inputs, with the option for non-planary result.

virtual IGeometry UnionEx(IGeometry other, bool bNonPlanar)

Parameters

other IGeometry
bNonPlanar bool

Returns

IGeometry

UpdateAllMsByMs(IPoint, double, double, bool)

Sets Ms on vertices as scaled and offset M distances from the input origin as measured along the polyline based on the existing M's. Shortest path distances from the origin are used. Optionally ignores distances between parts of the polyline.

virtual void UpdateAllMsByMs(IPoint Origin, double Scale, double Offset, bool ignoreGaps)

Parameters

Origin IPoint
Scale double
Offset double
ignoreGaps bool

UpdateMsByDistance(int, int, int, int, double, double, int, bool)

Updates Ms along the shortest path between the specified endpoints. The interpolation ratio is determined by the input ms and euclidean distance along that path. The update method is given as a combination of esriGeometryUpdateMEnum values.

virtual void UpdateMsByDistance(int fromPart, int FromPoint, int toPart, int ToPoint, double fromM, double toM, int updateHow, bool ignoreGaps)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int
fromM double
toM double
updateHow int
ignoreGaps bool

Remarks

The updateHow argument is given as a combination of esriGeometryUpdateMEnum values. When combining multiple values, the bitwise Or operator should always be used. This assures an error-free combination of the values (as long as the attempted combination is valid). Do not use the addition operator (+) to combine the values as unexpected results may occur.

For example, to interpolate between the input points and to extrapolate before and after the input points, you would use 7, which equates to: esriGeometryInterpolate OR esriGeometryExtrapolateBefore OR esriGeometryExtrapolateAfter

esriGeometryInterpolate = 0001 (1)
esriGeometryExtrapolateBefore = 0010 (2)
esriGeometryExtrapolateAfter = 0100 (4)
0001
   0010
   0100
   ----
   0111

UpdateMsByMs(int, int, int, int, double, double, int)

Updates Ms along the shortest path between the specified endpoints. The interpolation ratio is determined by the existing ms along that path and the input ms. The update method is given as a combination of esriGeometryUpdateMEnum values.

virtual void UpdateMsByMs(int fromPart, int FromPoint, int toPart, int ToPoint, double fromM, double toM, int updateHow)

Parameters

fromPart int
FromPoint int
toPart int
ToPoint int
fromM double
toM double
updateHow int

Remarks

The updateHow argument is given as a combination of esriGeometryUpdateMEnum values. When combining multiple values, the bitwise Or operator should always be used. This assures an error-free combination of the values (as long as the attempted combination is valid). Do not use the addition operator (+) to combine the values as unexpected results may occur.

For example, to interpolate between the input points and to extrapolate before and after the input points, you would use 7, which equates to: esriGeometryInterpolate OR esriGeometryExtrapolateBefore OR esriGeometryExtrapolateAfter

esriGeometryInterpolate = 0001 (1)
esriGeometryExtrapolateBefore = 0010 (2)
esriGeometryExtrapolateAfter = 0100 (4)

0001 0010 0100

0111

UpdatePoint(int, IPoint)

Changes the ith vertex or point to be a copy of the input point.

virtual void UpdatePoint(int i, IPoint p)

Parameters

i int
p IPoint

Remarks

For efficiency UpdatePoint does not check if the spatial reference of the input point is equal to the spatial reference of the PointCollection. Please make sure that the spatial reference of the input point is equal to the spatial reference of the PointCollection before you pass the point in.

Note : You can also explicitly check the spatial reference by using IClone::IsEqual

[C#]

//Point to use in the UpdatePoint call
IPoint point = new PointClass() as IPoint;

//Point Collection to UpdatePoint
IPointCollection ptCollection = new MultipointClass() as IPointCollection;

//Set the spatial reference of the Point Collection usually it has already been set
ISpatialReferenceFactory srFactory = new SpatialReferenceEnvironmentClass() as ISpatialReferenceFactory;
IGeometry geom = ptCollection as IGeometry;
geom.SpatialReference = srFactory.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1983N_AmericaLambert);
ISpatialReference sr = geom.SpatialReference;

//This line does nothing if the two spatial references are already equal
point.Project(sr);

//The integer is the number of point in the point collection you are updating
ptCollection.UpdatePoint(1, point);

















Weed(double)

Generalizes using a small tolerance based upon either the system units of the geometry's spatial reference, or the geometry's bounding box.

virtual void Weed(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

Remarks

For polycurve with non-linear segments, the output curve may contain more vertices than the input curve, but all output segments will be linear.

Weed(X) = Generalize(X * InternalTolerance)

IPolycurve Weed Example

Weed3D(double)

Generalizes using a small tolerance based upon either the system units of the geometry's spatial reference, or the geometry's bounding box.

virtual void Weed3D(double maxAllowableOffsetFactor)

Parameters

maxAllowableOffsetFactor double

Within(IGeometry)

Indicates if this geometry is contained (is within) another geometry.

virtual bool Within(IGeometry other)

Parameters

other IGeometry

Returns

bool

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

If geometry1 is Within geometry2, then geometry2 Contains geometry1.

An empty geometry is within another geometry, unless the other geometry is empty.

Within examples. Only "true" relationships are showed in this picture.

WithinEx(IGeometry, esriSpatialRelationExEnum)

Indicates if this geometry contains the other geometry, optionally using Celementini's definition.

virtual bool WithinEx(IGeometry pOther, esriSpatialRelationExEnum Relation)

Parameters

pOther IGeometry
Relation esriSpatialRelationExEnum

Returns

bool

ZAware

Indicates whether or not the geometry is aware of and capable of handling Zs.

virtual bool ZAware { get; set; }

Returns

bool

Remarks

Use ZAware = True when you want geometries to retain Z values during geometry operations.

[C#]

    private Double getZFromPoint(IPoint point)
    {
        return point.Z;
    }


ZMax

The maximum Z value.

virtual double ZMax { get; }

Returns

double

ZMin

The minimum Z value.

virtual double ZMin { get; }

Returns

double

ZSimple

Indicates if all the Zs are valid numbers.

virtual bool ZSimple { get; }

Returns

bool

ZVertical

Indicates if at least two consecutive vertices of this polyline or polygon have the same x and y values, but distinct z values.

virtual bool ZVertical { get; }

Returns

bool