| org.geotools.referencing.datum.DefaultEllipsoid org.geotools.referencing.datum.Spheroid
Spheroid | final class Spheroid extends DefaultEllipsoid (Code) | | A ellipsoid which is spherical. This ellipsoid implements a faster
Spheroid.orthodromicDistance method.
version: $Id: Spheroid.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux since: 2.0 |
Constructor Summary | |
protected | Spheroid(Map properties, double radius, boolean ivfDefinitive, Unit unit) Constructs a new sphere using the specified radius.
Parameters: properties - Set of properties. |
Method Summary | |
public double | orthodromicDistance(double x1, double y1, double x2, double y2) Returns the orthodromic distance between two geographic coordinates.
The orthodromic distance is the shortest distance between two points
on a sphere's surface. |
Spheroid | protected Spheroid(Map properties, double radius, boolean ivfDefinitive, Unit unit)(Code) | | Constructs a new sphere using the specified radius.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: radius - The equatorial and polar radius. Parameters: ivfDefinitive - true if the inverse flattening is definitive. Parameters: unit - The units of the radius value. |
orthodromicDistance | public double orthodromicDistance(double x1, double y1, double x2, double y2)(Code) | | Returns the orthodromic distance between two geographic coordinates.
The orthodromic distance is the shortest distance between two points
on a sphere's surface. The orthodromic path is always on a great circle.
Parameters: x1 - Longitude of first point (in decimal degrees). Parameters: y1 - Latitude of first point (in decimal degrees). Parameters: x2 - Longitude of second point (in decimal degrees). Parameters: y2 - Latitude of second point (in decimal degrees). The orthodromic distance (in the units of this ellipsoid's axis). |
Methods inherited from org.geotools.referencing.datum.DefaultEllipsoid | static double check(String name, double value) throws IllegalArgumentException(Code)(Java Doc) public static DefaultEllipsoid createEllipsoid(String name, double semiMajorAxis, double semiMinorAxis, Unit unit)(Code)(Java Doc) public static DefaultEllipsoid createEllipsoid(Map properties, double semiMajorAxis, double semiMinorAxis, Unit unit)(Code)(Java Doc) public static DefaultEllipsoid createFlattenedSphere(String name, double semiMajorAxis, double inverseFlattening, Unit unit)(Code)(Java Doc) public static DefaultEllipsoid createFlattenedSphere(Map properties, double semiMajorAxis, double inverseFlattening, Unit unit)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected String formatWKT(Formatter formatter)(Code)(Java Doc) public Unit getAxisUnit()(Code)(Java Doc) public double getEccentricity()(Code)(Java Doc) public double getInverseFlattening()(Code)(Java Doc) public double getSemiMajorAxis()(Code)(Java Doc) public double getSemiMinorAxis()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isIvfDefinitive()(Code)(Java Doc) public boolean isSphere()(Code)(Java Doc) public double orthodromicDistance(Point2D P1, Point2D P2)(Code)(Java Doc) public double orthodromicDistance(double x1, double y1, double x2, double y2)(Code)(Java Doc) public static DefaultEllipsoid wrap(Ellipsoid ellipsoid)(Code)(Java Doc)
|
|
|