Class Wgs84ToMercatorCoordinateFilter

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

    public class Wgs84ToMercatorCoordinateFilter
    extends Object
    implements org.locationtech.jts.geom.CoordinateFilter, Serializable
    A coordinate filter that transforms WGS84 coordinates into mercator coordinates.
    Author:
    Christian Bremer
    See Also:
    Serialized Form
    • Constructor Detail

      • Wgs84ToMercatorCoordinateFilter

        public Wgs84ToMercatorCoordinateFilter()
        Default constructor.
      • Wgs84ToMercatorCoordinateFilter

        public Wgs84ToMercatorCoordinateFilter​(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