Class EqualEarthProjection
java.lang.Object
net.buildtheearth.terraminusminus.projection.EqualEarthProjection
- All Implemented Interfaces:
GeographicProjection
Implementation of the Equal Earth projection
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.buildtheearth.terraminusminus.projection.GeographicProjection
GeographicProjection.Deserializer, GeographicProjection.Serializer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.buildtheearth.terraminusminus.projection.GeographicProjection
azimuth, azimuth, bounds, properties, tissot, tissot, upright, vector
-
Constructor Details
-
EqualEarthProjection
public EqualEarthProjection()
-
-
Method Details
-
toGeo
public double[] toGeo(double x, double y) Description copied from interface:GeographicProjectionConverts map coordinates to geographic coordinates- Specified by:
toGeoin interfaceGeographicProjection- Parameters:
x- - x map coordinatey- - y map coordinate- Returns:
- {longitude, latitude} in degrees
-
fromGeo
Description copied from interface:GeographicProjectionConverts geographic coordinates to map coordinates- Specified by:
fromGeoin interfaceGeographicProjection- Parameters:
longitude- - longitude, in degreeslatitude- - latitude, in degrees- Returns:
- {x, y} map coordinates
- Throws:
OutOfProjectionBoundsException- if the specified point on the geographic space cannot be mapped to a point of the projected space
-
metersPerUnit
public double metersPerUnit()Description copied from interface:GeographicProjectionGives an estimation of the scale of this projection. This is just an estimation, as distortion is inevitable when projecting a sphere onto a flat surface, so this value varies from places to places in reality.- Specified by:
metersPerUnitin interfaceGeographicProjection- Returns:
- an estimation of the scale of this projection
-
toString
-