类 ProjectionInfo

    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected org.meteoinfo.geometry.shape.PolygonShape boundary  
      protected org.locationtech.proj4j.CoordinateReferenceSystem crs  
      protected float cutoff  
    • 方法概要

      所有方法 静态方法 实例方法 抽象方法 具体方法 
      修饰符和类型 方法 说明
      static double calScaleFactorFromStandardParallel​(double stP)
      Calculate scale factor from standard parallel
      java.lang.Object[] checkGridLabel​(org.meteoinfo.common.GridLabel gl, float shift)
      Check grid label
      java.lang.Object clone()
      Clone
      protected java.util.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.
      boolean equals​(org.locationtech.proj4j.proj.Projection projA, org.locationtech.proj4j.proj.Projection projB)
      Check if two projections are equals
      boolean equals​(ProjectionInfo projInfo)
      Determine if the projection is same with another projection
      static java.util.Map esriStringToProj4Params​(ProjRegistry registry, java.lang.String esriString)
      Convert ESRI projection string to Proj4 param map
      static ProjectionInfo factory​(java.lang.String proj4Str)
      Create new ProjectionInfo with crs
      static ProjectionInfo factory​(org.locationtech.proj4j.CoordinateReferenceSystem crs)
      Create new ProjectionInfo with crs
      static ProjectionInfo factory​(ProjectionNames name)
      Create new ProjectionInfo with crs
      static ProjectionInfo factoryESRI​(java.lang.String esriStr)
      Create new ProjectionInfo with ESRI projection string
      org.meteoinfo.geometry.shape.PolygonShape getBoundary()
      Get map boundary
      double getCenterLat()
      Get center latitude
      double getCenterLon()
      Get center longitude
      org.locationtech.proj4j.CoordinateReferenceSystem getCoordinateReferenceSystem()
      Get CoordinateReferenceSystem
      float getCutoff()
      Get latitude cutoff
      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.
      abstract ProjectionNames getProjectionName()
      Get projection name
      double getRefCutLon()
      Get reference cut longitude for projection operation
      java.util.List<java.lang.String> getValidParas()
      Get valid parameters
      boolean isLonLat()
      Get if is Lon/Lat projection
      void setBoundary​(org.meteoinfo.geometry.shape.PolygonShape value)
      Set map boundary
      void setCutoff​(float value)
      Set latitude cutoff
      void setCutoff_bak​(float value)
      Set latitude cutoff
      java.lang.String toEsriString()
      Get Esri projection string
      java.lang.String toEsriString​(org.locationtech.proj4j.datum.Datum datum)  
      java.lang.String toEsriString​(org.locationtech.proj4j.datum.Ellipsoid ellipsoid)  
      java.lang.String toProj4String()
      Get proj4 string
      java.lang.String toString()
      To string
      void updateBoundary()  
      • 从类继承的方法 java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 字段详细资料

      • crs

        protected org.locationtech.proj4j.CoordinateReferenceSystem crs
      • boundary

        protected org.meteoinfo.geometry.shape.PolygonShape boundary
      • cutoff

        protected float cutoff
    • 构造器详细资料

      • ProjectionInfo

        public ProjectionInfo()
    • 方法详细资料

      • 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 org.meteoinfo.geometry.shape.PolygonShape getBoundary()
        Get map boundary
        返回:
        Map boundary
      • setBoundary

        public void setBoundary​(org.meteoinfo.geometry.shape.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
      • checkGridLabel

        public java.lang.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 java.util.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
        返回:
        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 - Registry
        esriString - 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
      • clone

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