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


IGPUtilities.GetGPSpRefEnv Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPUtilities Interface > IGPUtilities.GetGPSpRefEnv Method
ArcGIS Developer Help

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
);
[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 IUnknown

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