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


ISpatialReferenceFactory.CreatePrimeMeridian Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReferenceFactory Interface > ISpatialReferenceFactory.CreatePrimeMeridian Method
ArcGIS Developer Help

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
);
[C++]
Parameters
primeMeridianType 

primeMeridianType is a parameter of type long

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

.NET Samples

Clonable object