类 ProjectionInfo

    • 字段详细资料

      • crs

        protected org.locationtech.proj4j.CoordinateReferenceSystem crs
      • cutoff

        protected float cutoff
    • 构造器详细资料

      • ProjectionInfo

        public ProjectionInfo()
        Constructor
      • ProjectionInfo

        public ProjectionInfo​(org.locationtech.proj4j.CoordinateReferenceSystem crs)
        Constructor
        参数:
        crs - The coordinate reference system
      • ProjectionInfo

        public ProjectionInfo​(org.locationtech.proj4j.CoordinateReferenceSystem crs,
                              float cutoff)
        Constructor
        参数:
        crs - The coordinate reference system
        cutoff - The cutoff latitude
    • 方法详细资料

      • 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​(String proj4Str)
        Create new ProjectionInfo with crs
        参数:
        proj4Str - proj4 string
        返回:
        Projection info
      • factoryESRI

        public static ProjectionInfo factoryESRI​(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 List<String> getValidParas()
        Get valid parameters
        返回:
        Valid parameters
      • checkGridLabel

        public Object[] checkGridLabel​(org.meteoinfo.common.GridLabel gl,
                                       float shift)
        Check grid label
        参数:
        gl - The grid label
        shift - Shift
        返回:
        Array of x/y shift and align
      • updateBoundary

        public void updateBoundary()
      • ellipse_boundary

        protected List<org.meteoinfo.common.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
        返回:
        Reference cut longitude
      • toProj4String

        public 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 Map esriStringToProj4Params​(ProjRegistry registry,
                                                  String esriString)
        Convert ESRI projection string to Proj4 param map
        参数:
        registry - Registry
        esriString - ESRI projection string
        返回:
        Proj4 param map
      • toEsriString

        public String toEsriString​(org.locationtech.proj4j.datum.Ellipsoid ellipsoid)
      • toEsriString

        public String toEsriString​(org.locationtech.proj4j.datum.Datum datum)
      • toEsriString

        public String toEsriString()
        Get Esri projection string
        返回:
        Esri projection string
      • toString

        public String toString()
        To string
        覆盖:
        toString 在类中 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
      • clone

        public Object clone()
        Clone
        覆盖:
        clone 在类中 Object
        返回:
        ProjectionInfo object