类 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 org.locationtech.proj4j.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(org.locationtech.proj4j.proj.Projection projA, org.locationtech.proj4j.proj.Projection projB)Check if two projections are equalsbooleanequals(ProjectionInfo projInfo)Determine if the projection is same with another projectionstatic java.util.MapesriStringToProj4Params(ProjRegistry registry, java.lang.String esriString)Convert ESRI projection string to Proj4 param mapstatic ProjectionInfofactory(java.lang.String proj4Str)Create new ProjectionInfo with crsstatic ProjectionInfofactory(org.locationtech.proj4j.CoordinateReferenceSystem crs)Create new ProjectionInfo with crsstatic ProjectionInfofactory(ProjectionNames name)Create new ProjectionInfo with crsstatic ProjectionInfofactoryESRI(java.lang.String esriStr)Create new ProjectionInfo with ESRI projection stringPolygonShapegetBoundary()Get map boundarydoublegetCenterLat()Get center latitudedoublegetCenterLon()Get center longitudeorg.locationtech.proj4j.CoordinateReferenceSystemgetCoordinateReferenceSystem()Get CoordinateReferenceSystemfloatgetCutoff()Get latitude cutoffdoublegetInverseFlattening(org.locationtech.proj4j.datum.Ellipsoid ellipsoid)Calculates the inverse of the flattening factor, commonly saved to ESRI projections, or else provided as the "rf" parameter for Proj4 strings.This is simply calculated as a / (a - b) where a is the semi-major axis and b is the semi-minor axis.abstract 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.StringtoEsriString(org.locationtech.proj4j.datum.Datum datum)java.lang.StringtoEsriString(org.locationtech.proj4j.datum.Ellipsoid ellipsoid)java.lang.StringtoProj4String()Get proj4 stringjava.lang.StringtoString()To string
-
-
-
字段详细资料
-
crs
protected org.locationtech.proj4j.CoordinateReferenceSystem crs
-
boundary
protected PolygonShape boundary
-
cutoff
protected float cutoff
-
-
方法详细资料
-
factory
public static ProjectionInfo factory(org.locationtech.proj4j.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
-
factoryESRI
public static ProjectionInfo factoryESRI(java.lang.String esriStr)
Create new ProjectionInfo with ESRI projection string- 参数:
esriStr- ESRI projection string- 返回:
- Projection info
-
factory
public static ProjectionInfo factory(ProjectionNames name)
Create new ProjectionInfo with crs- 参数:
name- ProjectionName- 返回:
- Projection info
-
getCoordinateReferenceSystem
public org.locationtech.proj4j.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
-
getInverseFlattening
public double getInverseFlattening(org.locationtech.proj4j.datum.Ellipsoid ellipsoid)
Calculates the inverse of the flattening factor, commonly saved to ESRI projections, or else provided as the "rf" parameter for Proj4 strings.This is simply calculated as a / (a - b) where a is the semi-major axis and b is the semi-minor axis.- 参数:
ellipsoid-- 返回:
- Inverse flatting
-
esriStringToProj4Params
public static java.util.Map esriStringToProj4Params(ProjRegistry registry, java.lang.String esriString)
Convert ESRI projection string to Proj4 param map- 参数:
registry- RegistryesriString- ESRI projection string- 返回:
- Proj4 param map
-
toEsriString
public java.lang.String toEsriString(org.locationtech.proj4j.datum.Ellipsoid ellipsoid)
-
toEsriString
public java.lang.String toEsriString(org.locationtech.proj4j.datum.Datum datum)
-
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(org.locationtech.proj4j.proj.Projection projA, org.locationtech.proj4j.proj.Projection projB)Check if two projections are equals- 参数:
projA- Projection A.projB- Projection B.- 返回:
- Boolean
-
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
-
-