Package mil.nga.crs.geo
Class Ellipsoid
- java.lang.Object
-
- mil.nga.crs.geo.Ellipsoid
-
- All Implemented Interfaces:
Identifiable
- Direct Known Subclasses:
TriaxialEllipsoid
public class Ellipsoid extends Object implements Identifiable
Ellipsoid- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdentifier(Identifier identifier)
Add the identifiervoid
addIdentifiers(List<Identifier> identifiers)
Add the identifiersboolean
equals(Object obj)
Identifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersdouble
getInverseFlattening()
Get the inverse flatteningString
getInverseFlatteningText()
Get the inverse flattening textString
getName()
Get the namedouble
getPoleRadius()
Get the pole radiusString
getPoleRadiusText()
Get the pole radius textdouble
getSemiMajorAxis()
Get the semi major axisString
getSemiMajorAxisText()
Get the semi major axis textEllipsoidType
getType()
Get the Ellipsoid TypeUnit
getUnit()
Get the unit (length)int
hashCode()
boolean
hasIdentifiers()
Has identifiersboolean
hasUnit()
Has a unit (length)int
numIdentifiers()
Number of identifiersvoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setInverseFlattening(double inverseFlattening)
Set the inverse flatteningvoid
setInverseFlattening(String inverseFlattening)
Set the inverse flatteningvoid
setName(String name)
Set the namevoid
setSemiMajorAxis(double semiMajorAxis)
Set the semi major axisvoid
setSemiMajorAxis(String semiMajorAxis)
Set the semi major axisvoid
setUnit(Unit unit)
Set the unit (length)String
toString()
-
-
-
Constructor Detail
-
Ellipsoid
public Ellipsoid()
Constructor
-
Ellipsoid
public Ellipsoid(String name, double semiMajorAxis, double inverseFlattening)
Constructor- Parameters:
name
- namesemiMajorAxis
- semi major axisinverseFlattening
- inverse flattening
-
-
Method Detail
-
getType
public EllipsoidType getType()
Get the Ellipsoid Type- Returns:
- ellipsoid type
-
getName
public String getName()
Get the name- Returns:
- name
-
setName
public void setName(String name)
Set the name- Parameters:
name
- name
-
getSemiMajorAxis
public double getSemiMajorAxis()
Get the semi major axis- Returns:
- semi major axis
-
getSemiMajorAxisText
public String getSemiMajorAxisText()
Get the semi major axis text- Returns:
- semi major axis text
- Since:
- 1.1.0
-
setSemiMajorAxis
public void setSemiMajorAxis(double semiMajorAxis)
Set the semi major axis- Parameters:
semiMajorAxis
- semi major axis
-
setSemiMajorAxis
public void setSemiMajorAxis(String semiMajorAxis)
Set the semi major axis- Parameters:
semiMajorAxis
- semi major axis- Since:
- 1.1.0
-
getInverseFlattening
public double getInverseFlattening()
Get the inverse flattening- Returns:
- inverse flattening
-
getInverseFlatteningText
public String getInverseFlatteningText()
Get the inverse flattening text- Returns:
- inverse flattening text
- Since:
- 1.1.0
-
setInverseFlattening
public void setInverseFlattening(double inverseFlattening)
Set the inverse flattening- Parameters:
inverseFlattening
- inverse flattening
-
setInverseFlattening
public void setInverseFlattening(String inverseFlattening)
Set the inverse flattening- Parameters:
inverseFlattening
- inverse flattening- Since:
- 1.1.0
-
getUnit
public Unit getUnit()
Get the unit (length)- Returns:
- unit (length)
-
hasUnit
public boolean hasUnit()
Has a unit (length)- Returns:
- true if has unit (length)
-
setUnit
public void setUnit(Unit unit)
Set the unit (length)- Parameters:
unit
- unit (length)
-
getIdentifiers
public List<Identifier> getIdentifiers()
Get the identifiers- Specified by:
getIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers
-
hasIdentifiers
public boolean hasIdentifiers()
Has identifiers- Specified by:
hasIdentifiers
in interfaceIdentifiable
- Returns:
- true if has identifiers
-
numIdentifiers
public int numIdentifiers()
Number of identifiers- Specified by:
numIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers count
-
getIdentifier
public Identifier getIdentifier(int index)
Get the identifier at the index- Specified by:
getIdentifier
in interfaceIdentifiable
- Parameters:
index
- identifier index- Returns:
- identifier
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
Set the identifiers- Specified by:
setIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
addIdentifier
public void addIdentifier(Identifier identifier)
Add the identifier- Specified by:
addIdentifier
in interfaceIdentifiable
- Parameters:
identifier
- identifier
-
addIdentifiers
public void addIdentifiers(List<Identifier> identifiers)
Add the identifiers- Specified by:
addIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
getPoleRadius
public double getPoleRadius()
Get the pole radius- Returns:
- pole radius
- Since:
- 1.1.0
-
getPoleRadiusText
public String getPoleRadiusText()
Get the pole radius text- Returns:
- pole radius text
- Since:
- 1.1.0
-
-