Interface ISphere

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll

Provides access to a sphere's properties and operations.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("0CD38CB9-1C89-11D4-9F5C-00C04F6BDF0D")]
public interface ISphere : IGeometry

Remarks

 

Sphere Example

Properties

Center

The center of the sphere.

IPoint Center { get; set; }

Property Value

IPoint

Remarks

 

Sphere Center Example

Dimension

esriGeometryDimension Dimension { get; }

Property Value

esriGeometryDimension

Envelope

IEnvelope Envelope { get; }

Property Value

IEnvelope

GeometryType

esriGeometryType GeometryType { get; }

Property Value

esriGeometryType

IsEmpty

bool IsEmpty { get; }

Property Value

bool

Radius

The radius of the sphere.

double Radius { get; set; }

Property Value

double

Remarks

 

Sphere Radius Example

SpatialReference

ISpatialReference SpatialReference { get; set; }

Property Value

ISpatialReference

Methods

GeoNormalize()

void GeoNormalize()

GeoNormalizeFromLongitude(double)

void GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

Project(ISpatialReference)

void Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

QueryCenter(IPoint)

Sets an existing point equal to the center of the sphere.

void QueryCenter(IPoint CenterPoint)

Parameters

CenterPoint IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

Sphere QueryCenter Example

QueryEnvelope(IEnvelope)

void QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

SetEmpty()

void SetEmpty()

SnapToSpatialReference()

void SnapToSpatialReference()