public class CoordinateReferenceSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,CoordinateReferenceSystem> |
crss |
Constructor and Description |
---|
CoordinateReferenceSystem(java.lang.String code,
GeoCoordTransformation coordConverter,
java.lang.Class<?> projLoaderClass,
Ellipsoid ellipsoid) |
CoordinateReferenceSystem(java.lang.String code,
GeoCoordTransformation coordConverter,
java.lang.Class<?> projLoaderClass,
Ellipsoid ellipsoid,
java.util.Properties projectionParameters,
BoundingBox boundingBox,
AxisOrder axisOrder) |
Modifier and Type | Method and Description |
---|---|
static void |
addCrs(CoordinateReferenceSystem crs) |
GeoProj |
createProjection(java.util.Properties overrideProjectionParameters) |
boolean |
equals(java.lang.Object obj) |
java.awt.geom.Point2D |
forward(double lat,
double lon) |
java.awt.geom.Point2D |
forward(double lat,
double lon,
boolean useAxisOrder) |
AxisOrder |
getAxisOrder() |
BoundingBox |
getBoundingBox()
Return the bounding box of this coordinate system or null if the bounding
box is not defined.
|
java.lang.String |
getCode()
Return a EPSG code like "EPSG:4326"
|
static java.util.Collection<java.lang.String> |
getCodes() |
static CoordinateReferenceSystem |
getForCode(java.lang.String code) |
int |
hashCode() |
LatLonPoint |
inverse(double x,
double y)
Convert the given (projected) coordinate in the CRS to a LatLonPoint
without respect for axis order.
|
LatLonPoint |
inverse(double x,
double y,
boolean useAxisOrder)
Convert the given (projected) coordinate in the CRS to a LatLonPoint.
|
void |
prepareProjection(GeoProj proj) |
protected ProjectionLoader |
projectionLoader() |
protected static final java.util.Map<java.lang.String,CoordinateReferenceSystem> crss
public CoordinateReferenceSystem(java.lang.String code, GeoCoordTransformation coordConverter, java.lang.Class<?> projLoaderClass, Ellipsoid ellipsoid)
public CoordinateReferenceSystem(java.lang.String code, GeoCoordTransformation coordConverter, java.lang.Class<?> projLoaderClass, Ellipsoid ellipsoid, java.util.Properties projectionParameters, BoundingBox boundingBox, AxisOrder axisOrder)
public static void addCrs(CoordinateReferenceSystem crs)
public static CoordinateReferenceSystem getForCode(java.lang.String code)
public static java.util.Collection<java.lang.String> getCodes()
protected ProjectionLoader projectionLoader()
public GeoProj createProjection(java.util.Properties overrideProjectionParameters)
public java.lang.String getCode()
public BoundingBox getBoundingBox()
public AxisOrder getAxisOrder()
public void prepareProjection(GeoProj proj)
public LatLonPoint inverse(double x, double y)
x
- y
- public LatLonPoint inverse(double x, double y, boolean useAxisOrder)
CoordinateReferenceSystem
s AxisOrder
will be used.x
- y
- public java.awt.geom.Point2D forward(double lat, double lon)
public java.awt.geom.Point2D forward(double lat, double lon, boolean useAxisOrder)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details