Package org.meteoinfo.projection
Class ProjectionInfo
- java.lang.Object
-
- org.meteoinfo.projection.ProjectionInfo
-
public class ProjectionInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProjectionInfo()ConstructorProjectionInfo(java.lang.String proj4Str)ConstructorProjectionInfo(java.lang.String name, java.lang.String[] params, Datum datum, Projection proj)ConstructorProjectionInfo(CoordinateReferenceSystem crs)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static doublecalScaleFactorFromStandardParallel(double stP)Calculate scale factor from standard parallelbooleanequals(ProjectionInfo projInfo)Determine if the projection is same with another projectiondoublegetCenterLat()Get center latitudedoublegetCenterLon()Get center longitudeCoordinateReferenceSystemgetCoordinateReferenceSystem()Get CoordinateReferenceSystemProjectionNamesgetProjectionName()Get projection namedoublegetRefCutLon()Get reference cut longitude for projection operationbooleanisLonLat()Get if is Lon/Lat projectionvoidsetCenterLat(double value)Set center latitudevoidsetCenterLon(double value)Set center longitudejava.lang.StringtoEsriString()Get Esri projection stringjava.lang.StringtoProj4String()Get proj4 stringjava.lang.StringtoString()To string
-
-
-
Constructor Detail
-
ProjectionInfo
public ProjectionInfo()
Constructor
-
ProjectionInfo
public ProjectionInfo(CoordinateReferenceSystem crs)
Constructor- Parameters:
crs- CoordinateReferenceSystem
-
ProjectionInfo
public ProjectionInfo(java.lang.String proj4Str)
Constructor- Parameters:
proj4Str- Proj4 string
-
ProjectionInfo
public ProjectionInfo(java.lang.String name, java.lang.String[] params, Datum datum, Projection proj)Constructor- Parameters:
name- Nameparams- Parametersdatum- Datumproj- Projection
-
-
Method Detail
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Get CoordinateReferenceSystem- Returns:
- CoordinateReferenceSystem
-
getProjectionName
public ProjectionNames getProjectionName()
Get projection name- Returns:
- Projection name
-
isLonLat
public boolean isLonLat()
Get if is Lon/Lat projection- Returns:
- Boolean
-
getCenterLon
public double getCenterLon()
Get center longitude- Returns:
- Center longitude
-
setCenterLon
public void setCenterLon(double value)
Set center longitude- Parameters:
value- Center longitude
-
getCenterLat
public double getCenterLat()
Get center latitude- Returns:
- Center latitude
-
setCenterLat
public void setCenterLat(double value)
Set center latitude- Parameters:
value- Center latitude
-
getRefCutLon
public double getRefCutLon()
Get reference cut longitude for projection operation- Returns:
- Refrence cut longitude
-
toProj4String
public java.lang.String toProj4String()
Get proj4 string- Returns:
- Proj4 string
-
toEsriString
public java.lang.String toEsriString()
Get Esri projection string- Returns:
- Esri projection string
-
toString
public java.lang.String toString()
To string- Overrides:
toStringin classjava.lang.Object- Returns:
- String - Proj4 string
-
equals
public boolean equals(ProjectionInfo projInfo)
Determine if the projection is same with another projection- Parameters:
projInfo- Projection info- Returns:
- Boolean
-
calScaleFactorFromStandardParallel
public static double calScaleFactorFromStandardParallel(double stP)
Calculate scale factor from standard parallel- Parameters:
stP- Standard parallel- Returns:
- Scale factor
-
-