IPrimeMeridian Interface

Provides access to members that control the properties of all prime meridians.

Members

Name Description
Read-only property Abbreviation The abbreviated name of this spatial reference component.
Read-only property Alias The alias of this spatial reference component.
Read-only property FactoryCode The factory code (WKID) of the spatial reference.
Read-only property Longitude The longitude value of this prime meridian.
Read-only property Name The name of this spatial reference component.
Read-only property Remarks The comment string of this spatial reference component.

IPrimeMeridian.Longitude Property

The longitude value of this prime meridian.

Public ReadOnly Property Longitude As Double
public double Longitude {get;}

Description

Returns the longitude value of a prime meridian. The longitude value is defined in degrees relative to Greenwich.

private void GetLongitude()

    {

        // use activator class with SpatialReferenceEnvironment singleton

        Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");

        System.Object obj = Activator.CreateInstance(factoryType);

        ISpatialReferenceFactory3 spatialReferenceFactory = obj as ISpatialReferenceFactory3;

        IPrimeMeridian primeMeridian = spatialReferenceFactory.CreatePrimeMeridian((int)esriSRPrimeMType.esriSRPrimeM_Greenwich);

        System.Windows.Forms.MessageBox.Show(primeMeridian.Longitude.ToString());

    }

Inherited Interfaces

Interfaces Description
ISpatialReferenceInfo Provides access to members that control the properties common to all components of a spatial reference system.

Classes that implement IPrimeMeridian

Classes Description
PrimeMeridian Creates a prime meridian.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close