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