Class TransverseMercatorProjection

    • Constructor Detail

      • TransverseMercatorProjection

        public TransverseMercatorProjection()
      • TransverseMercatorProjection

        public TransverseMercatorProjection​(Earth ellipsoid,
                                            double lon_0_deg,
                                            double lat_0_deg,
                                            double k,
                                            double falseEast,
                                            double falseNorth)
        Set up a projection suitable for State Plane Coordinates. Best used with earth ellipsoid and false-easting/northing in km
    • Method Detail

      • isRectilinear

        public boolean isRectilinear()
      • initialize

        public void initialize()
      • getRowFromNearestParallel

        public int getRowFromNearestParallel​(double latitude)
      • getZoneFromNearestMeridian

        public int getZoneFromNearestMeridian​(double longitude)
      • setUTMZone

        public void setUTMZone​(int zone)
      • hasInverse

        public boolean hasInverse()
      • getProjectionTypeLabel

        public String getProjectionTypeLabel()
        Description copied from class: ProjectionImpl
        Get the label to be used in the gui for this type of projection. This defaults to call getClassName
        Overrides:
        getProjectionTypeLabel in class ProjectionImpl
        Returns:
        Type label
      • projToLatLon

        public LatLonPoint projToLatLon​(ProjectionPoint world,
                                        LatLonPointImpl result)
        Description copied from class: ProjectionImpl
        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
      • crossSeam

        public boolean crossSeam​(ProjectionPoint pt1,
                                 ProjectionPoint pt2)
        Description copied from class: ProjectionImpl
        Does the line between these two points cross the projection "seam".
        Specified by:
        crossSeam in interface Projection
        Specified by:
        crossSeam in class ProjectionImpl
        Parameters:
        pt1 - the line goes between these two points
        pt2 - the line goes between these two points
        Returns:
        false if there is no seam
      • 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