Package org.bremersee.geojson.utils
Class MercatorToWgs84CoordinateFilter
- java.lang.Object
-
- org.bremersee.geojson.utils.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 Summary
Constructors Constructor Description MercatorToWgs84CoordinateFilter()Default constructor.MercatorToWgs84CoordinateFilter(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
-
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:
filterin interfaceorg.locationtech.jts.geom.CoordinateFilter
-
-