Package org.bremersee.geojson.utils
Class Wgs84ToMercatorCoordinateFilter
- java.lang.Object
-
- org.bremersee.geojson.utils.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 Summary
Constructors Constructor Description Wgs84ToMercatorCoordinateFilter()Default constructor.Wgs84ToMercatorCoordinateFilter(double earthRadiusInMeters)Constructs a coordinate filter that uses the specified earth radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)voidfilter(org.locationtech.jts.geom.Coordinate coord)doublegetEarthRadiusInMeters()Returns the earth radius that is used for the transformation.inthashCode()voidsetEarthRadiusInMeters(double earthRadiusInMeters)Sets the earth radius that is used for the transformation.StringtoString()
-
-
-
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:
filterin interfaceorg.locationtech.jts.geom.CoordinateFilter
-
-