Class MercatorToWgs84CoordinateFilter

  • All Implemented Interfaces:
    org.locationtech.jts.geom.CoordinateFilter

    public class MercatorToWgs84CoordinateFilter
    extends Object
    implements org.locationtech.jts.geom.CoordinateFilter
    A coordinate filter that transforms mercator coordinates into WGS84 coordinates.
    Author:
    Christian Bremer
    • Constructor Detail

      • MercatorToWgs84CoordinateFilter

        public MercatorToWgs84CoordinateFilter()
        Default constructor.
      • MercatorToWgs84CoordinateFilter

        public MercatorToWgs84CoordinateFilter​(double earthRadiusInMeters)
        Constructs a coordinate filter that uses the specified earth radius.
        Parameters:
        earthRadiusInMeters - the earth radius in meters
    • Method Detail

      • getEarthRadiusInMeters

        public double getEarthRadiusInMeters()
        Returns the earth radius that is used for the transformation.
        Returns:
        the earth radius in meters
      • setEarthRadiusInMeters

        public void setEarthRadiusInMeters​(double earthRadiusInMeters)
        Sets the earth radius that is used for the transformation.
        Parameters:
        earthRadiusInMeters - the earth radius in meters
      • filter

        public void filter​(org.locationtech.jts.geom.Coordinate coord)
        Specified by:
        filter in interface org.locationtech.jts.geom.CoordinateFilter
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object