This document is archived and information here might be outdated.  Recommended version.


IGeometry5.ProjectEx5 Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometry5 Interface > IGeometry5.ProjectEx5 Method
ArcGIS Developer Help

IGeometry5.ProjectEx5 Method

Same as ProjectEx, but with additional parameter projectionHint.

[Visual Basic .NET]
Public Sub ProjectEx5 ( _
    ByVal newReferenceSystem As ISpatialReference, _
    ByVal Direction As esriTransformDirection, _
    ByVal Transformation As ITransformation, _
    ByVal bAngularDensify As Boolean, _
    ByVal maxSegmentLength As Double, _
    ByVal maxDeviation As Double, _
    ByVal ProjectionHint As Integer _
)
[C#]
public void ProjectEx5 (
    ISpatialReference newReferenceSystem,
    esriTransformDirection Direction,
    ITransformation Transformation,
    bool bAngularDensify,
    double maxSegmentLength,
    double maxDeviation,
    int ProjectionHint
);
[C++]
HRESULT ProjectEx5(
  ISpatialReference* newReferenceSystem,
  esriTransformDirection Direction,
  ITransformation* Transformation,
  VARIANT_BOOL bAngularDensify,
  double maxSegmentLength,
  double maxDeviation,
  long ProjectionHint
);
[C++]
Parameters
newReferenceSystem 

newReferenceSystem is a parameter of type ISpatialReference* Direction
Direction is a parameter of type esriTransformDirection Transformation
Transformation is a parameter of type ITransformation* bAngularDensify
bAngularDensify is a parameter of type bool maxSegmentLength
maxSegmentLength is a parameter of type double maxDeviation
maxDeviation is a parameter of type double ProjectionHint
ProjectionHint is a parameter of type long

Product Availability

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

Description

The projectionHint parameter contains information about whether a geometry will cross the coordinate system horizons. If it doesn't, parts of the code that check this and intersect the geometry with the horizons can be omitted. This can dramatically improve performance. Use ISpatialReference3::ProjectionHint to initialize this parameter.

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.

See Also

IGeometry5 Interface