Package org.meteoinfo.projection.proj4j
Class CoordinateReferenceSystem
- java.lang.Object
-
- org.meteoinfo.projection.proj4j.CoordinateReferenceSystem
-
public class CoordinateReferenceSystem extends java.lang.ObjectRepresents a projected or geodetic geospatial coordinate system, to which coordinates may be referenced. A coordinate system is defined by the following things:- an
Ellipsoidspecifies how the shape of the Earth is approximated - a
Datumprovides the mapping from the ellipsoid to actual locations on the earth - a
Projectionmethod maps the ellpsoidal surface to a planar space. (The projection method may be null in the case of geodetic coordinate systems). - a
Unitindicates how the ordinate values of coordinates are interpreted
- See Also:
CRSFactory
- an
-
-
Field Summary
Fields Modifier and Type Field Description static CoordinateReferenceSystemCS_GEO
-
Constructor Summary
Constructors Constructor Description CoordinateReferenceSystem(java.lang.String name, java.lang.String[] params, Datum datum, Projection proj)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateReferenceSystemcreateGeographic()Creates a geographic (unprojected)CoordinateReferenceSystembased on theDatumof this CRS.DatumgetDatum()java.lang.StringgetName()java.lang.String[]getParameters()java.lang.StringgetParameterString()ProjectiongetProjection()java.lang.StringtoEsriString()To Esri projection stringjava.lang.StringtoString()
-
-
-
Field Detail
-
CS_GEO
public static final CoordinateReferenceSystem CS_GEO
-
-
Constructor Detail
-
CoordinateReferenceSystem
public CoordinateReferenceSystem(java.lang.String name, java.lang.String[] params, Datum datum, Projection proj)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getParameters
public java.lang.String[] getParameters()
-
getDatum
public Datum getDatum()
-
getProjection
public Projection getProjection()
-
getParameterString
public java.lang.String getParameterString()
-
toEsriString
public java.lang.String toEsriString()
To Esri projection string- Returns:
- Esri projection string
-
createGeographic
public CoordinateReferenceSystem createGeographic()
Creates a geographic (unprojected)CoordinateReferenceSystembased on theDatumof this CRS. This is useful for definingCoordinateTransforms to and from geographic coordinate systems, where no datum transformation is required. TheUnitsof the geographic CRS are set toUnits.DEGREES.- Returns:
- a geographic CoordinateReferenceSystem based on the datum of this CRS
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-