public class LLXY extends Cylindrical implements EqualArc
Modifier and Type | Field and Description |
---|---|
protected double |
cLat |
protected double |
cLon |
protected double |
cLonRad |
static double |
epsilon |
protected double |
hy |
static java.lang.String |
LLXYName
The LLXY name.
|
protected double |
ppd
Pixel per degree
|
protected double |
wx |
half_world, world
DATELINE, mercator, NORTH_POLE, NUM_DEFAULT_CIRCLE_VERTS, NUM_DEFAULT_GREAT_SEGS, pixelsPerMeter, planetPixelCircumference, planetPixelRadius, planetRadius, scaled_radius, SOUTH_POLE, XSCALE_THRESHOLD, XTHRESHOLD
Constructor and Description |
---|
LLXY(LatLonPoint center,
float scale,
int width,
int height)
Construct a LLXY projection.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computeParameters()
Called when some fundamental parameters change.
|
static LLXY |
convertProjection(Projection proj) |
java.awt.geom.Point2D |
forward(double lat,
double lon,
java.awt.geom.Point2D p,
boolean isRadian)
Forward projects lat,lon into XY space and returns a Point2D.
|
java.lang.String |
getName()
Get the name string of the projection.
|
double |
getXPixConstant()
Returns the x pixel constant of the projection.
|
double |
getYPixConstant()
Returns the y pixel constant of the projection.
|
<T extends java.awt.geom.Point2D> |
inverse(double x,
double y,
T llp)
Inverse project x,y coordinates into a LatLonPoint.
|
boolean |
isPlotable(double lat,
double lon)
Checks if a LatLonPoint is plot-able.
|
double |
normalizeLatitude(double lat)
Sets radian latitude to something sane.
|
double |
normalizeLatitudeDeg(double lat) |
java.lang.String |
toString()
Return stringified description of this projection.
|
_forwardPoly, _forwardPoly, dumpPoly, dumpPoly, forwardRaw, forwardRaw, getLowerRight, getUpperLeft, init, pan
assertLatLonPoint, clone, doPolyDispatch, doPolyDispatch, forward, forward, forward, forward, forwardArc, forwardArc, forwardArc, forwardCircle, forwardCircle, forwardCircle, forwardGreatPoly, forwardGreatPoly, forwardLine, forwardLine, forwardLLPoly, forwardPoly, forwardPoly, forwardRect, forwardRect, forwardRect, forwardRhumbPoly, forwardRhumbPoly, getCenter, getCenter, getGCTForProjection, getPlanetPixelCircumference, getPlanetPixelRadius, getPlanetRadius, getPPM, getReferenceLon, getScale, getUcuom, inverse, inverse, isComplicatedLineType, isPlotable, normalize_latitude, normalizeLatitude, pan, setCenter, setCenter, setCenter, setPlanetRadius, setPPM, setUcuom, wrap_longitude, wrapLongitude, wrapLongitude, wrapLongitudeDeg
drawBackground, drawBackground, equals, forward, forward, forward, forwardLine, forwardPoly, forwardPoly, forwardRect, forwardShape, getHeight, getMaxScale, getMinScale, getProjectionID, getScale, getWidth, hashCode, inverse, isPlotable, makeClone, panE, panE, panN, panN, panNE, panNE, panNW, panNW, panS, panS, panSE, panSE, panSW, panSW, panW, panW, setCenter, setHeight, setMaxScale, setMinScale, setParms, setProjectionID, setScale, setWidth
finalize, getClass, notify, notifyAll, wait, wait, wait
forward, forward, forward, forward, forward, forward, forwardLine, forwardPoly, forwardPoly, forwardRaw, forwardRaw, forwardRect, forwardShape, getCenter, getCenter, getHeight, getLowerRight, getMaxScale, getMinScale, getProjectionID, getScale, getScale, getUcuom, getUpperLeft, getWidth, inverse, inverse, inverse, isPlotable, isPlotable, makeClone, pan, pan
public static final transient java.lang.String LLXYName
public static final transient double epsilon
protected double hy
protected double wx
protected double cLon
protected double cLonRad
protected double cLat
protected double ppd
public LLXY(LatLonPoint center, float scale, int width, int height)
center
- LatLonPoint center of projectionscale
- float scale of projectionwidth
- width of screenheight
- height of screenpublic java.lang.String toString()
toString
in class Cylindrical
Projection.getProjectionID()
protected void computeParameters()
computeParameters
in class Cylindrical
public double normalizeLatitude(double lat)
normalizeLatitude
in class GeoProj
lat
- float latitude in radianspublic double normalizeLatitudeDeg(double lat)
public boolean isPlotable(double lat, double lon)
isPlotable
in interface Projection
lat
- float latitude in decimal degreeslon
- float longitude in decimal degreespublic java.awt.geom.Point2D forward(double lat, double lon, java.awt.geom.Point2D p, boolean isRadian)
public <T extends java.awt.geom.Point2D> T inverse(double x, double y, T llp)
inverse
in interface Projection
inverse
in class Proj
x
- integer x coordinatey
- integer y coordinatellp
- LatLonPointProj.inverse(Point2D)
public java.lang.String getName()
getName
in interface Projection
getName
in class Cylindrical
public double getXPixConstant()
getXPixConstant
in interface EqualArc
public double getYPixConstant()
getYPixConstant
in interface EqualArc
public static LLXY convertProjection(Projection proj)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details