类 ProjectionInfo
- java.lang.Object
-
- org.meteoinfo.projection.info.ProjectionInfo
-
- 直接已知子类:
Albers,Common,GeostationarySatellite,Hammer,LambertAzimuthalEqualArea,LambertConformalConic,LambertEqualAreaConic,LongLat,Mercator,Molleweide,OrthographicAzimuthal,Robinson,Sinusoidal,StereographicAzimuthal,TransverseMercator,Wagner3
public abstract class ProjectionInfo extends java.lang.Object- 作者:
- Yaqiang Wang
-
-
字段概要
字段 修饰符和类型 字段 说明 protected PolygonShapeboundaryprotected CoordinateReferenceSystemcrsprotected floatcutoff
-
构造器概要
构造器 构造器 说明 ProjectionInfo()
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 static doublecalScaleFactorFromStandardParallel(double stP)Calculate scale factor from standard parallelprotected java.util.List<PointD>ellipse_boundary(double semimajor, double semiminor, double easting, double northing, int n)Define a projection boundary using an ellipse.This type of boundary is used by several projections.booleanequals(ProjectionInfo projInfo)Determine if the projection is same with another projectionstatic ProjectionInfofactory(java.lang.String proj4Str)Create new ProjectionInfo with crsstatic ProjectionInfofactory(CoordinateReferenceSystem crs)Create new ProjectionInfo with crsstatic ProjectionInfofactory(ProjectionNames name)Create new ProjectionInfo with crsPolygonShapegetBoundary()Get map boundarydoublegetCenterLat()Get center latitudedoublegetCenterLon()Get center longitudeCoordinateReferenceSystemgetCoordinateReferenceSystem()Get CoordinateReferenceSystemfloatgetCutoff()Get latitude cutoffabstract ProjectionNamesgetProjectionName()Get projection namedoublegetRefCutLon()Get reference cut longitude for projection operationjava.util.List<java.lang.String>getValidParas()Get valid parametersbooleanisLonLat()Get if is Lon/Lat projectionvoidsetBoundary(PolygonShape value)Set map boundaryvoidsetCutoff(float value)Set latitude cutoffvoidsetCutoff_bak(float value)Set latitude cutoffjava.lang.StringtoEsriString()Get Esri projection stringjava.lang.StringtoProj4String()Get proj4 stringjava.lang.StringtoString()To string
-
-
-
字段详细资料
-
crs
protected CoordinateReferenceSystem crs
-
boundary
protected PolygonShape boundary
-
cutoff
protected float cutoff
-
-
方法详细资料
-
factory
public static ProjectionInfo factory(CoordinateReferenceSystem crs)
Create new ProjectionInfo with crs- 参数:
crs- Coordinate reference system- 返回:
- Projection info
-
factory
public static ProjectionInfo factory(java.lang.String proj4Str)
Create new ProjectionInfo with crs- 参数:
proj4Str- proj4 string- 返回:
- Projection info
-
factory
public static ProjectionInfo factory(ProjectionNames name)
Create new ProjectionInfo with crs- 参数:
name- ProjectionName- 返回:
- Projection info
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Get CoordinateReferenceSystem- 返回:
- CoordinateReferenceSystem
-
getProjectionName
public abstract ProjectionNames getProjectionName()
Get projection name- 返回:
- Projection name
-
isLonLat
public boolean isLonLat()
Get if is Lon/Lat projection- 返回:
- Boolean
-
getCenterLon
public double getCenterLon()
Get center longitude- 返回:
- Center longitude
-
getCenterLat
public double getCenterLat()
Get center latitude- 返回:
- Center latitude
-
getBoundary
public PolygonShape getBoundary()
Get map boundary- 返回:
- Map boundary
-
setBoundary
public void setBoundary(PolygonShape value)
Set map boundary- 参数:
value- Map boundary
-
getCutoff
public float getCutoff()
Get latitude cutoff- 返回:
- Latitude cutoff
-
setCutoff
public void setCutoff(float value)
Set latitude cutoff- 参数:
value- Latitude cutoff
-
setCutoff_bak
public void setCutoff_bak(float value)
Set latitude cutoff- 参数:
value- Latitude cutoff
-
getValidParas
public java.util.List<java.lang.String> getValidParas()
Get valid parameters- 返回:
- Valid parameters
-
ellipse_boundary
protected java.util.List<PointD> ellipse_boundary(double semimajor, double semiminor, double easting, double northing, int n)
Define a projection boundary using an ellipse.This type of boundary is used by several projections.- 参数:
semimajor-semiminor-easting-northing-n-- 返回:
- Ellipse boundary
-
getRefCutLon
public double getRefCutLon()
Get reference cut longitude for projection operation- 返回:
- Refrence cut longitude
-
toProj4String
public java.lang.String toProj4String()
Get proj4 string- 返回:
- Proj4 string
-
toEsriString
public java.lang.String toEsriString()
Get Esri projection string- 返回:
- Esri projection string
-
toString
public java.lang.String toString()
To string- 覆盖:
toString在类中java.lang.Object- 返回:
- String - Proj4 string
-
equals
public boolean equals(ProjectionInfo projInfo)
Determine if the projection is same with another projection- 参数:
projInfo- Projection info- 返回:
- Boolean
-
calScaleFactorFromStandardParallel
public static double calScaleFactorFromStandardParallel(double stP)
Calculate scale factor from standard parallel- 参数:
stP- Standard parallel- 返回:
- Scale factor
-
-