public abstract class Projection
- Object
- Projection
Known subtypesMercator
This class represents a projection type.
a Projection has the ability to translate a WGS84 Coordinate to a
projected Coordinate.
Constructors
protected Projection(BoundingBox extent) | Creates a projection to the given bounding box |
Methods
public BoundingBox extent() | Gets the projection bounding box |
public abstract Coord fromWGS84(Coord wgs84) | Converts a given WGS84 coordinate to a projection coordinate |
public abstract Coord toWGS84(Coord projection) | Converts a projected coordinate to a WGS84 coordinate |
public final Coord[] fromWGS84(Coord[] coords) | a utility method that converts an array of WGS84 coordinate to the projection coordinates system. |
public final BoundingBox fromWGS84(BoundingBox bbox) | Converts a WGS84 bounding box to the projection system bounding box |
public final BoundingBox toWGS84(BoundingBox bbox) | Converts a projected bounding box to a WGS84 bounding box |
Inherited methods
Constructor details
Projection
protected Projection(BoundingBox extent)Creates a projection to the given bounding box
Parameters
extentBoundingBox- the bounding box of this projection
Method details
extent
public BoundingBox extent()Gets the projection bounding box
Returns
bounding box
fromWGS84
public abstract Coord fromWGS84(Coord wgs84)Converts a given WGS84 coordinate to a projection coordinate
toWGS84
public abstract Coord toWGS84(Coord projection)Converts a projected coordinate to a WGS84 coordinate
fromWGS84
public final Coord[] fromWGS84(Coord[] coords)a utility method that converts an array of WGS84 coordinate to the
projection coordinates system.
Parameters
coordsCoord[]- an array to converts
Returns
a converted array
fromWGS84
public final BoundingBox fromWGS84(BoundingBox bbox)Converts a WGS84 bounding box to the projection system bounding box
Parameters
bboxBoundingBox- bounding box too convert
Returns
a converted bounding box
toWGS84
public final BoundingBox toWGS84(BoundingBox bbox)Converts a projected bounding box to a WGS84 bounding box
Parameters
bboxBoundingBox- bounding box too convert
Returns
a converted bounding box