Class ClampProjectionTransform
java.lang.Object
net.buildtheearth.terraminusminus.projection.transform.ProjectionTransform
net.buildtheearth.terraminusminus.projection.transform.ClampProjectionTransform
- All Implemented Interfaces:
GeographicProjection
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.buildtheearth.terraminusminus.projection.GeographicProjection
GeographicProjection.Deserializer, GeographicProjection.Serializer -
Field Summary
Fields inherited from class net.buildtheearth.terraminusminus.projection.transform.ProjectionTransform
delegate -
Constructor Summary
ConstructorsConstructorDescriptionClampProjectionTransform(GeographicProjection delegate, double minX, double maxX, double minY, double maxY) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]bounds()Indicates the minimum and maximum X and Y coordinates on the projected space.double[]fromGeo(double longitude, double latitude) Converts geographic coordinates to map coordinatesdoublemaxX()doublemaxY()doubleminX()doubleminY()double[]toGeo(double x, double y) Converts map coordinates to geographic coordinatestoString()Methods inherited from class net.buildtheearth.terraminusminus.projection.transform.ProjectionTransform
delegate, metersPerUnit, uprightMethods 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, properties, tissot, tissot, vector
-
Constructor Details
-
ClampProjectionTransform
public ClampProjectionTransform(GeographicProjection delegate, double minX, double maxX, double minY, double maxY) - Parameters:
delegate- - Input projection
-
-
Method Details
-
bounds
public double[] bounds()Description copied from interface:GeographicProjectionIndicates the minimum and maximum X and Y coordinates on the projected space.- Specified by:
boundsin interfaceGeographicProjection- Overrides:
boundsin classProjectionTransform- Returns:
- {minimum X, minimum Y, maximum X, maximum Y}
-
toGeo
Description copied from interface:GeographicProjectionConverts map coordinates to geographic coordinates- Parameters:
x- - x map coordinatey- - y map coordinate- Returns:
- {longitude, latitude} in degrees
- Throws:
OutOfProjectionBoundsException- if the specified point on the projected space cannot be mapped to a point of the geographic space
-
fromGeo
Description copied from interface:GeographicProjectionConverts geographic coordinates to map coordinates- 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
-
toString
-
minX
public double minX() -
maxX
public double maxX() -
minY
public double minY() -
maxY
public double maxY()
-