Class PolyconicProjection

  • All Implemented Interfaces:
    Serializable, Projection

    public class PolyconicProjection
    extends ProjectionImpl
    Polyconic Projection. This file was semi-automatically converted from the public-domain USGS PROJ source. Bernhard Jenny, 19 September 2010: fixed spherical inverse.
    See Also:
    Serialized Form
    • Constructor Detail

      • PolyconicProjection

        public PolyconicProjection()
      • PolyconicProjection

        public PolyconicProjection​(double lat0,
                                   double lon0)
      • PolyconicProjection

        public PolyconicProjection​(double lat0,
                                   double lon0,
                                   Earth ellipsoid)
      • PolyconicProjection

        public PolyconicProjection​(double lat0,
                                   double lon0,
                                   double falseEasting,
                                   double falseNorthing,
                                   Earth ellipsoid)
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Description copied from class: ProjectionImpl
        Returns true if this represents the same Projection as proj.
        Specified by:
        equals in interface Projection
        Specified by:
        equals in class ProjectionImpl
        Parameters:
        o - projection in question
        Returns:
        true if this represents the same Projection as proj.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getEarth

        public Earth getEarth()
      • setOriginLatitude

        @Deprecated
        public void setOriginLatitude​(double lat)
        Deprecated.
        Set the origin latitude.
        Parameters:
        lat - the origin latitude.
      • getOriginLatitude

        public double getOriginLatitude()
        Get the origin longitude.
        Returns:
        the origin longitude in degrees
      • setOriginLongitude

        @Deprecated
        public void setOriginLongitude​(double lon)
        Deprecated.
        Set the origin longitude.
        Parameters:
        lon - the origin longitude.
      • getOriginLongitude

        public double getOriginLongitude()
        Get the origin longitude.
        Returns:
        the origin longitude in degrees
      • getFalseEasting

        public double getFalseEasting()
        Get the false easting, in km.
        Returns:
        the false easting in km
      • setFalseEasting

        @Deprecated
        public void setFalseEasting​(double falseEasting)
        Deprecated.
        Set the false_easting, in km. natural_x_coordinate + false_easting = x coordinate
        Parameters:
        falseEasting - x offset
      • getFalseNorthing

        public double getFalseNorthing()
        Get the false northing, in km.
        Returns:
        the false northing in km
      • setFalseNorthing

        @Deprecated
        public void setFalseNorthing​(double falseNorthing)
        Deprecated.
        Set the false northing, in km. natural_y_coordinate + false_northing = y coordinate
        Parameters:
        falseNorthing - y offset
      • crossSeam

        public boolean crossSeam​(ProjectionPoint pt1,
                                 ProjectionPoint pt2)
        This returns true when the line between pt1 and pt2 crosses the seam. When the cone is flattened, the "seam" is lon0 +- 180.
        Specified by:
        crossSeam in interface Projection
        Specified by:
        crossSeam in class ProjectionImpl
        Parameters:
        pt1 - point 1
        pt2 - point 2
        Returns:
        true when the line between pt1 and pt2 crosses the seam.
      • projToLatLon

        public LatLonPoint projToLatLon​(ProjectionPoint world,
                                        LatLonPointImpl result)
        Convert projection coordinates to a LatLonPoint Note: a new object is not created on each call for the return value.
        Specified by:
        projToLatLon in interface Projection
        Specified by:
        projToLatLon in class ProjectionImpl
        Parameters:
        world - convert from these projection coordinates
        result - the object to write to
        Returns:
        LatLonPoint convert to these lat/lon coordinates