Ellipsoid Class

Summary: Ellipsoid represents an ellipsoid, which approximates earth.

Module: aspose.gis.spatialreferencing

Full Name: aspose.gis.spatialreferencing.Ellipsoid

Inheritance: IdentifiableObject

Aspose.PSD Version: 25.9.0

Constructors

NameDescription
Ellipsoid(name, semi_major_axis, inverse_flattening, identifier)Creates new Ellipsoid.

Properties

NameTypeAccessDescription
airy [static]EllipsoidrAiry ellipsoid.
epsg_codeintrIf this objects identifier is EPSG identifier - return its code. Otherwise - return -1.
grs80 [static]EllipsoidrGRS 1980 Ellipsoid.
identifierIdentifierrIdentifier of this identifiable object.
inverse_flatteningdoublerInverse flattening of ellipsoid. 0 if this is a sphere.
is_sphereboolrDetects whether this ellipsoid is a sphere.
is_validboolrDetects whether ellipsoid is valid: its semi major axis is more then 0 and inverse flattening is positive or equal to 0.
namestringrName of this object.
semi_major_axisdoublerSemi major axis of ellipsoid.
semi_minor_axisdoublerSemi minor axis of ellipsoid. Equals to semi major axis if this is a sphere.
wgs72 [static]EllipsoidrWGS 72 Ellipsoid.
wgs84 [static]EllipsoidrWGS 84 Ellipsoid.

Methods

NameDescription
is_equivalent(ellipsoid1, ellipsoid2)Determines if two ellipsoids are equivalent.
If ellipsoid A is equivalent to ellipsoid B, then they have same semi major axis and inverse flattening.
is_equivalent(other)Determines if two ellipsoids are equivalent.
If ellipsoid A is equivalent to ellipsoid B, then they have same semi major axis and inverse flattening.

Constructor: Ellipsoid(name, semi_major_axis, inverse_flattening, identifier)

 Ellipsoid(name, semi_major_axis, inverse_flattening, identifier) 

Creates new Ellipsoid.

Parameters:

ParameterTypeDescription
namestringName of the ellipsoid.
semi_major_axisdoubleSemi major axis of ellipsoid.
inverse_flatteningdoubleInverse flattening of ellipsoid. Should be 0 to create a spheroid.
identifierIdentifierIdentifier of the ellipsoid.

Method: is_equivalent(ellipsoid1, ellipsoid2) [static]

 is_equivalent(ellipsoid1, ellipsoid2) 

Determines if two ellipsoids are equivalent.
If ellipsoid A is equivalent to ellipsoid B, then they have same semi major axis and inverse flattening.

Parameters:

ParameterTypeDescription
ellipsoid1EllipsoidFirst ellipsoid.
ellipsoid2EllipsoidSecond ellipsoid.

Returns

TypeDescription
boolbool value, indicating whether two ellipsoids are equivalent.

Method: is_equivalent(other)

 is_equivalent(other) 

Determines if two ellipsoids are equivalent.
If ellipsoid A is equivalent to ellipsoid B, then they have same semi major axis and inverse flattening.

Parameters:

ParameterTypeDescription
otherEllipsoidOther ellipsoid.

Returns

TypeDescription
boolbool value, indicating whether two ellipsoids are equivalent.