ArcObjects Library Reference (Geometry)  

ISpatialReferenceFactory.CreatePrimeMeridian Method

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,
  IPrimeMeridian** PrimeMeridian
);
[C++]

Parameters

primeMeridianType   primeMeridianType is a parameter of type long PrimeMeridian [out, retval]

  PrimeMeridian is a parameter of type IPrimeMeridian

Product Availability

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

Description

Use an element from the esriSRPrimeMType or esriSRPrimeM2Type enumerations as the primeMeridianType to create a particular predefined prime meridian.

[C#]

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

[Visual Basic .NET]

        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)

See Also

ISpatialReferenceFactory Interface