ArcObjects Library Reference (Geometry)  

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 VARIANT_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