public class DatumFactory extends java.lang.Object implements SpheroidConstants
DatumFactory
class creates geodetic
Datum
objects corresponding to various spheroid
codes.AIRY, AUS_NAT, BESSEL, CLARKE1866, CLARKE1880, EVEREST, GRS1980, HOUGH, INT1909, INT1967, KRASS, MAX_SPHEROIDS, MERCURY1960, MOD_AIRY, MOD_EVEREST, MOD_MER1968, SE_ASIA, SPHERE, SPHEROID_INV_FLAT, SPHEROID_NAMES, SPHEROID_SEMI_MAJOR, SPHEROID_SEMI_MINOR, STD_RADIUS, WGS66, WGS72, WGS84
Constructor and Description |
---|
DatumFactory() |
Modifier and Type | Method and Description |
---|---|
static Datum |
create(int spheroid)
Creates a datum instance based on a spheroid code.
|
public static Datum create(int spheroid)
Datum
instances are immutable, the same instance is
returned each time for the same spheroid code.spheroid
- the spheroid code for the datum.