| org.geotools.referencing.AbstractReferenceSystem org.geotools.referencing.crs.AbstractCRS org.geotools.referencing.crs.AbstractSingleCRS org.geotools.referencing.crs.DefaultGeographicCRS
DefaultGeographicCRS | public class DefaultGeographicCRS extends AbstractSingleCRS implements GeographicCRS(Code) | | A coordinate reference system based on an ellipsoidal approximation of the geoid; this provides
an accurate representation of the geometry of geographic features for a large portion of the
earth's surface.
Used with CS type(s) |
EllipsoidalCS Ellipsoidal |
since: 2.1 version: $Id: DefaultGeographicCRS.java 28264 2007-12-05 21:53:08Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final public static DefaultGeographicCRS | WGS84 A two-dimensional geographic coordinate reference system using WGS84 datum.
This CRS uses (longitude,latitude) ordinates with longitude values
increasing East and latitude values increasing North. | final public static DefaultGeographicCRS | WGS84_3D A three-dimensional geographic coordinate reference system using WGS84 datum.
This CRS uses (longitude,latitude,height)
ordinates with longitude values increasing East, latitude values increasing
North and height above the ellipsoid in metres. |
Constructor Summary | |
public | DefaultGeographicCRS(GeographicCRS crs) Constructs a new geographic CRS with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. | public | DefaultGeographicCRS(String name, GeodeticDatum datum, EllipsoidalCS cs) Constructs a geographic CRS from a name. | public | DefaultGeographicCRS(Map properties, GeodeticDatum datum, EllipsoidalCS cs) Constructs a geographic CRS from a set of properties. |
Method Summary | |
public Measure | distance(double[] coord1, double[] coord2) Computes the orthodromic distance between two points. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | static Unit | getAngularUnit(CoordinateSystem coordinateSystem) Returns the angular unit of the specified coordinate system. | public int | hashCode() Returns a hash value for this geographic CRS.
The hash code value. |
WGS84 | final public static DefaultGeographicCRS WGS84(Code) | | A two-dimensional geographic coordinate reference system using WGS84 datum.
This CRS uses (longitude,latitude) ordinates with longitude values
increasing East and latitude values increasing North. Angular units are decimal degrees and
prime meridian is Greenwich.
|
WGS84_3D | final public static DefaultGeographicCRS WGS84_3D(Code) | | A three-dimensional geographic coordinate reference system using WGS84 datum.
This CRS uses (longitude,latitude,height)
ordinates with longitude values increasing East, latitude values increasing
North and height above the ellipsoid in metres. Angular units are decimal degrees and
prime meridian is Greenwich.
|
DefaultGeographicCRS | public DefaultGeographicCRS(GeographicCRS crs)(Code) | | Constructs a new geographic CRS with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. This constructor performs a shallow copy,
i.e. the properties are not cloned.
since: 2.2 |
DefaultGeographicCRS | public DefaultGeographicCRS(String name, GeodeticDatum datum, EllipsoidalCS cs)(Code) | | Constructs a geographic CRS from a name.
Parameters: name - The name. Parameters: datum - The datum. Parameters: cs - The coordinate system. |
DefaultGeographicCRS | public DefaultGeographicCRS(Map properties, GeodeticDatum datum, EllipsoidalCS cs)(Code) | | Constructs a geographic CRS from a set of properties. The properties are given unchanged to
the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: datum - The datum. Parameters: cs - The coordinate system. |
distance | public Measure distance(double[] coord1, double[] coord2) throws UnsupportedOperationException, MismatchedDimensionException(Code) | | Computes the orthodromic distance between two points. This convenience method delegates
the work to the underlyling
, if possible.
Parameters: coord1 - Coordinates of the first point. Parameters: coord2 - Coordinates of the second point. The distance between coord1 and coord2 . throws: UnsupportedOperationException - if this coordinate reference system can't computedistances. throws: MismatchedDimensionException - if a coordinate doesn't have the expected dimension. |
formatWKT | protected String formatWKT(Formatter formatter)(Code) | | Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. The name of the WKT element type, which is "GEOGCS" . |
getAngularUnit | static Unit getAngularUnit(CoordinateSystem coordinateSystem)(Code) | | Returns the angular unit of the specified coordinate system.
The preference will be given to the longitude axis, if found.
|
hashCode | public int hashCode()(Code) | | Returns a hash value for this geographic CRS.
The hash code value. This value doesn't need to be the samein past or future versions of this class. |
Fields inherited from org.geotools.referencing.crs.AbstractSingleCRS | final protected Datum datum(Code)(Java Doc)
|
Fields inherited from org.geotools.referencing.crs.AbstractCRS | final protected CoordinateSystem coordinateSystem(Code)(Java Doc)
|
|
|