|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.proj.Proj | +--com.bbn.openmap.proj.Conic | +--com.bbn.openmap.proj.LambertConformalConic
Implements the LambertConformalConic projection.
Field Summary | |
protected double |
F
|
protected double |
halfPI
|
protected int |
hy
|
static java.lang.String |
LambertCCName
The LambertCC name. |
static int |
LambertCCType
The LambertCC type of projection. |
protected double |
n
|
protected double |
Po
|
protected double |
quarterPI
|
protected double |
RF
|
protected int |
wx
|
Fields inherited from class com.bbn.openmap.proj.Conic |
backgroundColor, eastBorder, northBorder, origin, parallel1, parallel2, southBorder, westBorder |
Fields inherited from class com.bbn.openmap.proj.Proj |
ctrLat, ctrLon, DATELINE, height, maxscale, mercator, MIN_HEIGHT, MIN_WIDTH, minscale, NORTH_POLE, NUM_DEFAULT_CIRCLE_VERTS, NUM_DEFAULT_GREAT_SEGS, pixelsPerMeter, planetPixelCircumference, planetPixelRadius, planetRadius, projID, scale, scaled_radius, SOUTH_POLE, type, width, XSCALE_THRESHOLD, XTHRESHOLD |
Constructor Summary | |
LambertConformalConic(LatLonPoint center,
float scale,
int width,
int height)
Construct a Lambert projection. |
Method Summary | |
protected float |
forward_x(float phi,
float lambda)
forward_x() - arguments in radians (-DATELINE <= lambda < DATELINE), (SOUTH_POLE <= phi <= NORTH_POLE), returns a raw float in world coordinates. |
protected float |
forward_y(float phi,
float lambda)
forward_y() - arguments in radians (-DATELINE <= lambda < DATELINE), (SOUTH_POLE <= phi <= NORTH_POLE), returns a raw float value in world coordinates. |
java.awt.Point |
forward(float lat,
float lon,
java.awt.Point p)
Forward projects a lat,lon coordinates. |
java.awt.Point |
forward(float phi,
float lambda,
java.awt.Point p,
boolean isRadian)
Forward projects lat,lon into XY space and returns a Point. |
java.awt.Point |
forward(LatLonPoint pt,
java.awt.Point p)
Projects a point from Lat/Lon space to X/Y space. |
LatLonPoint |
getLowerRight()
Get the lower right (southeast) point of the projection. |
java.lang.String |
getName()
Get the name string of the projection. |
LatLonPoint |
getUpperLeft()
Get the upper left (northwest) point of the projection. |
protected float |
inverse_lat(float x,
float y)
inverse_lat(x, y) - assumes raw float values in world coordinates. |
protected float |
inverse_lon(float x,
float y)
inverse_lon(x, y) - assumes raw float values in world coordinates. |
LatLonPoint |
inverse(int x,
int y,
LatLonPoint llp)
Inverse project x,y coordinates into a LatLonPoint. |
LatLonPoint |
inverse(java.awt.Point pt,
LatLonPoint llp)
Inverse project a Point. |
boolean |
isPlotable(float lat,
float lon)
Checks if a LatLonPoint is plot-able. |
float |
normalize_latitude(float lat)
Sets radian latitude to something sane. |
Methods inherited from class com.bbn.openmap.proj.Conic |
_forwardPoly, computeParameters, drawBackground, forwardRaw, setBorders, setCenter, toString |
Methods inherited from class com.bbn.openmap.proj.Proj |
clone, doPolyDispatch, drawBackground, equals, forward, forward, forwardArc, forwardArc, forwardArc, forwardCircle, forwardCircle, forwardCircle, forwardGreatPoly, forwardLine, forwardLine, forwardPoly, forwardPoly, forwardRaster, forwardRect, forwardRect, forwardRect, forwardRhumbPoly, getCenter, getHeight, getMaxScale, getMinScale, getPlanetPixelCircumference, getPlanetPixelRadius, getPlanetRadius, getPPM, getProjectionID, getProjectionType, getScale, getScale, getWidth, hashCode, inverse, inverse, isComplicatedLineType, isPlotable, makeClone, pan, pan, panE, panE, panN, panN, panNE, panNE, panNW, panNW, panS, panS, panSE, panSE, panSW, panSW, panW, panW, setCenter, setHeight, setMaxScale, setMinScale, setParms, setPlanetRadius, setPPM, setProjectionID, setScale, setWidth, wrap_longitude |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final transient java.lang.String LambertCCName
public static final transient int LambertCCType
protected int hy
protected int wx
protected double n
protected double F
protected double Po
protected double RF
protected double quarterPI
protected double halfPI
Constructor Detail |
public LambertConformalConic(LatLonPoint center, float scale, int width, int height)
center
- LatLonPoint center of projectionscale
- float scale of projectionwidth
- width of screenheight
- height of screenMethod Detail |
public float normalize_latitude(float lat)
normalize_latitude
in class Proj
lat
- float latitude in radians
LatLonPoint.normalize_latitude(float)
protected float forward_x(float phi, float lambda)
protected float forward_y(float phi, float lambda)
protected float inverse_lat(float x, float y)
protected float inverse_lon(float x, float y)
public boolean isPlotable(float lat, float lon)
lat
- float latitude in decimal degreeslon
- float longitude in decimal degrees
public java.awt.Point forward(LatLonPoint pt, java.awt.Point p)
pt
- LatLonPointp
- Point retval
public java.awt.Point forward(float lat, float lon, java.awt.Point p)
lat
- raw latitude in decimal degreeslon
- raw longitude in decimal degreesp
- Resulting XY Point
public java.awt.Point forward(float phi, float lambda, java.awt.Point p, boolean isRadian)
phi
- float latitude in radianslambda
- float longitude in radiansp
- Resulting XY PointisRadian
- bogus argument indicating that lat,lon
arguments are in radians
Projection.forward(float,float,Point)
public LatLonPoint inverse(int x, int y, LatLonPoint llp)
x
- integer x coordinatey
- integer y coordinatellp
- LatLonPoint
Proj.inverse(Point)
public LatLonPoint inverse(java.awt.Point pt, LatLonPoint llp)
pt
- x,y Pointllp
- resulting LatLonPoint
public LatLonPoint getUpperLeft()
Returns the upper left point (or closest equivalent) of the projection based on the center point and height and width of screen.
public LatLonPoint getLowerRight()
Returns the lower right point (or closest equivalent) of the projection based on the center point and height and width of screen.
public java.lang.String getName()
getName
in interface Projection
getName
in class Conic
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |