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


IGPUtilities.GetGPSpRefEnv Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPUtilities.GetGPSpRefEnv Method

Creates the spatial reference from both a source and environment.

[Visual Basic .NET]
Public Function GetGPSpRefEnv ( _
    ByVal pEnvMgr As IGPEnvironmentManager, _
    ByVal pSrcSpRef As ISpatialReference, _
    ByVal pNewExtent As IEnvelope, _
    ByVal newMMin As Double, _
    ByVal newMMax As Double, _
    ByVal newZMin As Double, _
    ByVal newZMax As Double, _
    ByVal pWkspFDS As Object _
) As ISpatialReference
[C#]
public ISpatialReference GetGPSpRefEnv (
    IGPEnvironmentManager pEnvMgr,
    ISpatialReference pSrcSpRef,
    IEnvelope pNewExtent,
    double newMMin,
    double newMMax,
    double newZMin,
    double newZMax,
    object pWkspFDS
);
[C++]
HRESULT GetGPSpRefEnv(
  IGPEnvironmentManager* pEnvMgr,
  ISpatialReference* pSrcSpRef,
  IEnvelope* pNewExtent,
  double newMMin,
  double newMMax,
  double newZMin,
  double newZMax,
  LPUNKNOWN pWkspFDS,
  ISpatialReference** ppSpRef
);
[C++]

Parameters pEnvMgr [in]
pEnvMgr is a parameter of type IGPEnvironmentManager pSrcSpRef [in]
pSrcSpRef is a parameter of type ISpatialReference pNewExtent [in]
pNewExtent is a parameter of type IEnvelope newMMin [in] newMMin is a parameter of type double newMMax [in] newMMax is a parameter of type double newZMin [in] newZMin is a parameter of type double newZMax [in] newZMax is a parameter of type double pWkspFDS [in] pWkspFDS is a parameter of type LPUNKNOWN ppSpRef [out, retval]
ppSpRef is a parameter of type ISpatialReference

Product Availability

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

Remarks

The GetGPSpRefEnv method takes in a pEnvMgr and a pSrcSpRef object and returns a SpatialReference object.

See Also

IGPUtilities Interface