com.bbn.openmap.proj.coords
Class CoordinateReferenceSystem
java.lang.Object
com.bbn.openmap.proj.coords.CoordinateReferenceSystem
public class CoordinateReferenceSystem
- extends java.lang.Object
Field Summary |
protected static java.util.Map |
crss
|
Constructor Summary |
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)
|
CoordinateReferenceSystem(java.lang.String code,
GeoCoordTransformation coordConverter,
java.lang.Class projLoaderClass,
Ellipsoid ellipsoid,
java.util.Properties projectionParameters,
BoundingBox boundingBox)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
crss
protected static final java.util.Map 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)
CoordinateReferenceSystem
public CoordinateReferenceSystem(java.lang.String code,
GeoCoordTransformation coordConverter,
java.lang.Class projLoaderClass,
Ellipsoid ellipsoid,
java.util.Properties projectionParameters,
BoundingBox boundingBox)
getForCode
public static CoordinateReferenceSystem getForCode(java.lang.String code)
getCodes
public static java.util.Collection getCodes()
projectionLoader
protected ProjectionLoader projectionLoader()
createProjection
public Proj createProjection(java.util.Properties overrideProjectionParameters)
getCode
public java.lang.String getCode()
- Return a EPSG code like "EPSG:4326"
- Returns:
getBoundingBox
public BoundingBox getBoundingBox()
- Return the bounding box of this coordinate system or null if the bounding
box is not defined.
prepareProjection
public void prepareProjection(Proj proj)
inverse
public LatLonPoint inverse(double x,
double y)
- Convert the given (projected) coordinate in the CRS to a LatLonPoint.
TODO: should we return null or throw if not possible?
- Parameters:
x
- y
-
- Returns:
forward
public java.awt.geom.Point2D forward(double lat,
double lon)
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