pe_spheroid_new

Creates a new spheroid

Usage syntax

PE_SPHEROID pe_spheroid_new (const char *name, double axis, double flattening);

Parameters
name Name of the new spheroid
axis Equatorial radius of the new spheroid
flattening Spheroid’s flattening (one minus the ratio of polar radius to equatorial radius)
Description

Defines a new spheroid with the specified attributes

Returns

On success, the new spheroid with the attributes equal to the corresponding arguments; on failure, a null pointer

Examples

PE_SPHEROID wgs84 = pe_spheroid_new("WGS84", 6378137.0, 1/298.257223563);