This document is archived and information here might be outdated. Recommended version. |
Creates a predefined prime meridian.
[Visual Basic .NET] Public Function CreatePrimeMeridian ( _ ByVal primeMeridianType As Integer _ ) As IPrimeMeridian
[C#] public IPrimeMeridian CreatePrimeMeridian ( int primeMeridianType );
[C++]
HRESULT CreatePrimeMeridian(
long primeMeridianType
);
[C++] Parameters primeMeridianType
primeMeridianType is a parameter of type long
Use an element from the esriSRPrimeMType or esriSRPrimeM2Type enumerations as the primeMeridianType to create a particular predefined prime meridian.
ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironmentClass();
//Create the prime meridian using the available prime meridians. These can be
//found in the esriGeometry esriSRPrimeMType enumeration.
IPrimeMeridian primeMeridian = spatialReferenceFactory.CreatePrimeMeridian((int)esriSRPrimeMType.esriSRPrimeM_Greenwich);
Dim pSpatRefFact As ESRI.ArcGIS.Geometry.ISpatialReferenceFactory
'Set the spatial reference factory to a new spatial reference environment
pSpatRefFact = New ESRI.ArcGIS.Geometry.SpatialReferenceEnvironment
Dim pPrimeM As ESRI.ArcGIS.Geometry.IPrimeMeridian
'Create the prime meridian using the available prime meridians. These can be
'found in the esriGeometry esriSRPrimeMType enumeration.
pPrimeM = pSpatRefFact.CreatePrimeMeridian(ESRI.ArcGIS.Geometry.esriSRPrimeMType.esriSRPrimeM_Greenwich)