This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPUtilities Interface > IGPUtilities.GetGPSpRefEnv Method (ArcObjects .NET 10.5 SDK) |
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
The GetGPSpRefEnv method takes in a pEnvMgr and a pSrcSpRef object and returns a SpatialReference object.