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


IGeographicCoordinateSystem2.RightLongitude Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeographicCoordinateSystem2 Interface > IGeographicCoordinateSystem2.RightLongitude Property
ArcGIS Developer Help

IGeographicCoordinateSystem2.RightLongitude Property

The greatest (right) longitude bounding a 360 degree range.

[Visual Basic .NET]
Public Function get_RightLongitude ( _
    ByVal inDegrees As Boolean _
) As Double
[Visual Basic .NET]
Public Sub set_RightLongitude ( _
    ByVal inDegrees As Boolean, _
    ByVal RightLongitude As Double _
)
[C#]
public double get_RightLongitude (
    bool inDegrees
);
[C#]
public void set_RightLongitude (
    bool inDegrees,
    double RightLongitude
);
[C++]
HRESULT get_RightLongitude(
  VARIANT_BOOL inDegrees,
  System.Double* RightLongitude
);
[C++]
HRESULT put_RightLongitude(
  VARIANT_BOOL inDegrees,
  double RightLongitude
);
[C++]
Parameters
inDegrees 

inDegrees is a parameter of type bool RightLongitude [out, retval]
RightLongitude is a parameter of type double* inDegrees
inDegrees is a parameter of type bool RightLongitude
RightLongitude is a parameter of type double

Product Availability

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

Description

Returns or sets the maximum longitude value for a particular geographic coordinate system.

The ExtentHint, LeftLongitude, and RightLongitude properties are interrelated. Usually, data in a geographic coordinate system has longitude values between -180 and 180 if the unit of measure is degrees. Some datasets are designed to use a minimum longitude value of 0 or -360. The LeftLongitude property controls whether the data is considered as -360 to 0, -180 to 180, or 0 to 360. If two datasets have spatial references with different LeftLongitude values, one needs to be converted to match the other one. You can do this with the GeoNormalize method on IGeometry. ExtentHint is calculated internally by looking at the extent of the data. If the results used to set the LeftLongitude property are incorrect, you can use an envelope to set ExtentHint.

See Also

IGeographicCoordinateSystem2 Interface